Build a powerful n8n workflow crypto AI agent. This n8n template integrates Telegram, the HTX API, and GPT-4o-mini to deliver formatted market reports directly to your chat, triggered by an n8n trigger.
Download this n8n workflow template and start using it instantly.
This professional n8n workflow solution provides a robust, self-hosted infrastructure for accessing HTX (Huobi) spot market data on demand. The primary challenge this n8n workflow solves is abstracting complex API interactions behind a simple chat interface. By utilizing a specialized HTX AI Agent n8n node, the system intelligently translates a user’s plain text query (via Telegram) into specific HTTP requests to the HTX REST API (e.g., fetching Klines, Order Book Depth, or 24h stats). The AI then formats the raw JSON response into a clean, structured Telegram report. This n8n template is essential for anyone who values efficiency and requires immediate, tailored market data updates, all secured by a user authentication layer built directly into the n8n automation.
The entire process begins when a user sends a message to the bot, activating the n8n trigger.
Telegram Trigger n8n node initiates the n8n workflow upon receiving a new message. An initial security check is performed by the User Authentication Code n8n node, ensuring only an authorized Telegram ID can proceed.Adds "SessionId" n8n node extracts the user's chat ID for routing the final reply and sets the input message.HTX AI Agent n8n node, powered by GPT-4o-mini (via the OpenAI Chat Model n8n node) and connected to Simple Memory, takes the user input. The agent decides which specialized HTX httpRequestTool n8n nodes to call (such as '24h Stats', 'Klines (Candles)', or 'Order Book Depth').Calculator for spread analysis and Think for JSON cleanup, and then formats the final report into Telegram-compatible HTML structure.Splits message is more than 4000 characters Code n8n node checks if the AI's response exceeds Telegram’s message limit, splitting the output into smaller, manageable chunks if necessary.Telegram n8n node sends the complete, formatted market report back to the original chat ID, completing the n8n workflow execution.To deploy this specialized n8n workflow template, follow these steps:
OpenAI Chat Model n8n node to power the AI Agent’s reasoning and formatting capabilities (requires access to GPT-4o-mini or similar model).Telegram Trigger and final Telegram message node. This is the API key for your bot.User Authentication (Replace Telegram ID) Code n8n node and replace <> with your personal Telegram User ID to secure access to this n8n automation. Telegram Trigger (n8n trigger):
Function: Listens for incoming messages from the configured Telegram bot, starting the n8n workflow.
Key Configuration: Configured to listen for message updates.
User Authentication (Code n8n node):
Function: Acts as a security gate, verifying the incoming Telegram user ID against a hardcoded value to prevent unauthorized API usage.
Key Configuration: Contains JavaScript logic to check message.from.id.
Adds "SessionId" (Set n8n node):
Function: Creates a sessionId using the Telegram chat.id and extracts the user's text message, preparing data for the AI Agent and memory modules.
OpenAI Chat Model (LLM n8n node):
Function: Provides the language understanding and output formatting capabilities for the AI Agent (configured for gpt-4.1-mini, serving as the reasoning engine).
Simple Memory (Memory n8n node):
Function: Stores conversational context using the sessionId, enabling multi-turn interactions within this n8n workflow.
HTX AI Agent (Agent n8n node):
Function: The central orchestrator. It uses the LLM to decide which HTX httpRequestTool n8n node to execute based on the user's request. Its system message dictates that it must only fetch and format raw data, not give trading advice.
HTTP Request Tools (e.g., 24h Stats, Klines, Order Book Depth):
Function: These are specialized n8n node tools that the AI Agent can call. They are configured with the specific HTX REST API endpoints (https://api.huobi.pro/market/...).
Key Configuration: Uses expressions ($fromAI) to dynamically populate query parameters (like symbol, period, size) based on the AI's selection.
Splits message is more than 4000 characters (Code n8n node):
Function: Prevents delivery errors by automatically segmenting the final, formatted report into multiple messages if it exceeds the Telegram API's character limit.
Telegram (n8n node):
* Function: Sends the final, structured market data report (or report chunks) back to the user via their Telegram chat.
Use this powerful n8n workflow to aggregate real-time crypto news from 10+ RSS feeds, analyze market sentiment using GPT-4o, and receive formatted alerts instantly via a webhook n8n trigger.

Use this powerful n8n workflow to analyze real-time crypto markets, decentralized exchanges (DEX), and sentiment via a Telegram interface using a multi-agent AI n8n node architecture. Explore sophisticated n8n templates.

Use this powerful n8n workflow to analyze top cryptocurrency data from CoinGecko, calculate custom volatility scores, determine buy/sell/hold signals, and generate comprehensive market risk reports automatically.

This powerful n8n workflow uses Azure GPT-4o to analyze Monday.com feedback, calculate business impact scores, automatically create tasks in Jira, log data to Google Sheets, and send weekly Outlook reports.

Deploy this powerful n8n workflow to automatically analyze customer review sentiment added to Google Sheets using a custom Code n8n node and update the row instantly. Explore practical n8n templates.

Use this robust n8n workflow to scrape, deduplicate, and analyze customer reviews from 5 platforms (Trustpilot, Capterra, Product Hunt) using Thordata and GPT-4.1, automatically generating an executive email report.

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.







































