Back to Templates

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

Created by

Created by: Markhah || markhah

Markhah

Last update

Last update a day ago

Share


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.

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

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

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

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

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