Templates / Create and approve Facebook and Instagram image posts via Telegram and Gemini

Create and approve Facebook and Instagram image posts via Telegram and Gemini

Ready for 3.0

by MD Faizan Uzzaman ✓ · 20 views · created 2026-10-10 · 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 workflow has 31 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Drive, Facebook Graph API and Google Sheets. It also calls generativelanguage.googleapis.com and api.cloudflare.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. Is Real Request? (If): checks a condition and branches into true / false
  2. Set Brand Context (Edit Fields (Set)): sets 8 fields: brand_name, brand_context, raw_prompt…
  3. Reply: Send An Idea (Telegram): uses Telegram
  4. Generate Image Prompt + Caption (HTTP Request): calls generativelanguage.googleapis.com (POST)
  5. Parse LLM Output (Code): runs custom JavaScript code
  6. Approve Caption? (Telegram): send and wait for a reply
  7. Caption Approved? (If): checks a condition and branches into true / false
  8. Load Latest Draft (Code): runs custom JavaScript code
  9. Under Retry Cap? (If): checks a condition and branches into true / false
  10. Generate Image (HTTP Request): calls api.cloudflare.com (POST)

…plus 20 more steps. See the full node list below.

Services it uses

TelegramGoogle DriveFacebook Graph APIGoogle Sheets

HTTP calls to: generativelanguage.googleapis.com, api.cloudflare.com

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 (12)

From the author

Quick overview This workflow turns a Telegram message into an approved AI-generated image post by using Google Gemini for captions and prompts, Cloudflare Workers AI for image generation, Google Drive for hosting, and the Facebook Graph API to publish to a…

Excerpt from MD Faizan Uzzaman'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.