Automate product ad creation with Telegram, Fal.AI & Facebook posting
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model, OpenAI and Facebook Graph API.
How it runs
Trigger: On Telegram events (message).
- Get Telegram File Path (HTTP Request): calls an HTTP API
- Analyze Product Image (OpenAI Vision) (OpenAI): analyze (image)
- Generate Ad Prompt Draft (from Image Analysis) (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Assemble Prompt Parameters (Edit Fields (Set)): sets 10 fields: caption, prompt, style…
- User Review: Approve/Reject Ad Prompt (Telegram): send and wait for a reply
- Check Prompt Approval (Yes/No) (If): checks a condition and branches into true / false
- Send a text message (Telegram): uses Telegram
- Revise Prompt Based on Feedback (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Prepare Fal.AI Input Fields (Edit Fields (Set)): sets 2 fields: product_image_URL, image_prompt
- Call Fal.AI API (nano-banana model) (HTTP Request): calls an HTTP API
…plus 14 more steps. See the full node list below.
Services it uses
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)
- Telegram
n8n-nodes-base.telegram - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Wait
n8n-nodes-base.wait - Telegram Trigger
n8n-nodes-base.telegramTrigger - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
This workflow automates the entire process of creating and publishing social media ads — directly from Telegram. By simply sending a product photo to your Telegram bot, the system analyzes the image, generates an AI-based advertising prompt, creates a…