Post daily Instagram news carousels using Claude and Gemini
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs on a schedule (every 24 hours). Along the way it connects S3 and Anthropic Chat Model. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every 24 hours).
- Your Settings (Edit Fields (Set)): sets 4 fields: instagram_business_account_id, s3_bucket_name, s3_region…
- Pick the Daily Topic (Code): runs custom JavaScript code
- Fetch News Headlines (RSS Read): reads an RSS feed
- Build News Context (Code): runs custom JavaScript code
- Write the Post with Claude (AI Agent): runs an AI agent, with model: Anthropic Chat Model; output parser: Post Output Parser
- Normalize & Plan Slides (Code): runs custom JavaScript code
- Single or Carousel? (Switch): routes items into 2 branches
- Draw the Picture with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Split Out: splits a list into separate items
- Prepare Image and Logo (Code): runs custom JavaScript code
…plus 13 more steps. See the full node list below.
Services it uses
HTTP calls to: generativelanguage.googleapis.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 Write the Post with Claude (v1.7): 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).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Write the Post with Claude (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (16)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - RSS Read
n8n-nodes-base.rssFeedRead - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - S3
n8n-nodes-base.s3 - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Wait
n8n-nodes-base.wait - Stop and Error
n8n-nodes-base.stopAndError - Edit Image
n8n-nodes-base.editImage - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This daily workflow pulls trending headlines from Google News RSS, uses Anthropic Claude to write an Instagram caption and slide copy, generates matching images with Google Gemini, uploads assets to Amazon S3, and publishes either a…