Real-time Crypto Market Analysis with GPT-4o-mini and CoinMarketCap APIs via Telegram

Go to Workflow
0 views
Built by Markhah Markhah
Created on June 07, 2026

Description

Overview
This n8n workflow is a modular AI analyst system that provides real-time insights from CoinMarketCap’s centralized and decentralized data sources. Using GPT-based AI, the system interprets natural language questions about the crypto market and delegates them to specialized agent workflows.

It supports Telegram chat input and returns structured results such as coin quotes, DEX liquidity, exchange info, and community sentiment—all integrated from the CoinMarketCap API ecosystem.

Prerequisites
a. OpenAI or Gemini account (via GPT-4o-mini or equivalent LLM).

b. Telegram Bot API token (for message input/output).

c. Valid CoinMarketCap API key.

📦 Required subflows:

CoinMarketCap_Crypto_Agent_Tool

CoinMarketCap_Exchange_and_Community_Agent_Tool

CoinMarketCap_DEXScan_Agent_Tool

d. All tools must be installed and configured before use. Each one acts as a specialized endpoint wrapper for CoinMarketCap APIs.

How It Works
Telegram Input
Users send a query to the bot (e.g. “Top DEX pairs on Ethereum”).

Session Memory & Agent Brain

Session is tracked via chat.id

GPT-4o-mini interprets the query, routes to sub-agents

Sub-Agent Workflows

Crypto Agent: prices, rankings, conversions

Exchange Agent: community sentiment, exchange token holdings

DEX Agent: OHLCV data, liquidity pools, trades

Multi-Agent Coordination

AI can combine queries across tools (e.g., get token ID → fetch quote → analyze liquidity)

Ensures valid parameters and avoids API errors

Telegram Output
Final analysis is sent back to the user as a formatted message.

Troubleshooting Tips
Error Code Meaning Fix
400 Bad request Check symbol/slug/ID validity
401 Unauthorized Verify CoinMarketCap API key
429 Rate limit exceeded Throttle or upgrade API tier
500 Server error Retry with backoff or report to CMC


Example Telegram Queries
“Show me top 5 coins by market cap”

“Get price of ETH on Uniswap and Binance”

“How much liquidity is in SOL-USDC pair?”

“Fear & Greed Index and trending tokens”

SEO Tags (ẩn hoặc ghi chú riêng):
coinmarketcap, n8n crypto analyst, crypto ai telegram bot, dex liquidity, CMC price tracker, gpt-4o crypto market, token sentiment dashboard, fear and greed index

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Telegram
n8n-nodes-base.telegram