Command-based Telegram bot for article summarization & image prompts with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on Telegram events (message). Along the way it connects Telegram and OpenAI.
How it runs
Trigger: On Telegram events (message).
- Route: Check for Help Command (If): checks a condition and branches into true / false
- Response: Send Help Menu (Telegram): uses Telegram
- Route: Check for Summary Command (If): checks a condition and branches into true / false
- Fetch: Download Article Content (HTTP Request): calls an HTTP API
- Route: Check for Image Command (If): checks a condition and branches into true / false
- Parse: Extract Text from HTML (HTML): parses or builds HTML
- AI: Process Image Generation Request (OpenAI): work with image
- AI: Generate Article Summary (OpenAI): uses OpenAI
- Response: Send Image Generation Notice (Telegram): uses Telegram
- Response: Send Article Summary (Telegram): uses Telegram
Services it uses
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
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 (6)
- If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Telegram Trigger
n8n-nodes-base.telegramTrigger - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
Telegram AI Assistant: Summarize Links & Generate Images On Demand This workflow turns any Telegram chat into a smart assistant. By typing simple commands like /summary or /img, users can trigger powerful AI actions—directly from Telegram. --- ✨ What It Does…