8
n8n 中文网amn8n.com

Gemini AI和CoinGecko的Telegram实时加密货币价格机器人

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Set, Code, Telegram, HttpRequest, TelegramTrigger 等节点。 Gemini AI和CoinGecko的Telegram实时加密货币价格机器人

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "76f564ce9e1f496ea6c3533f155d5217a31a74b1b62bea30c37742947aa7de7c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1fb0d234-9dca-4725-8233-df3e0423507d",
      "name": "便签 - Telegram 触发器",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        1504
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c4afd57f-1913-4317-b804-46781d652743",
      "name": "便签 - Gemini",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        1504
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b2863cda-6695-4815-9f97-3934d3881d8a",
      "name": "便签 - 设置代码",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        1504
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a00b2947-698b-42e7-8fd6-4f87033ee6dd",
      "name": "便签 - CoinGecko",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        1520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fd2a11eb-0c59-49d1-b030-4fa89c0d3786",
      "name": "便签 - 格式化",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3088,
        1520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5834e205-81a1-4a86-968f-9ad923d87a58",
      "name": "便签 - 发送 Telegram",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3744,
        1520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "948b1113-ec58-4a04-91ac-f6b0a1faf877",
      "name": "便签 - 快速开始",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        1296
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "32ab334a-74be-46d5-a4c0-a734b038af5a",
      "name": "获取价格 - Coingecko1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2768,
        1760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "031ca061-b4c9-4480-bae0-f63822ca0fe7",
      "name": "向模型1发送消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1136,
        1760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6fb5b890-c3df-4f81-8fb1-b7b52d7c3f82",
      "name": "设置代码1",
      "type": "n8n-nodes-base.set",
      "position": [
        1920,
        1760
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "dde6168e-48c1-450b-b768-e054f8f7c765",
      "name": "Telegram 触发器1",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        464,
        1760
      ],
      "webhookId": "3e9772bf-b368-4275-a982-6ab49bd3d40c",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "31ca2118-42d4-427d-b7b2-fbdd613a8c3d",
      "name": "Telegram 格式化1",
      "type": "n8n-nodes-base.code",
      "position": [
        3568,
        1760
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "40102032-6998-404d-8986-34d478de2028",
      "name": "发送 COIN 信息到 Telegram1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4432,
        1760
      ],
      "webhookId": "eb72ae34-e0c7-4d75-b964-f11f8e5eb2fd",
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "pinData": {},
  "connections": {
    "Set Ticker1": {
      "main": [
        [
          {
            "node": "Get Price - Coingecko1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model1": {
      "main": [
        [
          {
            "node": "Set Ticker1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger1": {
      "main": [
        [
          {
            "node": "Message a model1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Formatting1": {
      "main": [
        [
          {
            "node": "Send COIN INFO to Telegram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Price - Coingecko1": {
      "main": [
        [
          {
            "node": "Telegram Formatting1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量13
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流