Schedule and publish Instagram and Facebook Reels from Google Sheets with Gemini
Ready for 3.0What this workflow does
This AI workflow has 26 nodes and runs on a schedule (every 30 minutes). Along the way it connects Google Sheets, Google Gemini Chat Model, Facebook Graph API and OpenRouter Chat Model.
How it runs
Trigger: On a schedule (every 30 minutes).
- Google Sheets: uses Google Sheets
- Filter: keeps only the items that match a condition
- Code: runs custom JavaScript code
- Limit: keeps the first few items
- Google Sheets: update
- AI • Generate IG + FB Captions (AI Agent): runs an AI agent, with model: OpenRouter Chat Model, Gemini • Caption Model; output parser: Structured Output Parser
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Instagram • Create Reel (Facebook Graph API): uses Facebook Graph API
- Instagram • Result (Code): runs custom JavaScript code
…plus 12 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (15)
- Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Facebook Graph API
n8n-nodes-base.facebookGraphApi - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Limit
n8n-nodes-base.limit - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - If
n8n-nodes-base.if - Filter
n8n-nodes-base.filter - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow runs every five minutes to pick the next due PENDING Reel from Google Sheets, generate Instagram and Facebook captions with Google Gemini, publish the video to Instagram Reels and Facebook Reels via the Meta Graph API, and then…