CoinMarketCap Exchange and Community Agent Tool
detail.loadingPreview
Leverages CoinMarketCap API and AI to provide insights on cryptocurrency exchanges, community sentiment, and market indices.
About This Workflow
This n8n workflow acts as an AI-powered agent to interact with the CoinMarketCap API. It's designed to retrieve and process data related to cryptocurrency exchanges, community sentiment, and market indices. The agent utilizes Langchain's AI nodes, specifically an OpenAI model (gpt-4o-mini) and a variety of tool nodes representing CoinMarketCap API endpoints.
It can fetch exchange maps, detailed exchange information, exchange asset holdings, the CMC 100 Index, and the Fear and Greed Index. The workflow is triggered by another workflow, receiving a message query and a session ID for context management.
Key Features
- AI-Powered Agent: Uses Langchain and OpenAI (gpt-4o-mini) for intelligent data processing.
- CoinMarketCap API Integration: Connects to multiple CoinMarketCap endpoints (
/exchange/map,/exchange/info,/exchange/assets,/index/cmc100-latest,/fear-and-greed/latest). - Tool Utilization: Dynamically selects and uses appropriate API tools based on user queries.
- Structured Metadata Generation: Processes API responses to provide insights into exchanges and market trends.
- Contextual Memory: Employs
memoryBufferWindowfor maintaining conversation state. - Error Handling: Includes a system message for handling API response overload.
- Workflow Trigger: Designed to be executed by other n8n workflows, accepting
messageandsessionIdas inputs.
How To Use
This workflow is designed to be triggered by another n8n workflow. It expects two inputs:
message: The natural language query for the agent (e.g., "What are the token holdings of Binance?", "Show me the latest Fear & Greed score.").sessionId: A unique identifier for the conversation, used by thememoryBufferWindownode to maintain context.
The agent will then process the message, select the appropriate CoinMarketCap API tool(s), execute them, and return the structured results.
Key Tool Descriptions:
Exchange Map: Retrieves a list of exchanges by slug. Essential for getting exchange IDs.Exchange Info: Fetches metadata for a specific exchange using its ID.Exchange Assets: Shows on-chain token holdings for an exchange using its ID.CMC 100 Index: Returns data for the CoinMarketCap 100 Index.Fear and Greed Latest: Provides the latest crypto market sentiment score.
Apps Used
Workflow JSON
{
"id": "acaf6bfe-c4d2-48f5-a32c-cb03f86bb7ae",
"name": "CoinMarketCap Exchange and Community Agent Tool",
"nodes": 28,
"category": "Data Analysis",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: acaf6bfe-c4d2...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
CoinMarketCap AI Data Analyst Agent
An AI agent for comprehensive crypto market analysis using CoinMarketCap data, supporting both centralized and decentralized platforms.
Hacker News Year-in-Review Summarizer
Generates a historical overview of Hacker News headlines for a specific day across multiple years, highlighting tech trends and categorizing key stories.