๐ Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition
โก 360 views ยท ๐ Crypto Trading & Stock Market
Description
๐ 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
-
๐จ Telegram Message
The user sends a text or audio message to the Telegram Bot. -
๐ง Date Extraction
AI (OpenAI) is used to identify the date inYYYY-MM-DDformat. -
๐ Validation
If the date is in the future, the user is notified that it is not valid. -
๐ก TRM Query
The bot queries the open data API from the Colombian government. -
๐ฅ Result
- โ If TRM data exists for that date โ The bot replies to the user.
- โ If not โ It searches up to 10 previous days for available data.
-
๐ค Final Response
The most recent available value is sent, or a message indicating no information is available.
๐ Data Source
datos.gov.co โ TRM
๐ Nodes Used
HTTP Request, Telegram, Telegram Trigger, Filter, AI Agent, OpenAI Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File