See llms.txt for all machine-readable content.

Back to Templates

Post Facebook image captions from Google Drive using Gemini Vision

Created by

Created by: Mitja || ai-workflow
Mitja

Last update

Last update 2 days ago

Categories

Share


Quick Overview

This workflow runs on a schedule, pulls the next image from a Google Drive folder, generates a Facebook-ready caption with Google Gemini Vision, and publishes the image and caption to a Facebook Page using the Facebook Graph API.

How it works

  1. Runs every three days at 19:30 on a schedule.
  2. Sets the Facebook Page ID, CTA link, and brand context used throughout the workflow.
  3. Searches a specified Google Drive folder and selects the next image file, then downloads it.
  4. Sends the downloaded image plus your brand context to Google Gemini Vision to generate a caption returned as JSON.
  5. Posts the image (via a Google Drive thumbnail URL) and the generated caption to your Facebook Page through the Facebook Graph API /photos endpoint.

Setup

  1. Add credentials for Google Drive OAuth2, Google Gemini, and Facebook Graph API (with a Page Access Token that can publish photos).
  2. Replace the Facebook Page ID, CTA link, and brand context values in the Config step.
  3. Update the Google Drive folder ID in the file search step to point to your image folder and ensure it contains images you want to post.