Templates / Generate Instagram content from top trends with AI image generation

Generate Instagram content from top trends with AI image generation

Ready for 3.0

by mustafa kendigüzel · 89,330 views · created 2025-01-26 · 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 27 nodes and runs on a schedule (cron 5 13,19 * * *). Along the way it connects Telegram, Postgres, OpenAI and Facebook Graph API. It also calls instagram-scraper-api2.p.rapidapi.com and api.replicate.com over HTTP.

How it runs

Trigger: On a schedule (cron 5 13,19 * * *).

  1. Replicate params (Edit Fields (Set)): sets 1 field: replicate_token
  2. Instagram params (Edit Fields (Set)): sets 1 field: instagram_business_account_id
  3. Telegram Params (Edit Fields (Set)): sets 1 field: telegram_chat_id
  4. Rapid Api params (Edit Fields (Set)): sets 1 field: x-rapid-api-key
  5. get top trends on instagram #isometric (HTTP Request): calls instagram-scraper-api2.p.rapidapi.com
  6. get top trends on instagram #blender3d (HTTP Request): calls instagram-scraper-api2.p.rapidapi.com
  7. filter the image content (Code): runs custom JavaScript code
  8. filter the image content- (Code): runs custom JavaScript code
  9. Merge: merges the data from its input branches
  10. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches

…plus 16 more steps. See the full node list below.

Services it uses

TelegramPostgresOpenAIFacebook Graph API

HTTP calls to: instagram-scraper-api2.p.rapidapi.com, 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 (11)

From the author

How it works This automated workflow discovers trending Instagram posts and creates similar AI-generated content. Here's the high-level process: 1. Content Discovery & Analysis - Scrapes trending posts from specific hashtags - Analyzes visual elements using…

Excerpt from mustafa kendigüzel'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.