Generate Instagram captions from hashtag analysis using Apify + GPT-4o-mini
Ready for 3.0Ready 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 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Create Search Term (Edit Fields (Set)): sets 1 field: Search_Term
- Find Recent Posts (HTTP Request): calls an HTTP API (POST)
- Set bio and follower count (Edit Fields (Set)): sets 1 field: caption
- Aggregate: combines items into one
- Convert table names and columns into single text for agent (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Split Out: splits a list into separate items
- Split Out: splits a list into separate items
- Merge: merges the data from its input branches
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 (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - 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 - Edit Fields (Set)
n8n-nodes-base.set - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge
From the author
This n8n workflow scrapes recent Instagram posts by hashtag and generates new, relevant caption ideas using OpenAI. It avoids making up suggestions by analyzing real-world content and surfacing common patterns. --- ✅ Use Case Marketing teams, content…