Zum Inhalt springen
productivityStarter — €49

Personal - Solicitar TRM

90/100
40 Nodes

Beschreibung

Reason for Loop Some TRM are valid for several days, like during weekends or holidays, so 10 days are validated to grab the last available TRM | Setup-Pack: httpRequest | openai | telegram

Setup-Anleitung

# 📌 Workflow: Request TRM (Representative Market 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 to a Telegram Bot.

2. 🧠 **Date Extraction**  
   AI (OpenAI) is used to identify the date in `YYYY-MM-DD` format.

3. 📅 **Validation**  
   If the date is in the future, the user is notified that it is not valid.

4. 📡 **TRM Query**  
   The bot queries the open data API from the Colombian government.

5. 📥 **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.

6. 📤 **Final Response**  
   The most recent available value is sent, or a message indicating no information is available.

## 🔗 Data Source
**datos.gov.co** – [TRM](https://www.datos.gov.co/)

Benötigte Integrationen (3)

HTTP Request

httpRequest

API Key

OpenAI

openai

API Key

Telegram

telegram

API Key

Workflow freischalten

Kaufe das Starter Bundle für €49 — erhalte sofortigen Zugang zu diesem und allen weiteren Starter Workflows als ZIP-Datei zum Import in n8n.

Sichere Zahlung via Stripe. 7-Tage Geld-zurück-Garantie.
← Zurück zum Marketplace