Templates / Generate Instagram captions from hashtag analysis using Apify + GPT-4o-mini

Generate Instagram captions from hashtag analysis using Apify + GPT-4o-mini

Ready for 3.0

by Robert Breen ✓ · 894 views · created 2025-08-05 · Content Creation, 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 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”.

  1. Create Search Term (Edit Fields (Set)): sets 1 field: Search_Term
  2. Find Recent Posts (HTTP Request): calls an HTTP API (POST)
  3. Set bio and follower count (Edit Fields (Set)): sets 1 field: caption
  4. Aggregate: combines items into one
  5. Convert table names and columns into single text for agent (Code): runs custom JavaScript code
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  7. Split Out: splits a list into separate items
  8. Split Out: splits a list into separate items
  9. Merge: merges the data from its input branches

Services it uses

OpenAI Chat Model

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)

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…

Excerpt from Robert Breen'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.