Skip to main content

Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram

Workflow preview

Workflow preview
100%
Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

A fully autonomous, HTX Spot Market AI Agent (Huobi AI Agent) built using GPT 4o and Telegram. This workflow is the primary interface , orchestrating all internal reasoning, trading logic, and outp...

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.set, n8n-nodes-base.telegram, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolcalculator

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Don Jayamaha Jr.

Original n8n.io source

1.1 Workflow description

Title
Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram
Workflow name
Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram

A fully autonomous, HTX Spot Market AI Agent (Huobi AI Agent) built using GPT-4o and Telegram. This workflow is the primary interface, orchestrating all internal reasoning, trading logic, and output formatting.


โš™๏ธ Core Features

  • ๐Ÿง  LLM-Powered Intelligence: Built on GPT-4o with advanced reasoning
  • โฑ๏ธ Multi-Timeframe Support: 15m, 1h, 4h, and 1d indicator logic
  • ๐Ÿงฉ Self-Contained Multi-Agent Workflow: No external subflows required
  • ๐Ÿงฎ Real-Time HTX Market Data: Live spot price, volume, 24h stats, and order book
  • ๐Ÿ“ฒ Telegram Bot Integration: Interact via chat or schedule
  • ๐Ÿ”„ Autonomous Runs: Support for webhook, schedule, or Telegram triggers

๐Ÿ“ฅ Input Examples

User Input Agent Action
btc Returns 15m + 1h analysis for BTC
eth 4h Returns 4-hour swing data for ETH
bnbusdt today Full day snapshot with technicals + 24h stats

๐Ÿ–ฅ๏ธ Telegram Output Sample

๐Ÿ“Š BTC/USDT Market Summary

๐Ÿ’ฐ Price: $62,400  
๐Ÿ“‰ 24h Stats: High $63,020 | Low $60,780 | Volume: 89,000 BTC

๐Ÿ“ˆ 1h Indicators:
โ€ข RSI: 68.1 โ†’ Overbought  
โ€ข MACD: Bearish crossover  
โ€ข BB: Tight squeeze forming  
โ€ข ADX: 26.5 โ†’ Strengthening trend

๐Ÿ“‰ Support: $60,200  
๐Ÿ“ˆ Resistance: $63,800

๐Ÿ› ๏ธ Setup Instructions

  1. Create your Telegram Bot using @BotFather

  2. Add Bot Token in n8n Telegram credentials

  3. Add your GPT-4o or OpenAI-compatible key under HTTP credentials in n8n

  4. (Optional) Add your HTX API credentials if expanding to authenticated endpoints

  5. Deploy this main workflow using:

    • โœ… Webhook (HTTP Request Trigger)
    • โœ… Telegram messages
    • โœ… Cron / Scheduled automation

๐ŸŽฅ Live Demo


๐Ÿง  Internal Architecture

Component Role
๐Ÿ”„ Telegram Trigger Entry point for external or manual signal
๐Ÿง  GPT-4o Symbol + timeframe extraction + strategy generation
๐Ÿ“Š Data Collector Internal tools fetch price, indicators, order book, etc.
๐Ÿงฎ Reasoning Layer Merges everything into a trading signal summary
๐Ÿ’ฌ Telegram Output Sends formatted HTML report via Telegram

๐Ÿ“Œ Use Case Examples

Scenario Outcome
Auto-run every 4 hours Sends new HTX signal summary to Telegram
Human requests โ€œeth 1hโ€ Bot replies with real-time 1h chart-based summary
System-wide trigger from another agent Invokes webhook and returns response to parent workflow

๐Ÿงพ Licensing & Attribution

ยฉ 2025 Treasurium Capital Limited Company Architecture, prompts, and trade report structure are IP-protected.

No unauthorized rebranding permitted.

๐Ÿ”— For support: Don Jayamaha โ€“ LinkedIn

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 - Telegram Trigger

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

Block 3 - User Authentication (Replace Telegram ID)

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

Block 4 - Adds "SessionId"

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

Block 5 - Telegram

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

Block 6 - Splits message is more than 4000 characters

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

Block 7 - Sticky Note

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

Block 8 - Sticky Note1

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

Block 9 - Sticky Note2

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

Block 10 - Sticky Note3

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

Block 11 - Sticky Note4

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

Block 12 - Sticky Note5

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

Block 13 - Sticky Note6

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

Block 14 - Sticky Note7

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

Block 15 - Sticky Note8

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

Block 16 - Sticky Note9

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

Block 17 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 18 - Sticky Note10

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

Block 19 - Sticky Note11

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

Block 20 - Sticky Note12

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

Block 21 - Sticky Note13

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

Block 22 - Sticky Note14

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

Block 23 - Calculator

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

Block 24 - Think

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

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

3. Summary Table

Workflow Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram
Complexity advanced
Nodes 35
Categories Crypto Trading, AI Chatbot
Author Don Jayamaha Jr
Published 15 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8604/8604.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 Analyze cryptocurrency market data with HTX API, GPT-4o and Telegram do?

A fully autonomous, HTX Spot Market AI Agent (Huobi AI Agent) built using GPT 4o and Telegram. This workflow is the primary interface , orchestrating all internal reasoning, trading logic, and outp...

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.