8
n8n 中文网amn8n.com

Binance SM 新闻和情绪分析师 Webhook 工具

高级

这是一个Finance, AI领域的自动化工作流,包含 28 个节点。主要使用 Set, Code, Merge, Webhook, RssFeedRead 等节点,结合人工智能技术实现智能自动化。 使用GPT-4o和Telegram警报分析任何代币的加密货币新闻情绪

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "f8Zow3PmilvRq85m",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6"
  },
  "name": "Binance SM 新闻和情绪分析师 Webhook 工具",
  "tags": [],
  "nodes": [
    {
      "id": "1d71285d-a4bf-456a-a356-b9fa8b74c9d3",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1020,
        1220
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "300cab6c-63ee-4271-a63e-b3afb135bdcf",
      "name": "设置查询",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        1040
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "9128e9e7-d1b8-4e89-8422-849b8dd519d8",
              "name": "query",
              "type": "string",
              "value": "={{ $json.output }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "d7307bc3-f7c2-4db1-8674-5c6025ce7e2a",
      "name": "加密新闻与情绪代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -960,
        1040
      ],
      "parameters": {
        "text": "={{$json.body.message}}",
        "options": {
          "systemMessage": "Your job is to analyze the keyword of the question and output it as a single word.  The keyword will always be the name of a cryptocurrency."
        },
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "c4ad1805-cb48-45a3-b850-4960f59299f0",
      "name": "RSS Cointelegraph",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        200
      ],
      "parameters": {
        "url": "https://cointelegraph.com/rss",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "5fc71ef5-a376-41a0-9213-15cc4527b049",
      "name": "RSS Bitcoinmagazine",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        360
      ],
      "parameters": {
        "url": "https://bitcoinmagazine.com/.rss/full/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "bdbf7bab-c3a6-4f65-bbb9-a6cd83763dc5",
      "name": "RSS Coindesk",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        520
      ],
      "parameters": {
        "url": "https://www.coindesk.com/arc/outboundfeeds/rss/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "836d7edd-62c5-4819-aa30-c48c4b1f005d",
      "name": "RSS Bitcoinist",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        680
      ],
      "parameters": {
        "url": "https://bitcoinist.com/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "a0778852-e86b-41e5-a3f8-6d4352e397a1",
      "name": "RSS Newsbtc",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        840
      ],
      "parameters": {
        "url": "https://www.newsbtc.com/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "d5c5cc4f-ef15-40af-be33-31ce2dbdc45e",
      "name": "RSS Cryptopotato",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        1200
      ],
      "parameters": {
        "url": "https://cryptopotato.com/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "5f02ad60-9b0a-49fc-afd7-558ac5aeee2d",
      "name": "RSS 99bitcoins",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        1380
      ],
      "parameters": {
        "url": "https://99bitcoins.com/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "cc5373ab-931a-4b95-a1d4-6d21fa18273a",
      "name": "RSS Cryptobriefing",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        1560
      ],
      "parameters": {
        "url": "https://cryptobriefing.com/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "e5baa2ef-0455-42b0-a597-dedd551ae1aa",
      "name": "RSS Crypto.news",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        160,
        1720
      ],
      "parameters": {
        "url": "https://crypto.news/feed/",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "2cb96040-0e47-41b5-9c32-8362d397333c",
      "name": "合并所有文章",
      "type": "n8n-nodes-base.merge",
      "position": [
        840,
        880
      ],
      "parameters": {
        "numberInputs": 10
      },
      "typeVersion": 3.1
    },
    {
      "id": "a1f53681-504a-445a-9aa1-35c40f174e0c",
      "name": "按查询过滤",
      "type": "n8n-nodes-base.code",
      "position": [
        1080,
        1020
      ],
      "parameters": {
        "jsCode": "const term = $node[\"Set Query\"].json.query.toLowerCase();\nreturn items.filter(item => {\n  const j            = item.json;\n  const title        = (j.title || \"\").toLowerCase();\n  const snippet      = (j.contentSnippet || j.description || \"\").toLowerCase();\n  const fullContent  = (j.content || \"\").toLowerCase();\n  return title.includes(term)\n      || snippet.includes(term)\n      || fullContent.includes(term);\n});"
      },
      "typeVersion": 2
    },
    {
      "id": "3b886f03-884f-4c9a-bb74-46be78c941fe",
      "name": "构建提示",
      "type": "n8n-nodes-base.code",
      "position": [
        1400,
        1020
      ],
      "parameters": {
        "jsCode": "const q   = $node[\"Set Query\"].json.query;\nconst list = items\n  .map(i => `- ${i.json.title} (${i.json.link})`)\n  .join(\"\\n\");\nconst prompt = `\nYou are a crypto-industry news analyst.\nSummarize current news and market sentiment for **${q}** based on these articles:\n${list}\n\nAnswer in 3 parts:\n1. Summary of News\n2. Market Sentiment\n3. Links to reference news articles\n`;\nreturn [{ json: { prompt } }];"
      },
      "typeVersion": 2
    },
    {
      "id": "936b9c46-0ea4-498a-9dbb-b4f6b62cf70f",
      "name": "总结新闻与情绪 (GPT-4o)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1680,
        1020
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "GPT-4O"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={{ $node[\"Build Prompt\"].json.prompt }}"
            },
            {
              "role": "assistant",
              "content": "You are a crypto‐industry news analyst. Summarize sentiment clearly and concisely."
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "2c1b4212-3675-416d-a0f4-f1bce7b1581b",
      "name": "准备 Telegram 消息",
      "type": "n8n-nodes-base.set",
      "position": [
        2100,
        1020
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "565fb705-ac83-4a96-9343-2e29e348cc4f",
              "name": "summary",
              "type": "string",
              "value": "={{ $json.message.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ae4eacc3-281d-4c40-a1c8-fbd580fb49a8",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        900
      ],
      "parameters": {
        "color": 6,
        "width": 600,
        "height": 460,
        "content": "## 提取关键词"
      },
      "typeVersion": 1
    },
    {
      "id": "ea8734d6-5f17-4587-88aa-fcd342a563c5",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 5,
        "width": 460,
        "height": 1980,
        "content": "## 新闻聚合器"
      },
      "typeVersion": 1
    },
    {
      "id": "214d3fa9-d3f2-4e8a-bfab-5d4deb2881cf",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        680
      ],
      "parameters": {
        "color": 2,
        "width": 480,
        "height": 760,
        "content": "## 合并与过滤新闻"
      },
      "typeVersion": 1
    },
    {
      "id": "c6942449-1e0b-4bca-b1e0-411a3deaf26d",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1320,
        840
      ],
      "parameters": {
        "color": 7,
        "width": 260,
        "height": 360,
        "content": "## 准备 AI 提示"
      },
      "typeVersion": 1
    },
    {
      "id": "7f401bd0-f14d-49d6-9d4a-fcb6e01bd64c",
      "name": "## 试试看!",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1640,
        800
      ],
      "parameters": {
        "color": 3,
        "width": 340,
        "height": 440,
        "content": "## 总结新闻与情绪 (GPT-4o)"
      },
      "typeVersion": 1
    },
    {
      "id": "f60cb8e4-8d3f-4112-a200-6affb3b80cb3",
      "name": "GET 模型",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2040,
        760
      ],
      "parameters": {
        "color": 6,
        "height": 460,
        "content": "## 为 Telegram 格式化"
      },
      "typeVersion": 1
    },
    {
      "id": "e19e48b4-36cb-4b0b-87c5-0bae7f6068d7",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1440,
        1040
      ],
      "webhookId": "a41af97d-6bd6-44d2-b79e-dca6df1e6e7e",
      "parameters": {
        "path": "a41af97d-6bd6-44d2-b79e-dca6df1e6e7e",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "7fae635b-2c8d-44e5-ac2a-b8a458653905",
      "name": "响应 Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2440,
        1020
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    },
    {
      "id": "96b562cd-1a55-40ef-aa0c-5d553d7f9818",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        740
      ],
      "parameters": {
        "color": 4,
        "height": 480,
        "content": "## Webhook 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "8422e6bb-320e-4b5b-b392-2ba3adb215b7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2380,
        760
      ],
      "parameters": {
        "color": 4,
        "height": 480,
        "content": "## 将结果返回给调用者"
      },
      "typeVersion": 1
    },
    {
      "id": "f323030f-c92f-4bff-a5df-f498aa70d9c4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2780,
        -360
      ],
      "parameters": {
        "width": 1340,
        "height": 2360,
        "content": "# 📰 Binance SM 新闻和情绪分析师 Webhook 工具 – 文档"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9c17a79d-f8a4-413e-a486-2e89229994cf",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Crypto News & Sentiment Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Query": {
      "main": [
        [
          {
            "node": "RSS Cointelegraph",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Bitcoinmagazine",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Coindesk",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Bitcoinist",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Newsbtc",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Cryptopotato",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS 99bitcoins",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Cryptobriefing",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Crypto.news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Newsbtc": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Build Prompt": {
      "main": [
        [
          {
            "node": "Summarize News & Sentiment (GPT-4o)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Coindesk": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "RSS 99bitcoins": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 7
          }
        ]
      ]
    },
    "RSS Bitcoinist": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Filter by Query": {
      "main": [
        [
          {
            "node": "Build Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Crypto.news": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 9
          }
        ]
      ]
    },
    "RSS Cryptopotato": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 6
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Crypto News & Sentiment Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "RSS Cointelegraph": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Articles": {
      "main": [
        [
          {
            "node": "Filter by Query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Cryptobriefing": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 8
          }
        ]
      ]
    },
    "RSS Bitcoinmagazine": {
      "main": [
        [
          {
            "node": "Merge All Articles",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Prepare Telegram Message": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crypto News & Sentiment Agent": {
      "main": [
        [
          {
            "node": "Set Query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize News & Sentiment (GPT-4o)": {
      "main": [
        [
          {
            "node": "Prepare Telegram Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 财务, 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量28
分类2
节点类型10
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

外部链接
在 n8n.io 查看

分享此工作流