{
  "id": "mE7Zvhv1lOd4Q3xY",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6"
  },
  "name": "CoinMarketCap_AI_Data_Analyst_Agent",
  "tags": [],
  "nodes": [
    {
      "id": "1eab0bd5-8f9c-4bc4-92b7-50779baa505c",
      "name": "Telegram Send Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1180,
        0
      ],
      "webhookId": "0eeae020-ed6f-4900-ae38-d646d893171d",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Telegram Input').item.json.message.chat.id }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fd89fa7e-c4e1-4559-a0cc-42beaeccefb4",
      "name": "Adds SessionId",
      "type": "n8n-nodes-base.set",
      "position": [
        280,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "b5c25cd4-226b-4778-863f-79b13b4a5202",
              "name": "sessionId",
              "type": "string",
              "value": "={{ $json.message.chat.id }}"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "aea9adc8-8215-4459-9bf0-5a6b6364ffcc",
      "name": "CoinMarketCap AI Data Analyst Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "notes": "{{ $json.sessionId }}",
      "position": [
        660,
        0
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "You are the **CoinMarketCap AI Data Analyst**, a powerful, multi-source crypto intelligence system that integrates three specialized agents:  n- **CoinMarketCap Crypto Agent**  n- **CoinMarketCap Exchange & Community Agent**  n- **CoinMarketCap DEXScan Agent**nnYour job is to provide accurate, real-time, and strategic insights into the cryptocurrency landscape across centralized and decentralized platforms.nn---nn### ud83dudee0ufe0f Tools and Agent CapabilitiesnnYou have access to a suite of **live CoinMarketCap APIs** organized by sub-agents. Each tool is mapped to an endpoint and validated for parameter safety to avoid 400 errors.nn---nn#### ud83dudd39 1. CoinMarketCap Crypto Agentnn**Focus:** Cryptocurrency-level data, listings, quotes, and conversions.nn**Tools:**n- `Crypto Map` u2013 Get coin IDs, names, symbols  n- `Crypto Info` u2013 Metadata like whitepapers, socials  n- `Crypto Listings` u2013 Top market cap coins  n- `Quotes Latest` u2013 Live price, volume, market cap  n- `Global Metrics` u2013 Total market stats, BTC dominance  n- `Price Conversion` u2013 Convert one asset to another  nnu2705 Use for:  nu201cTop 10 coins by market cap,u201d u201cConvert 5 ETH to USD,u201d u201cBTC volume today,u201d u201cWhitepaper for SOLu201dnn---nn#### ud83dudd39 2. CoinMarketCap Exchange & Community Agentnn**Focus:** Exchange intel, community sentiment, and market behavior.nn**Tools:**n- `Exchange Map` u2013 Discover exchanges and get IDs  n- `Exchange Info` u2013 Metadata like launch date, country, links  n- `Exchange Assets` u2013 Exchange token holdings & wallets  n- `CMC 100 Index` u2013 Latest CMC 100 index constituents  n- `Fear and Greed Index` u2013 Market sentiment tracker  nnu2705 Use for:  nu201cWhich tokens does Binance hold?u201d u201cCurrent crypto sentimentu201d u201cTop 100 CMC coinsu201dnn---nn#### ud83dudd39 3. CoinMarketCap DEXScan Agentnn**Focus:** Decentralized trading data (spot pairs, pools, liquidity, OHLCV, trades).nn**Tools:**n- `DEX Metadata` u2013 Info for any DEX (logo, date, description)  n- `DEX Networks List` u2013 All blockchain networks  n- `DEX Listings Quotes` u2013 DEXs with live trading stats  n- `DEX Pair Quotes Latest` u2013 Live price/liquidity for spot pairs  n- `DEX OHLCV Historical` u2013 Historical OHLCV (e.g., 1h, 1d)  n- `DEX OHLCV Latest` u2013 Real-time OHLCV for current UTC day  n- `DEX Trades Latest` u2013 Up to 100 recent trades  n- `DEX Spot Pairs Latest` u2013 All active spot pairs with filters  nnu2705 Use for:  nu201cPrice history of USDT/ETH on Uniswap,u201d u201cShow DEXs with highest volume,u201d u201cGet liquidity of token pair,u201d u201cSecurity scan for PancakeSwap poolsu201dnn---nn### u2699ufe0f Multi-Agent Coordination (Advanced Multi-Query Reasoning)nnYou are empowered with **advanced multi-query analysis** capabilities:n- Chain data between agents (e.g., map u2192 quote u2192 historical chart)n- Use outputs from one tool as inputs for anothern- Automatically fetch required IDs (e.g., exchange ID, contract address) before making a final API calln- Combine centralized (CEX) and decentralized (DEX) insights into one unified responsen- Filter and compare across timeframes, assets, exchanges, and networksnn---nn### u26a0ufe0f Validation & Error Prevention GuidelinesnnTo prevent 400 Bad Request errors:n- Always include at least **one required field** per endpoint  n- Use **valid slugs, symbols, or CoinMarketCap IDs**  n- Donu2019t use `convert` and `convert_id` together  n- Use **comma-separated lists** for multi-inputs (if allowed)  n- Use documented `aux`, `sort`, `interval` fields only  n- Handle pagination via `scroll_id` or `start/limit` properly  nnIf output is too large:n> u26a0ufe0f u201cThe requested data exceeds the modelu2019s context limit. Please reduce the scope using filters, limits, or sort.u201dnn---nn### u2705 Example Tasks You Can Performn- u201cGet liquidity and 24h volume for ETH/USDC on Polygonu201dn- u201cCompare BTC price on Binance vs Uniswapu201dn- u201cShow top 5 DEXs by volume and their top pairsu201dn- u201cAnalyze historical price of SHIBA on Ethereum over last 7 daysu201dn- u201cGet CoinMarketCapu2019s sentiment index and top index coinsu201dn- u201cList active spot pairs on Arbitrum with volume > $1M and return price, liquidity, and last 24h % changeu201dnn---nnYou are a **real-time, multi-source AI analyst** purpose-built to extract deep insights from CoinMarketCapu2019s centralized and decentralized datasets. Use your agents intelligently, validate your queries, and return precise, structured results.nnLetu2019s analyze the crypto world. ud83cudf0dud83dudccaud83eudde0n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "955f82c6-ce76-4d56-9714-4926a4936cbf",
      "name": "CoinMarketCap Agent Brain",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        420,
        280
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2c253e1f-5a34-4334-8a8a-98c1e9e937cd",
      "name": "CoinMarketCap Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        580,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0878a84b-14a3-4f8e-b94d-339b1c759f4d",
      "name": "CoinMarketCap Crypto Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        740,
        280
      ],
      "parameters": {
        "name": "CoinMarketCap_Crypto_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "R4EuB1gx1IpMXCJM",
          "cachedResultName": "JayaFamily Assistant u2014 CoinMarketCap_Crypto_Agent_Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI("message","Populate this with a relevant message to this subagent")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "4a6e4ae9-5ba5-48ab-8198-a7cd8c84b0ee",
      "name": "CoinMarketCap Exchange and Community Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        900,
        280
      ],
      "parameters": {
        "name": "CoinMarketCap_Exchange_and_Community_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "kbJb4VMD3SZlcS2u",
          "cachedResultName": "JayaFamily Assistant u2014 CoinMarketCap_Exchange_and_Community_Agent_Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI("message","Populate this with a relevant message to this subagent")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "77ffefe3-9671-4155-baed-d782035b6079",
      "name": "CoinMarketCap DEXScan Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1080,
        280
      ],
      "parameters": {
        "name": "CoinMarketCap_DEXScan_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "ImiznkEUWCkKbg1w",
          "cachedResultName": "JayaFamily Assistant u2014 CoinMarketCap_DEXScan_Agent_Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI("message","Populate this with a relevant message to this subagent")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "d3fc4697-478b-4e6e-8d42-8138ec614748",
      "name": "Telegram Input",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -220,
        0
      ],
      "webhookId": "b33d2025-01c2-4386-b677-206a87a1856b",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "d1108256-43c3-403f-bb7d-181c6de62f2a",
      "name": "CMC Multi-Agent Guide",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -1600
      ],
      "parameters": {
        "width": 1180,
        "height": 1960,
        "content": "# ud83dudcca CoinMarketCap AI Analyst Agent (n8n Workflow)nn## ud83eudde0 Multi-Agent System OverviewnThis is the **primary supervisor agent** for the **CoinMarketCap AI Analyst Workflow**, designed using **modular AI agent architecture** in **n8n**.nnu26a0ufe0f **This workflow requires 3 external tool workflows to function properly.** You must download, install, and connect the following:nn### ud83dudd0c Required Sub-Agent Tools:n1. **CoinMarketCap_Crypto_Agent_Tool** u2013 Handles cryptocurrency quotes, listings, conversionsn2. **CoinMarketCap_Exchange_and_Community_Agent_Tool** u2013 Handles exchanges, trending tokens, Fear & Greed Indexn3. **CoinMarketCap_DEXScan_Agent_Tool** u2013 Handles decentralized liquidity, pair quotes, OHLCV analysisnnOnce installed, these agents enable advanced capabilities:nn### u2705 Key AI Functions:n- Analyze market caps, volumes, supply metrics across coinsn- Track new listings and top gainers/losersn- Evaluate trading pairs and liquidity in CEX and DEX marketsn- Retrieve sentiment indicators and trending discussionsnn---nn## ud83eudde0 Node Structure Summarynn### **1ufe0fu20e3 Analyst Brain**n- **Model**: GPT-4o Minin- **Function**: Understands user queries, delegates tasks to agentsnn### **2ufe0fu20e3 Memory Buffer**n- Stores session state and context between promptsnn### **3ufe0fu20e3 Tool Triggers**n- **toolWorkflow()** function calls: n   - `CoinMarketCap_Crypto_Agent_Tool`n   - `CoinMarketCap_Exchange_and_Community_Agent_Tool`n   - `CoinMarketCap_DEXScan_Agent_Tool`nn---nn## u26a0ufe0f Notes:n- ud83dudcce Make sure API credentials are installed and valid for each agentn- ud83dudccd Each tool runs independently but feeds results to the supervisor for synthesisn- ud83eudde9 Use `message` and `sessionId` parameters consistently in every sub-agent callnn# ud83dudcca CoinMarketCap AI Analyst Agent Tools (n8n Workflow) Guidenn## ud83dude80 Workflow OverviewnThe **CoinMarketCap AI Analyst Agent** is a modular AI-powered system built on **n8n** to deliver **real-time crypto market insights**. It connects directly to CoinMarketCap APIs across three specialized agents:nn- **Cryptocurrency Agent** u2013 Market listings, quotes, conversions, and token info.n- **Exchange & Community Agent** u2013 Trending topics, exchange performance, and sentiment.n- **DEXScan Agent** u2013 Liquidity, trading volume, and OHLC data on decentralized markets.nn### ud83cudfaf **Key Capabilities**:n- Fetch latest token listings and rank movementsn- Track real-time price quotes and convert values between currenciesn- Compare metrics like market cap, volume, and dominancen- Monitor exchange market pairs and volumen- Analyze community sentiment and Fear & Greed Indexn- Visualize DEX liquidity and historical trading trendsnn---nn## ud83dudd17 Node Architecture Summarynn### **1ufe0fu20e3 AI Analyst Brain**n- **Type**: GPT-4o Minin- **Function**: Interprets prompts and queries, routes requests to proper sub-agent.nn### **2ufe0fu20e3 Session Memory**n- **Type**: Memory Buffern- **Function**: Maintains query context during conversation.nn### **3ufe0fu20e3 Tool Agents**n- **Type**: Tool Workflown- Cryptocurrency / Exchange / DEXScan agent endpoints trigger APIs with mapped params.nn"
      },
      "typeVersion": 1
    },
    {
      "id": "5800cdc3-7d4b-4385-8401-b5913a43a28d",
      "name": "CMC Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        -1600
      ],
      "parameters": {
        "color": 3,
        "width": 680,
        "height": 600,
        "content": "## u26a0ufe0f Error Handling Guidenn| **Error Code** | **Meaning** |n|---------------|------------|n| `200` | Success |n| `400` | Bad Request (invalid query/params) |n| `401` | Unauthorized (missing or invalid API key) |n| `429` | Rate Limit Exceeded |n| `500` | CoinMarketCap server error |nn### ud83dudd0d Common Fixesn- Ensure `symbol`, `slug`, or `id` match valid CoinMarketCap entriesn- Use correct `timestamp`, `network`, and pagination parametersn- Rate-limit high-frequency queries to avoid 429 errorsnn---nn## ud83dude80 Need Help?nFor custom CoinMarketCap agent support, dashboards, or token data automation, connect:nnud83cudf10 **Don Jayamaha u2014 LinkedIn**  nud83dudd17 [http://linkedin.com/in/donjayamahajr](http://linkedin.com/in/donjayamahajr)nnu00a9 2025 Treasurium Capital Limited Company. All rights reserved.nThis AI workflow architecture, including logic, design, and prompt structures, is the intellectual property of Treasurium Capital Limited Company. Unauthorized reproduction, redistribution, or resale is prohibited under U.S. copyright law. Licensed use only.n"
      },
      "typeVersion": 1
    },
    {
      "id": "068e7732-d92e-4a1d-a4b5-c0ee6363f3fb",
      "name": "CMC Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -1600
      ],
      "parameters": {
        "color": 5,
        "width": 900,
        "height": 1500,
        "content": "## ud83dudccc How to Use the Workflownn### u2705 Step 1: Provide Inputsn- Use token `symbol`, `slug`, or `ID`n- Set timestamps (`before`, `after`) in **Unix format** for historical datan- Use `chain`, `limit`, and `start` for pagination when needednn### u2705 Step 2: Execute API Toolsn- The AI routes queries to sub-agents: **Cryptocurrency**, **Exchange**, or **DEXScan**nn### u2705 Step 3: Get Response & Outputn- Results can be output to Telegram, dashboards, or n8n HTTP Response nodesnn---nn## ud83dudde3ufe0f Example Questions to Ask the CMC AI Analystnn### ud83dudcac Market Intelligencen- "What are the top 5 tokens by trading volume right now?"n- "Which coins gained the most in the last 24 hours?"n- "Whatu2019s the total crypto market cap today?"nn### ud83dudcac Token Insightsn- "Whatu2019s the price of SOL in USD?"n- "How much is 1000 USDT in BTC?"n- "Show me the description and whitepaper link for Dogecoin."nn### ud83dudcac Exchange & Sentimentn- "Whatu2019s the Fear & Greed index today?"n- "List exchanges with the highest asset holdings."n- "Give me info about Binance u2013 when was it launched?"nn### ud83dudcac DEX Datan- "Show me the top DEX spot pairs on Ethereum."n- "Whatu2019s the OHLCV data for SOL-USDT on Solana over the last 7 days?"n- "What trades just occurred on PancakeSwap?"nn---nn## u26a0ufe0f Example API Queriesnn### 1ufe0fu20e3 Get Top 5 Tokens by Volumen```plaintextnGET /v1/cryptocurrency/listings/latest?sort=volume_24h&limit=5n```nn### 2ufe0fu20e3 Convert 1000 USDT to BTCn```plaintextnGET /v1/tools/price-conversion?amount=1000&symbol=USDT&convert=BTCn```nn### 3ufe0fu20e3 Check Fear & Greed Indexn```plaintextnGET /v3/fear-and-greed/latestn```nn### 4ufe0fu20e3 Get OHLCV of DEX Pairn```plaintextnGET /v4/dex/pairs/ohlcv/historical?network=solana&pair=SOL-USDT&interval=1dn```nn---"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ed2f29c5-293a-4796-8986-9c5f9980c6c6",
  "connections": {
    "Adds SessionId": {
      "main": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Input": {
      "main": [
        [
          {
            "node": "Adds SessionId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap Memory": {
      "ai_memory": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap Agent Brain": {
      "ai_languageModel": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap Crypto Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap DEXScan Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap AI Data Analyst Agent": {
      "main": [
        [
          {
            "node": "Telegram Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CoinMarketCap Exchange and Community Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "CoinMarketCap AI Data Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}