Skip to main content

Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition

Workflow preview

Workflow preview
100%
Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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. Summar...

Best for

  • Crypto Trading automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.telegramtrigger, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.splitinbatches

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Juan Sanchez.

Original n8n.io source

1.1 Workflow description

Title
Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition
Workflow name
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

  1. πŸ“¨ Telegram Message
    The user sends a text or audio message to the 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Once a Telegram Message is received

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 3 - Local Current Date and Time

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Validate if Date is in the past

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Notify past date

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Get TRM

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Check if Valor exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Send message to user

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Generate an array with 10 numbers

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Split Items for the loop

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 11 - Get the last 10 responses

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 12 - Get TRM for past date

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Convert date

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Get non-empty rows

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 16 - Sort most recent data

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 17 - Get the last data

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 18 - Send current TRM

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 19 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 20 - Send no data

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 22 - Think

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 23 - Extractor Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 24 - Text only

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition
Complexity advanced
Nodes 31
Categories Crypto Trading, AI Chatbot
Author Juan Sanchez
Published 20 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4246/4246.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Get Colombian peso to USD exchange rate with Telegram bot and AI date recognition do?

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. Summar...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Chatbot use case.