N
n8n Store
Workflow Market
Memecoin navigator

Memecoin navigator

Description

Categories

⚙️ Automation

Nodes Used

n8n-nodes-base.ifn8n-nodes-base.functionn8n-nodes-base.telegramn8n-nodes-base.httpRequestn8n-nodes-base.telegramTrigger
PriceGratuit
Views0
Last Updated11/28/2025
workflow.json
{
  "id": "XDaL4KxmDH5086wS",
  "meta": {
    "instanceId": "08c80bbdbc0862fc897775651ca4e74f266eecab5ad1391c64483290c5555090",
    "templateCredsSetupCompleted": true
  },
  "name": "Memecoin navigator",
  "tags": [],
  "nodes": [
    {
      "id": "dff9220b-de43-48a4-9a5c-16c63d4abb7b",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        220,
        40
      ],
      "webhookId": "6ee64662-8c2a-4588-b691-7a2250a7b04c",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "5VqKhumewYc3Vc7E",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "243cc624-5aec-4759-85c6-3fdd85b18c03",
      "name": "If /memecoin",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        40
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"message\"][\"text\"]}}",
              "value2": "/memecoin"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d107339d-d7fc-4258-85ad-099f50090848",
      "name": "Fetch Meme Coins",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        40
      ],
      "parameters": {
        "url": "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=5&page=1&sparkline=false&category=meme-token",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "32b5faa8-e15f-4a9f-a1aa-68f73f452e81",
      "name": "Format Message",
      "type": "n8n-nodes-base.function",
      "onError": "continueRegularOutput",
      "position": [
        880,
        40
      ],
      "parameters": {
        "functionCode": "const chatId = $node[\"Telegram Trigger\"].json[\"message\"][\"chat\"][\"id\"];\nconst coins = items[0].json; // the array of meme coins\n\nlet messageText = coins.map(coin => {\n  const name = coin.name || \"Unknown\";\n  const symbol = coin.symbol ? coin.symbol.toUpperCase() : \"N/A\";\n  const price = coin.current_price !== undefined ? `$${coin.current_price}` : \"Not available\";\n  const id = coin.id || \"unknown\";\n\n  return `🚀 *${name}* (${symbol})\\n💰 Price: ${price}\\n🔗 More: https://www.coingecko.com/en/coins/${id}`;\n}).join(\"\\n\\n\"); // separates each coin block\n\nreturn [{\n  json: {\n    chat_id: chatId,\n    text: messageText\n  }\n}];\n"
      },
      "executeOnce": false,
      "notesInFlow": false,
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "f2b74ea5-0092-43af-9b11-fb0d15a7a067",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1100,
        40
      ],
      "webhookId": "8eb5109d-7976-411a-ad48-7fcf334ef2b7",
      "parameters": {
        "text": "={{$json[\"text\"]}}",
        "chatId": "={{$json[\"chat_id\"]}}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "5VqKhumewYc3Vc7E",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "bea41962-3d87-4290-aefb-d16db2694a3f",
  "connections": {
    "If /memecoin": {
      "main": [
        [
          {
            "node": "Fetch Meme Coins",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Message": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Meme Coins": {
      "main": [
        [
          {
            "node": "Format Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "If /memecoin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

相关工作流