Query live CoinMarketCap crypto data with an n8n AI Agent
Import template → configure CoinMarketCap API and OpenAI credentials → query prices, rankings, conversions, and global metrics in natural language
- Who
- Crypto analysts, traders, developers, or teams that need automated real-time token prices and market data
- You get
- Get live prices, rankings, metadata, global market stats, and currency conversions from CoinMarketCap via natural-language queries
- You need
- n8n
Constraints
Import the official n8n template, configure a CoinMarketCap API Key (HTTP Header Auth) and an OpenAI API Key, then trigger via Execute Workflow Trigger with message and sessionId inputs. The AI Agent (GPT-4o-mini) routes to one of six HTTP Request Tools based on the systemMessage-defined tool specifications and returns the API result.
What they did
The author, don-the-gem-dealer, built the CoinMarketCap Crypto Agent template in n8n using GPT-4o-mini as the language model and six CoinMarketCap API endpoints (Crypto Map, Crypto Info, Crypto Listings, Price Quotes, Global Metrics, Price Conversion) as toolHttpRequest tools. The workflow receives message and sessionId via executeWorkflowTrigger and is designed to run standalone or as a sub-workflow triggered by a supervisor AI agent.
How it went
The template is published on n8n.io with 8,641 views (source: n8n API views field). No independent test report or ROI data from the author is available.
Worth knowing
This template is part of the broader CoinMarketCap AI Analyst system; the author also offers specialized agents for exchanges, community data, and DEX insights. Session-level memory is provided by memoryBufferWindow, but long-term memory is not configured. CoinMarketCap API free tiers have rate limits; a 429 response requires throttling or upgrading. Workflow copyright belongs to Treasurium Capital Limited Company; redistribution is prohibited. This site has not tested the template; verify API connectivity and costs with small queries before production use.
Steps
Get a CoinMarketCap API Key
Go to https://coinmarketcap.com/api/ to register and obtain an API Key. Free tiers have usage limits; confirm your plan's rate limit before running bulk queries.
Configure credentials in n8n
Create two credentials in n8n: 1) HTTP Header Auth — set Header Name to 'X-CMC_PRO_API_KEY' and Value to your CoinMarketCap API Key; 2) OpenAI API — enter your OpenAI API Key. The six CoinMarketCap HTTP Request Tool nodes and the AI Agent Brain node will reference these credentials.
Import the workflow and confirm trigger inputs
Import this workflow from the n8n template library (template ID 3422). Verify that the trigger node 'When Executed by Another Workflow' accepts message (user query) and sessionId (session identifier for memory context). It can run standalone or be called by a supervisor workflow via an Execute Workflow node.
Configure the AI Agent systemMessage
Open the 'CoinMarketCap Crypto Agent' node and verify that options.systemMessage contains the definitions, endpoints, parameters, and use cases for all six tools. This systemMessage determines how the AI routes user intent to the correct tool.
Test with natural-language queries
During a test run or supervisor call, pass a message such as: 'Show me the top 10 cryptocurrencies by market cap.' or 'Convert 5 ETH to USD.' The AI Agent selects the appropriate endpoint based on the systemMessage tool definitions and returns raw JSON or formatted results. If you receive a 429 error, reduce call frequency or upgrade your CoinMarketCap plan.
Execution prompt · Source text。Example message input for testing
Show me the top 10 cryptocurrencies by market cap.
Execution prompt · Source text。Example message input for testing
What is the CoinMarketCap ID for PEPE?
Execution prompt · Source text。Example message input for testing
Convert 5 ETH to USD.
Execution prompt · Source text。Example message input for testing
What’s the 24h volume for ADA?
Execution prompt · Source text。Example message input for testing
Get the global market cap and BTC dominance.
Prompt you can copy
Execution prompt · Source text。Passed in by the parent AI agent workflow that calls this sub-workflow
This block is the prompt. Ads are never placed here.
Show me the top 10 cryptocurrencies by market cap.
This prompt is a pre-build checklist, not a node runtime instruction. Runtime instructions are embedded in the workflow.json systemMessage.
Source
Get live crypto market data with AI-powered CoinMarketCap agent · don-the-gem-dealer · n8n.io · 2025-04-03T13:26:21.792Z
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.