使用GPT-4o-mini分析CoinMarketCap热门加密货币并发送到Discord
高级
这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 19 个节点。主要使用 Discord, Markdown, HttpRequest, Agent, ScheduleTrigger 等节点。 使用GPT-4o-mini分析CoinMarketCap热门加密货币并发送到Discord
前置要求
- •Discord Bot Token 或 Webhook
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (19)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5a64ae2dac98d415b280f5a86dd824858150b2ae6e4b41f2e62e7315042262b3"
},
"nodes": [
{
"id": "91aec39d-c60a-4182-ac47-826124a25b86",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
688,
592
],
"parameters": {
"url": "https://coinmarketcap.com/trending-cryptocurrencies/",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "23188613-df85-40e1-8e6a-67308dfdac67",
"name": "Markdown",
"type": "n8n-nodes-base.markdown",
"position": [
912,
592
],
"parameters": {
"html": "={{ $json.data }}",
"options": {}
},
"typeVersion": 1
},
{
"id": "d9efa1a0-0089-4d48-8fe6-e08b03363f26",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1120,
592
],
"parameters": {
"text": "={{ $json.data }}",
"options": {
"systemMessage": "You are CoinSage, a crypto analyst bot for Discord.\n\nYour task is to analyze trending cryptocurrency coins scraped from CoinMarketCap and generate **one single stylized message** with key insights. The output must be:\n\n- Under 1500 characters total\n- Fully Markdown-compatible (for Discord embeds or raw posts)\n- Include links to CoinMarketCap and a DEX like DexScreener or Birdeye\n- Use emojis and bold text for readability\n- Cover up to 3 coins maximum\n\n---\n\n🧠 Format for Each Coin:\n\n**[$TICKER – {Coin Name}](https://coinmarketcap.com/currencies/{slug}/)** \n💰 Price: ${price} 24H: {change_24h}% 7D: {change_7d}% \n🏷️ Rank: #{rank} MCap: ${market_cap} Vol: ${volume_24h} \n🔗 [Trade on DEX]({dex_link}) \n🔥 *{1-line AI-generated insight — e.g., “Spiking volume from Telegram mentions”}* \n⚠️ *{Risk level — e.g., “Low cap, possible pump.”}* \n**━━━━━━━━━━━━**\n\n---\n\n✅ Output Rules:\n- Return one message block only (NO JSON, NO SPLITS)\n- Max 3 coins, 1500 characters total\n- Never use code blocks, backticks, or raw JSON\n- If content exceeds the limit, shorten summaries or remove last coin\n- Always include links and clean formatting\n\nYour only output should be the formatted message.\n"
},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "50c3cc42-fa11-4b25-9d15-dc28920c2ed1",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1072,
800
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "99e77fb7-60d3-4521-afd1-cccc325205ec",
"name": "Discord",
"type": "n8n-nodes-base.discord",
"position": [
1552,
592
],
"webhookId": "[REDACTED_WEBHOOK_ID]",
"parameters": {
"content": "={{ $json.output }}",
"guildId": {
"__rl": true,
"mode": "list",
"value": "1236784625196601386",
"cachedResultUrl": "https://discord.com/channels/1236784625196601386",
"cachedResultName": "YungCEO SOCIETY💰"
},
"options": {},
"resource": "message",
"channelId": {
"__rl": true,
"mode": "list",
"value": "1332674656586436660",
"cachedResultUrl": "https://discord.com/channels/1236784625196601386/1332674656586436660",
"cachedResultName": "🤖│trending-pools"
}
},
"typeVersion": 2
},
{
"id": "5746f4f3-f0d5-4c37-b89d-19e0696cfc6f",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
448
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 1
}
]
}
},
"typeVersion": 1.2
},
{
"id": "71d574eb-309d-4477-8a9a-91ebcbd5d3d4",
"name": "计划触发器1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
592
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 2
}
]
}
},
"typeVersion": 1.2
},
{
"id": "9a5b749d-4480-4463-8e12-e55eaab4daa0",
"name": "计划触发器2",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
752
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 3
}
]
}
},
"typeVersion": 1.2
},
{
"id": "671a3ea7-1083-41a0-bad6-65f10205078f",
"name": "计划触发器3",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
928
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 4
}
]
}
},
"typeVersion": 1.2
},
{
"id": "682cf717-19ce-4b18-95c6-c6305cb6b2d7",
"name": "计划触发器4",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
288
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 1
}
]
}
},
"typeVersion": 1.2
},
{
"id": "637b3c56-ce14-4a82-b38d-c950f1503b9e",
"name": "计划触发器5",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
160
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "cab30e3b-b5d7-40e7-b263-ca7c877eb0ff",
"name": "计划触发器6",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
1088
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 5
}
]
}
},
"typeVersion": 1.2
},
{
"id": "472c0c87-fe05-4c94-b8a4-8b190a690bb6",
"name": "当被其他工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
0,
0
],
"parameters": {
"inputSource": "passthrough"
},
"typeVersion": 1.1
},
{
"id": "eb62f148-092b-4d9c-8059-1ea57003f082",
"name": "工作流摘要",
"type": "n8n-nodes-base.stickyNote",
"position": [
688,
16
],
"parameters": {
"color": 0,
"width": 500,
"height": 600,
"content": "## 工作流概述"
},
"typeVersion": 1
},
{
"id": "8a710d9c-972b-4b45-9593-ef9e4f6e5bc3",
"name": "设置说明 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
544,
224
],
"parameters": {
"width": 400,
"height": 500,
"content": "## 说明 1:工作流以多个计划触发器节点开始,每个节点配置在不同小时运行,提供灵活的计划更新。这确保了整个早晨的定期更新。"
},
"typeVersion": 1
},
{
"id": "0a82344b-3e99-41dd-916e-9cac7c011eee",
"name": "设置说明 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
224
],
"parameters": {
"color": 2,
"width": 400,
"height": 500,
"content": "## 说明 2:HTTP 请求节点从 CoinMarketCap 的热门加密货币页面获取数据。该节点作为整个工作流的数据源。"
},
"typeVersion": 1
},
{
"id": "af07a53f-1d3a-4a3f-819c-9d236a7f3966",
"name": "设置说明 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1376,
224
],
"parameters": {
"color": 3,
"width": 400,
"height": 500,
"content": "## 说明 3:AI Agent 节点处理来自 CoinMarketCap 的原始数据。它使用自定义提示指令 OpenAI 语言模型生成简洁、格式化的消息,包含关于热门加密货币的关键见解,包括链接和表情符号。"
},
"typeVersion": 1
},
{
"id": "ea9fb2b8-0d49-424e-b72c-0b9c40ac69b8",
"name": "设置说明 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1792,
224
],
"parameters": {
"color": 4,
"width": 400,
"height": 500,
"content": "## 说明 4:OpenAI 聊天模型节点为 AI Agent 提供语言模型(GPT-4o-mini),负责生成有洞察力的加密货币摘要。"
},
"typeVersion": 1
},
{
"id": "08b5f961-820d-4f3c-ba84-b242837721e0",
"name": "设置说明 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2224,
224
],
"parameters": {
"color": 5,
"width": 400,
"height": 500,
"content": "## 说明 5:最后,Discord 节点将 AI 生成的摘要发送到指定的 Discord 服务器和频道。这将整齐格式化的加密货币分析直接传递给 Discord 社区。"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Discord",
"type": "main",
"index": 0
}
]
]
},
"Markdown": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Markdown",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Schedule Trigger1": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger2": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger3": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger4": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger5": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger6": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - AI 摘要总结, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4o和Discord从社交媒体趋势生成病毒式视频创意
使用GPT-4o和Discord从社交媒体趋势生成病毒式视频创意
Discord
Markdown
Http Request
+6
22 节点YungCEO
内容创作
使用AI自动化Morning Brew风格Reddit摘要并发布至DEV
使用AI自动化Morning Brew风格Reddit摘要并发布至DEV
If
Set
Wait
+13
26 节点Angel Menendez
AI 摘要总结
每日Gmail收件箱摘要转Discord(GPT-4.1-mini + PDF转换)
使用GPT-4.1-mini和PDF转换的每日Gmail收件箱摘要发送到Discord
Code
Gmail
Discord
+8
18 节点moosa
杂项
使用AI分析检测病毒式YouTube视频并发送邮件报告
使用AI分析检测病毒式YouTube视频并发送邮件报告
Set
Code
Sort
+14
26 节点gclbck
杂项
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
批量SEO内容生成与带AI图片的Webflow草稿创建(模板)
使用GPT、Gemini图片和Webflow草稿创建进行批量SEO内容生成
If
Set
Code
+18
54 节点Dahiana
内容创作