Skip to content
FlowHubFluxonLab
C
AI Automationfree

Generate Instagram Content from Top Trends with AI Image Generation

by mustafa kendigüzeladapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeFacebook Graph APIFacebook Graph APIHTTP RequestHTTP RequestOpenAIPostgresPostgresTelegramTelegram
Share Post Share
IfIf media status is finishedIf media status…IfIf media status is finished1If media status…TelegramTelegram1Telegram2SILoop Over ItemsScSchedule Trigger1Schedule Trigge…SeTelegram ParamsSeInstagram paramsSeRapid Api paramsCofilter the image contentfilter the imag…HRget top trends on instagram #blender3dget top trends …HRget top trends on instagram #isometricget top trends …Memerge the array contentmerge the array…Check Data on Database Is ExistCheck Data on D…IfIf Data is Existsend error message to telegramsend error mess…insert data on dbinsert data on …Analyze Image and give the contentAnalyze Image a…Analyze Content And Generate Instagram CaptionAnalyze Content…Prepare data on InstagramPrepare data on…Check Status Of Media Before UploadedCheck Status Of…Publish Media on InstagramPublish Media o…Check status of postCheck status of…Cofilter the image content-2filter the imag…SeReplicate paramsHRGenerate image on fluxGenerate image …12345678910111213141516171819202122232425262728
1/5
STEPS · 28
Runs on a schedule

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.

Tags

n8nreference-onlyfacebook-graph-apiopen-aipostgrestelegram
Connects
CCodefacebookgraphapiFacebook Graph APIWHTTP RequestOpenAIpostgresPostgrestelegramTelegram
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes27
AddedJan 26, 2025

Related workflows

See all AI Automation
AWopenaichatmodel
free

Create AI product video ad Shorts from Telegram photos with OpenAI and AtlasCloud

Quick overview This workflow takes a product photo sent via Telegram, uses OpenAI Vision to describe it and OpenAI to write a short-form video ad prompt, generates a vertical video via AtlasCloud, then (after two approvals in Telegram) publishes the Short to YouTube via Blotato. How it works Triggers when a user sends a product photo (optionally with a caption/campaign) to a Telegram bot. Downloads the image from Telegram and uses OpenAI Vision to extract an advertising-focused product description. Uses OpenAI to generate a single cinematic text-to-video prompt plus a YouTube Shorts title and description. Sends the proposed prompt to Telegram and waits for your approval before proceeding. If approved, requests video generation from AtlasCloud and polls the render status until the video is completed. Sends the generated video back to Telegram for preview and waits for a second approval to publish. If approved, publishes the video to YouTube as an unlisted Short via Blotato and notifies you in Telegram (otherwise it stops and sends a decline message). Setup Create and connect a Telegram bot credential, then start a chat with the bot so it can receive photos and send approval prompts.

by Dr. Firas
Aopenaichatmodelstructuredoutputparser
free

Publish AI social posts from Telegram to LinkedIn, Instagram, Facebook and Threads with OpenAI and Blotato

Quick overview This workflow listens for a Telegram message or voice note, uses OpenAI to turn it into a cross-platform social caption and matching AI image, publishes the post via Blotato to LinkedIn, Instagram, Facebook, and Threads, then sends a confirmation back to Telegram. How it works Triggers when a new Telegram message is received by your bot. Routes the input as voice or text, downloading voice notes from Telegram and transcribing them with OpenAI. Sends the resulting text to an OpenAI chat model to generate a single ready-to-publish caption plus an image prompt. Generates an image with OpenAI (gpt-image-1) using the returned image prompt. Uploads the generated image to Blotato to get a hosted media URL. Publishes the caption and image to LinkedIn, Instagram, Facebook Pages, and Threads through Blotato. Sends a Telegram message confirming publication and includes the posted caption. Setup Create a Telegram bot in @BotFather, add the bot token as a Telegram credential in n8n, and activate the Telegram Trigger. Add an OpenAI API credential for audio transcription, caption generation, and image generation, and (optionally) adjust the model, language, image size, and quality

by Dr. Firas
AopenaichatmodelS
free

Run a voice-enabled AI assistant on Telegram with OpenAI, Gmail and Notion

Quick overview This workflow turns a Telegram bot into a personal assistant that handles text and voice messages using OpenAI, can read Gmail and Google Calendar, looks up tasks and contacts in Notion, and can draft and send emails with a required approval step in Telegram. How it works Triggers when a new Telegram message is received by your bot. Detects whether the message is a voice note or text, and if it is voice, downloads it from Telegram and transcribes it with OpenAI. Sends the resulting user text to an OpenAI-powered agent that keeps a short conversation memory per chat. When needed, the agent fetches recent emails from Gmail, lists upcoming events from Google Calendar, and pulls tasks or contacts from Notion to answer the request. If the agent decides to send an email, it asks for approval in Telegram and only proceeds after you approve within the time limit. Sends the assistant’s final response back to the same Telegram chat. Setup Create a Telegram bot with @BotFather, add the Telegram credentials in n8n, and use the workflow’s Telegram trigger to connect the bot. Add an OpenAI API credential for both chat responses and voice transcription, and set your preferred model

by Dr. Firas