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
- Runs every three days at 19:30 on a schedule.
- Sets the Facebook Page ID, CTA link, and brand context used throughout the workflow.
- Searches a specified Google Drive folder and selects the next image file, then downloads it.
- Sends the downloaded image plus your brand context to Google Gemini Vision to generate a caption returned as JSON.
- 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
- Add credentials for Google Drive OAuth2, Google Gemini, and Facebook Graph API (with a Page Access Token that can publish photos).
- Replace the Facebook Page ID, CTA link, and brand context values in the Config step.
- 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.