Templates / Generate Facebook marketing content from images with Telegram & Gemini

Generate Facebook marketing content from images with Telegram & Gemini

Ready for 3.0

by Abdullah Alshiekh ✓ · 1,317 views · created 2025-07-29 · Content Creation, Multimodal AI

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

  1. Check if Message has Photo (If): checks a condition and branches into true / false
  2. Extract Telegram Metadata (Edit Fields (Set)): sets 5 fields: photo_file_id, photo_caption, chat_id…
  3. Generate Marketing Content (AI Agent): runs an AI agent, with model: Language Model (OpenRouter)
  4. Get Telegram File Info (HTTP Request): calls an HTTP API
  5. Parse AI Output (Edit Fields (Set)): sets 5 fields: headline, content, hashtags…
  6. Build Telegram Image URL (Edit Fields (Set)): sets 2 fields: file_path, download_url
  7. Decide Input is New or Old (Switch): routes items into 2 branches
  8. Download Telegram Image (HTTP Request): calls an HTTP API
  9. Send Content for Approval (New) (Telegram): send and wait for a reply
  10. 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

TelegramOpenRouter Chat Model

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)

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…

Excerpt from Abdullah Alshiekh's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.