Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition
Needs changesWhat this workflow does
This AI workflow has 29 nodes and runs on Telegram events (message). Along the way it connects OpenAI Chat Model, Telegram and OpenAI.
How it runs
Trigger: On Telegram events (message).
- Validate Text or Audio (Switch): routes items into 2 branches
- Download Audio (Telegram): work with file
- Text only (Edit Fields (Set)): sets 1 field: text
- Transcribe Audio (OpenAI): transcribe (audio)
- Edit Fields (Edit Fields (Set)): sets 1 field: text
- Audio Text (Edit Fields (Set)): sets 1 field: text
- Local Current Date and Time (Code): runs custom JavaScript code
- Extractor Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Think, Calculator); output parser: Structured Output Parser
- Validate if Date is in the past (If): checks a condition and branches into true / false
- Notify past date (Telegram): uses Telegram
…plus 14 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 Extractor Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Extractor Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (18)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Filter
n8n-nodes-base.filter - Sort
n8n-nodes-base.sort - Limit
n8n-nodes-base.limit - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Think Tool
@n8n/n8n-nodes-langchain.toolThink - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
📌 Request TRM (Colombian Peso to US Dollar exchange rate) 🎯 Objective Retrieve the TRM (Colombian Peso to US Dollar exchange rate) for a specific date provided by the user via Telegram. 🔄 Summary Flow 1. 📨 Telegram Message The user sends a text or audio…