Create and approve Facebook and Instagram image posts via Telegram and Gemini
Ready for 3.0What 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).
- Is Real Request? (If): checks a condition and branches into true / false
- Set Brand Context (Edit Fields (Set)): sets 8 fields: brand_name, brand_context, raw_prompt…
- Reply: Send An Idea (Telegram): uses Telegram
- Generate Image Prompt + Caption (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Parse LLM Output (Code): runs custom JavaScript code
- Approve Caption? (Telegram): send and wait for a reply
- Caption Approved? (If): checks a condition and branches into true / false
- Load Latest Draft (Code): runs custom JavaScript code
- Under Retry Cap? (If): checks a condition and branches into true / false
- Generate Image (HTTP Request): calls api.cloudflare.com (POST)
…plus 20 more steps. See the full node list below.
Services it uses
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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Image
n8n-nodes-base.editImage - Google Drive
n8n-nodes-base.googleDrive - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Wait
n8n-nodes-base.wait - Stop and Error
n8n-nodes-base.stopAndError - Google Sheets
n8n-nodes-base.googleSheets
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…