Skip to main content

Generate Instagram content from top trends with AI image generation

Workflow preview

Workflow preview
100%
Generate Instagram content from top trends with AI image generation preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 pos...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.splitinbatches, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by mustafa kendigüzel.

Original n8n.io source

1.1 Workflow description

Title
Generate Instagram content from top trends with AI image generation
Workflow name
Generate Instagram content from top trends with AI image generation

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 AI
  • Filters out videos and duplicates

2. AI Content Generation

  • Creates unique images based on trending content
  • Generates engaging captions with relevant hashtags
  • Maintains brand consistency while being original

3. Automated Publishing

  • Posts content directly to Instagram
  • Monitors publication status
  • Sends notifications via Telegram

Set up steps

Setting up this workflow takes approximately 15-20 minutes:

1. API Configuration (7-10 minutes)

  • Instagram Business Account setup
  • Telegram Bot creation
  • API key generation (OpenAI, Replicate, Rapid Api)

2. Database Setup (3-5 minutes)

  • Create required database table
  • Configure PostgreSQL credentials

3. Workflow Configuration (5-7 minutes)

  • Set scheduling preferences
  • Configure notification settings
  • Test connection and permissions

Detailed technical specifications and configurations are available in sticky notes within the workflow.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - If media status is finished

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 2 - If media status is finished1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 3 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 4 - Telegram1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Telegram2

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 8 - Telegram Params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Instagram params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Rapid Api params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - filter the image content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - get top trends on instagram #blender3d

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - get top trends on instagram #isometric

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - merge the array content

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Check Data on Database Is Exist

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 23 - If Data is Exist

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 24 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 44 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate Instagram content from top trends with AI image generation
Complexity advanced
Nodes 44
Categories Content Creation, Multimodal AI
Author mustafa kendigüzel
Published 26 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2803/2803.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate Instagram content from top trends with AI image generation do?

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 pos...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.