Generate Instagram carousels from Telegram prompts using OpenAI and Kie AI
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on Telegram events (channel post, message). Along the way it connects OpenAI Chat Model, Telegram and OpenAI. It also calls api.kie.ai over HTTP.
How it runs
Trigger: On Telegram events (channel post, message).
- Verify User ID (If): checks a condition and branches into true / false
- Set Brand Style (Edit Fields (Set)): sets 2 fields: style, topic
- Generate Carousel Content (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Generate Caption (OpenAI): uses OpenAI
- Split Prompts (Split Out): splits a list into separate items
- Send Caption to Telegram (Telegram): uses Telegram
- Generate Carousel Images (HTTP Request): calls api.kie.ai (POST)
- Wait: pauses before continuing
- Retrieve Carousel Images (HTTP Request): calls api.kie.ai
- Check Image Generation Status (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807)
HTTP calls to: api.kie.ai
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)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Split Out
n8n-nodes-base.splitOut
From the author
This workflow acts as an automated Social Media Content Strategist, allowing you to generate a complete, 5-slide Instagram carousel with a corresponding caption directly from a single idea sent via Telegram. Instead of writing complex prompts for each slide,…