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