Chat with news articles using AI analysis in Telegram with vector search
Needs changesWhat this workflow does
This AI workflow has 22 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and Embeddings OpenAI.
How it runs
Trigger: On Telegram events (message).
- Check Whether URL (If): checks a condition and branches into true / false
- Rename Link Field (Edit Fields (Set)): sets 1 field: URL_PARSE
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Query Data Tool)
- Code: runs custom JavaScript code
- Send a Reply (Telegram): uses Telegram
- VLM Run Highlighter (AI Agent): runs an AI agent, with model: VLM Agent; output parser: Structured Output Parser
- Covert to Text File (Convert to File): converts data to a file (to text)
- Check URLs Validity (If): checks a condition and branches into true / false
- Send a document (Telegram): send document
- Insert Data to Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in VLM Run Highlighter (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) VLM Run Highlighter (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (15)
- Telegram
n8n-nodes-base.telegram - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - No Operation, do nothing
n8n-nodes-base.noOp - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Convert to File
n8n-nodes-base.convertToFile
From the author
📌 Overview This workflow allows users to send any newspaper or article link to a Telegram bot. The workflow then: 1. Validates the URL 2. Scrapes the webpage (title, description, full text, images, OG metadata) 3. Processes it using a Vision-Language Model…