Create Facebook photo posts from Telegram albums using OpenRouter AI
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenRouter Chat Model and Facebook Graph API.
How it runs
Trigger: On Telegram events (message).
- Filter & Parse Photo (Code): runs custom JavaScript code
- Save to Data Table (Data table): uses Data table
- Wait: waits 3 seconds
- Get Album Records (Data table): get
- Extract Caption & Photos (Code): runs custom JavaScript code
- Prepare Loop Items (Code): runs custom JavaScript code
- AI Content Generator (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Merge: merges the data from its input branches
- Set Media FBID (Edit Fields (Set)): sets 1 field: media_fbid
…plus 6 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 (12)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Merge
n8n-nodes-base.merge
From the author
Quick overview Automate multi-photo Facebook posts from Telegram albums. This workflow buffers incoming photos, uses OpenRouter AI to generate engaging social media captions, uploads media in bulk, and publishes the final post while sending a clickable live…