CoinSage AI — AI-powered crypto market intelligence agent (workflow JSON)

{“name”: “My workflow”,
“nodes”: [
{
“parameters”: {
“rule”: {
“interval”: [
{
“field”: “hours”,
“hoursInterval”: 4
}
]
}
},
“type”: “n8n-nodes-base.scheduleTrigger”,
“typeVersion”: 1.3,
“position”: [
-384,
-624
],
“id”: “9e61e3c1-be99-4de0-93f3-d92dd55e33a3”,
“name”: “Schedule Trigger”
},
{
“parameters”: {
“url”: “https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=price_change_percentage_24h_desc&per_page=250&page=1&sparkline=false”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
-160,
-912
],
“id”: “a0cd9151-c5a0-4598-9349-230130cb39f6”,
“name”: “HTTP Request”,
“retryOnFail”: true,
“maxTries”: 5,
“waitBetweenTries”: 5000,
“executeOnce”: false
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “loose”,
“version”: 3
},
“conditions”: [
{
“id”: “561e95ae-2520-4f89-ad19-13c0212437f6”,
“leftValue”: “={{$json.change_24h}}”,
“rightValue”: “=3”,
“operator”: {
“type”: “number”,
“operation”: “gt”
}
},
{
“id”: “9fa62733-1534-40c0-98aa-32dd4a8fff4b”,
“leftValue”: “={{$json.change_24h}}”,
“rightValue”: “=-3”,
“operator”: {
“type”: “number”,
“operation”: “lt”
}
}
],
“combinator”: “or”
},
“looseTypeValidation”: true,
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.3,
“position”: [
1184,
-704
],
“id”: “f285f103-7e53-4d8a-9723-f881e8bc5f70”,
“name”: “Filter”
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=You are a crypto market analyst. \nAnalyze the following coin and provide a 2-3 sentence news-style insight including:\n- The 24h price change\n- Current trend\n- Price\n- Any potential alerts or notes for investors\n\nCoin: {{$json.symbol}}\nPrice: {{$json.price}}\n24h Change: {{$json.change_24h}}%”,
“needsFallback”: true,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 3.1,
“position”: [
2432,
-624
],
“id”: “e464e221-6f10-4084-aa55-9dd6dc6694da”,
“name”: “AI Agent”,
“retryOnFail”: false,
“onError”: “continueRegularOutput”
},
{
“parameters”: {
“query”: “=“Defined automatically by the model”.”,
“options”: {
“topic”: “news”,
“search_depth”: “basic”,
“max_results”: 2,
“time_range”: “day”
}
},
“type”: “@tavily/n8n-nodes-tavily.tavilyTool”,
“typeVersion”: 1,
“position”: [
2688,
-400
],
“id”: “d668cfd0-0541-4a42-901d-58356b678c84”,
“name”: “Search in Tavily”,
“credentials”: {
“tavilyApi”: {
“id”: “RtOyqWLWKiLJc0Or”,
“name”: “Tavily account”
}
}
},
{
“parameters”: {
“sessionIdType”: “customKey”,
“sessionKey”: “crypto-session-1”
},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
2560,
-400
],
“id”: “9f2cebf9-cb61-4eee-a648-bde862086c1b”,
“name”: “Simple Memory”
},
{
“parameters”: {
“chatId”: “1792219463”,
“text”: “={{ $node[“Merge”].json[“price_change_percentage_24h”] > 0 ? ‘:rocket:’ : ‘:red_triangle_pointed_down:’ }} {{ $node[“Merge”].json[“name”].toUpperCase() }} ALERT\n📊 Move: {{ $node[“Merge”].json[“price_change_percentage_24h”].toFixed(2) }}%\n🧠 AI Insight: {{ $json[“output”] }}\n\n🌡️ Market Mood: {{ $node[“Get Fear & Greed”].json[“data”][0][“value_classification”] }} ({{ $node[“Get Fear & Greed”].json[“data”][0][“value”] }}/100)\n\n🔗 <a href=" Live stock, index, futures, Forex and Bitcoin charts on TradingView {{ $node[“Merge”].json[“symbol”].toUpperCase() }}USDT">View Live Chart\n”,
“replyMarkup”: “inlineKeyboard”,
“inlineKeyboard”: {
“rows”: [
{
“row”: {
“buttons”: [
{
“text”: “:chart_increasing: View Chart & Trade”,
“additionalFields”: {
“url”: “= Live stock, index, futures, Forex and Bitcoin charts on TradingView {{ $node[“Merge”].json[“symbol”].toUpperCase() }}USDT”
}
}
]
}
}
]
},
“additionalFields”: {
“appendAttribution”: false,
“parse_mode”: “HTML”
}
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
2896,
-624
],
“id”: “25f2055e-2528-49a1-912d-7e1723064a6c”,
“name”: “Send a text message”,
“webhookId”: “b5978903-a432-4d70-99f8-47ad48482650”,
“credentials”: {
“telegramApi”: {
“id”: “NR8Oiu5O7cbuIX28”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“url”: “https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=price_change_percentage_24h_asc&per_page=250&page=1&sparkline=false”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
-160,
-720
],
“id”: “b6838454-0b83-4dcf-a774-082739bf7d04”,
“name”: " HTTP 2",
“retryOnFail”: true,
“maxTries”: 5,
“waitBetweenTries”: 5000
},
{
“parameters”: {},
“type”: “n8n-nodes-base.merge”,
“typeVersion”: 3.2,
“position”: [
64,
-624
],
“id”: “9f157a04-b1ed-444a-a575-42f3b445592a”,
“name”: “Merge”
},
{
“parameters”: {
“compare”: “selectedFields”,
“fieldsToCompare”: “symbol”,
“options”: {
“disableDotNotation”: true,
“removeOtherFields”: true
}
},
“type”: “n8n-nodes-base.removeDuplicates”,
“typeVersion”: 2,
“position”: [
512,
-624
],
“id”: “8ca20821-47aa-4e60-8df8-818ae0e3f4ca”,
“name”: “Remove Duplicates”
},
{
“parameters”: {
“url”: “https://api.alternative.me/fng/”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
-160,
-528
],
“id”: “9fcf82b8-b6a9-4c32-bf5f-d945b9d6c31f”,
“name”: “Get Fear & Greed”
},
{
“parameters”: {
“options”: {}
},
“type”: “n8n-nodes-base.splitInBatches”,
“typeVersion”: 3,
“position”: [
1856,
-624
],
“id”: “cc8d242f-790c-421b-93f8-1f5fb447fb50”,
“name”: “Loop Over Items”
},
{
“parameters”: {
“amount”: 10
},
“type”: “n8n-nodes-base.wait”,
“typeVersion”: 1.1,
“position”: [
2080,
-624
],
“id”: “f8bb86e8-07e8-4b5c-9191-b1d24a2f4f24”,
“name”: “Wait”,
“webhookId”: “1866082f-152b-4bf4-891c-ec46648c7cc5”
},
{
“parameters”: {
“sortFieldsUi”: {
“sortField”: [
{
“fieldName”: “change_24h”,
“order”: “descending”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.sort”,
“typeVersion”: 1,
“position”: [
1408,
-624
],
“id”: “98886dc3-9ce6-49eb-b8d2-77d82825aad9”,
“name”: “Sort”
},
{
“parameters”: {
“url”: “https://api.coingecko.com/api/v3/search/trending”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
-160,
-336
],
“id”: “1b6e47d1-174e-4c9f-b45d-d56a65da7f6a”,
“name”: “Trending "
},
{
“parameters”: {
“modelName”: “models/gemini-2.0-flash-001”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatGoogleGemini”,
“typeVersion”: 1,
“position”: [
2304,
-400
],
“id”: “08123a35-8be1-49da-84b9-267303926343”,
“name”: “Google Gemini Chat Model”,
“credentials”: {
“googlePalmApi”: {
“id”: “l7GM5mN2zdAP0zmA”,
“name”: “Google Gemini(PaLM) Api account”
}
}
},
{
“parameters”: {
“maxItems”: 3
},
“type”: “n8n-nodes-base.limit”,
“typeVersion”: 1,
“position”: [
1632,
-624
],
“id”: “9e150a02-ceb8-47bb-8344-f85c203783e0”,
“name”: “Limit”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 3
},
“conditions”: [
{
“id”: “902f3525-53d2-4eb1-9318-3581e839df98”,
“leftValue”: “={{$json.symbol}}”,
“rightValue”: “=”,
“operator”: {
“type”: “string”,
“operation”: “notEmpty”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.3,
“position”: [
288,
-624
],
“id”: “a4c55627-49ed-460d-a754-4a5c26dba6a7”,
“name”: “Filter1”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “c7a10fb9-433b-413d-a1ab-e81b06bc3732”,
“name”: “change_24h”,
“value”: “={{$json.price_change_percentage_24h \n|| $json.data?.price_change_percentage_24h \n|| $json.item?.data?.price_change_percentage_24h}}”,
“type”: “number”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
736,
-624
],
“id”: “ae4f4d5e-de7b-46e4-8543-62c901b3ea29”,
“name”: “Edit Fields1”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 3
},
“conditions”: [
{
“id”: “2785042b-9729-47ed-aef0-b8a0e18de141”,
“leftValue”: “={{$json.change_24h}}”,
“rightValue”: 5,
“operator”: {
“type”: “number”,
“operation”: “gt”
}
},
{
“id”: “9c5824fc-7969-4d35-8e3d-1084a4c69b3e”,
“leftValue”: “={{$json.change_24h}}”,
“rightValue”: -5,
“operator”: {
“type”: “number”,
“operation”: “lt”
}
}
],
“combinator”: “or”
},
“options”: {}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.3,
“position”: [
960,
-624
],
“id”: “bc584a6e-8f7c-4f90-9d73-39f22ba0df4c”,
“name”: “If”
},
{
“parameters”: {
“model”: “openai/gpt-oss-20b”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatGroq”,
“typeVersion”: 1,
“position”: [
2432,
-400
],
“id”: “6e3e0073-3bc3-41e4-82f7-2226261d9415”,
“name”: “Groq Chat Model”,
“credentials”: {
“groqApi”: {
“id”: “LNz4KQctBuTZv5tv”,
“name”: “Groq account”
}
}
}
],
“pinData”: {},
“connections”: {
“Schedule Trigger”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
},
{
“node”: " HTTP 2”,
“type”: “main”,
“index”: 0
},
{
“node”: "Trending “,
“type”: “main”,
“index”: 0
},
{
“node”: “Get Fear & Greed”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request”: {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter”: {
“main”: [
[
{
“node”: “Sort”,
“type”: “main”,
“index”: 0
}
]
]
},
“Search in Tavily”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Simple Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [
[
{
“node”: “Send a text message”,
“type”: “main”,
“index”: 0
}
]
]
},
" HTTP 2”: {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 0
}
]
]
},
“Merge”: {
“main”: [
[
{
“node”: “Filter1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Remove Duplicates”: {
“main”: [
[
{
“node”: “Edit Fields1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Fear & Greed”: {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 1
}
]
]
},
“Loop Over Items”: {
“main”: [
,
[
{
“node”: “Wait”,
“type”: “main”,
“index”: 0
}
]
]
},
“Send a text message”: {
“main”: [

]
},
“Wait”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“Sort”: {
“main”: [
[
{
“node”: “Limit”,
“type”: “main”,
“index”: 0
}
]
]
},
"Trending ": {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 0
}
]
]
},
“Google Gemini Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Limit”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter1”: {
“main”: [
[
{
“node”: “Remove Duplicates”,
“type”: “main”,
“index”: 0
}
]
]
},
“Edit Fields1”: {
“main”: [
[
{
“node”: “If”,
“type”: “main”,
“index”: 0
}
]
]
},
“If”: {
“main”: [
[
{
“node”: “Filter”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Sort”,
“type”: “main”,
“index”: 0
}
]
]
},
“Groq Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 1
}
]
]
}
},
“active”: true,
“settings”: {
“executionOrder”: “v1”,
“availableInMCP”: false
},
“versionId”: “2f55681a-4ef0-4ad5-ba4e-a377b170b438”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “29596830d52127109020df4c51799bcd46e977cd99eb3745037405a7614658a0”
},
“id”: “pVvjQUBgJDCeVcMKFvFaW”,
“tags”:
}