Templates / Automated AI content creation & Instagram publishing from Google Sheets

Automated AI content creation & Instagram publishing from Google Sheets

Ready for 3.0

by Onur ✓ · 54,245 views · created 2025-05-03 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs on a schedule (every day). Along the way it connects Google Sheets, Google Gemini Chat Model and Facebook Graph API. It also calls api.replicate.com over HTTP.

How it runs

Trigger: On a schedule (every day).

  1. 1. Get Next Post Idea from Sheet (Google Sheets): uses Google Sheets
  2. 2. Prepare Input Variables (Topic, Audience, etc.) (Edit Fields (Set)): sets 4 fields: Topic, TargetAudience, BrandVoice…
  3. 3a. Generate Content Concept (Gemini) (Basic LLM Chain): sends a prompt to an LLM, with model: (LLM Model for Concept); output parser: (Parse Concept JSON)
  4. 3b. Generate Image Prompt Options (Gemini) (Basic LLM Chain): sends a prompt to an LLM, with model: (LLM Model for Prompts); output parser: (Parse Prompts JSON)
  5. 3c. Generate Post Caption (Gemini) (Basic LLM Chain): sends a prompt to an LLM, with model: (LLM Model for Caption); output parser: (Parse Caption JSON)
  6. 4. Generate Image using Prompt 1 (Replicate Flux) (HTTP Request): calls api.replicate.com (POST)
  7. 5. Prepare Data for Instagram API (Edit Fields (Set)): sets 2 fields: ImageURL, Caption
  8. 6a. Create Instagram Media Container (Facebook Graph API): uses Facebook Graph API
  9. 6b. Wait for Container Processing (Wait): pauses before continuing
  10. 6c. Publish Post to Instagram (Facebook Graph API): uses Facebook Graph API

…plus 1 more step. See the full node list below.

Services it uses

Google SheetsGoogle Gemini Chat ModelFacebook Graph API

HTTP calls to: api.replicate.com

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 (9)

From the author

Automated AI Content Creation & Instagram Publishing from Google Sheets This n8n workflow automates the creation and publishing of social media content directly to Instagram, using ideas stored in a Google Sheet. It leverages AI (Google Gemini and Replicate…

Excerpt from Onur's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.