Quick Overview
This workflow runs on a schedule to pick an image from a Google Drive folder, generate an Instagram caption with Google Gemini Vision, and publish the post through the Instagram Graph API using the required create-container and publish steps.
How it works
- Runs every 3 days at 19:30 on a scheduled trigger.
- Sets the Instagram Business Account ID, CTA link, and brand context used throughout the workflow.
- Searches a specified Google Drive folder for an image and downloads the file.
- Sends the image to Google Gemini Vision to generate a formatted Instagram caption returned as JSON.
- Calls the Facebook/Instagram Graph API to create an Instagram media container with the image URL and generated caption.
- Publishes the created media container to the Instagram Business account via the Graph API.
Setup
- Add Google Drive OAuth2 credentials and update the Google Drive folder ID used for the image search.
- Add a Google Gemini API key (Google Gemini node credentials).
- Add a Facebook Graph API credential with permission to publish Instagram content (for example,
instagram_content_publish) and connect it to the correct Instagram Business account.
- Replace the placeholder Instagram Business Account ID in the Config step and set your CTA link and brand context values.