Generate Facebook marketing content from images with Telegram & Gemini
Ready for 3.0Ready 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 20 nodes and runs on Telegram events. Along the way it connects Telegram and OpenRouter Chat Model.
How it runs
Trigger: On Telegram events.
- Check if Message has Photo (If): checks a condition and branches into true / false
- Extract Telegram Metadata (Edit Fields (Set)): sets 5 fields: photo_file_id, photo_caption, chat_id…
- Generate Marketing Content (AI Agent): runs an AI agent, with model: Language Model (OpenRouter)
- Get Telegram File Info (HTTP Request): calls an HTTP API
- Parse AI Output (Edit Fields (Set)): sets 5 fields: headline, content, hashtags…
- Build Telegram Image URL (Edit Fields (Set)): sets 2 fields: file_path, download_url
- Decide Input is New or Old (Switch): routes items into 2 branches
- Download Telegram Image (HTTP Request): calls an HTTP API
- Send Content for Approval (New) (Telegram): send and wait for a reply
- Send Content for Approval (Old) (Telegram): send and wait for a reply
…plus 8 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 (9)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Switch
n8n-nodes-base.switch
From the author
📝 Description Instantly turn images into marketing content with one Telegram message. It automatically: Accepts an image and caption via Telegram Sends the image to an AI model with your brand’s content rules Generates copy with headline, body, hashtags, and…