Create validated social content for Instagram, TikTok, Shorts and Threads with Telegram and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on Telegram events (message). Along the way it connects OpenAI and Telegram.
How it runs
Trigger: On Telegram events (message).
- Set Telegram Input Data (Edit Fields (Set)): sets 2 fields: topic, chat_id
- Check Telegram Topic Validity (If): checks a condition and branches into true / false
- Set Content Preferences (Edit Fields (Set)): sets 7 fields: tone, target_audience, language…
- Send Usage Help via Telegram (Telegram): uses Telegram
- OpenAI: uses OpenAI
- Parse Captions Output (Code): runs custom JavaScript code
- Analyze Content Quality (Code): runs custom JavaScript code
- Check Content Quality Status (If): checks a condition and branches into true / false
- Validate Social Content (Code): runs custom JavaScript code
- Check Retry Limit (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow turns a Telegram bot into a multi-platform content assistant by generating Instagram, TikTok, YouTube Shorts, and Threads copy with OpenAI, validating it against strict platform rules, and sending the final content pack (or a…