Get Colombian Peso to USD Exchange Rate with Telegram Bot and AI Date Recognition
Go to WorkflowDescription
š 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