Get Colombian Peso to USD Exchange Rate with Telegram Bot and AI Date Recognition

πŸ“Œ 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 in YYYY-MM-DD format.

πŸ“… 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

0
Downloads
211
Views
8.24
Quality Score
intermediate
Complexity
Author:Juan Sanchez(View Original β†’)
Created:8/13/2025
Updated:11/17/2025

πŸ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments