Create daily Facebook posts from Google Sheets with GPT-4o-mini and Ideogram
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 06:00). Along the way it connects Google Sheets and OpenAI Chat Model. It also calls api.ideogram.ai and graph.facebook.com over HTTP.
How it runs
Trigger: On a schedule (every day at 06:00).
- 2. Google Sheets — Read Today Keywords (Google Sheets): uses Google Sheets
- 3. Split — Loop Over Each Row (Loop Over Items (Split in Batches)): loops over the items in batches
- 4. AI Agent — Generate Post Content (AI Agent): runs an AI agent, with model: 5. OpenAI — GPT-4o-mini Model; output parser: 6. Parser — Structured Post Output
- 7. HTTP — Generate Image Ideogram (HTTP Request): calls api.ideogram.ai (POST)
- 8. Code — Prepare Post Data (Code): runs custom JavaScript code
- 9. HTTP — Post to Facebook (HTTP Request): calls graph.facebook.com (POST)
- 10. Google Sheets — Log Posted URL (Google Sheets): append
- 11. Wait — 1 Minute Rate Limit (Wait): waits 1 minutes
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Facebook + Google Sheets templates (127) · Other OpenAI + Facebook templates (107)
HTTP calls to: api.ideogram.ai, graph.facebook.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in 4. AI Agent — Generate Post Content (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) 4. AI Agent — Generate Post Content (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait
From the author
Description Set up your keyword schedule once in a Google Sheet and the workflow publishes daily Facebook posts automatically every morning at 6AM. For each keyword scheduled for today, it generates a headline and post content with GPT-4o-mini, creates a…