AI Telegram机器人代理:智能助手与内容摘要器
高级
这是一个Other, AI领域的自动化工作流,包含 24 个节点。主要使用 If, Html, Telegram, HttpRequest, TelegramTrigger 等节点,结合人工智能技术实现智能自动化。 AI Telegram机器人代理:智能助手与内容摘要器
前置要求
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5aaf4236c70e34e423fbdb2c7b754d19253a933bb1476d548f75848a01e473cf"
},
"nodes": [
{
"id": "4a19458b-0bf2-45db-8146-734e4e8b352b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-580,
60
],
"parameters": {
"color": 7,
"width": 400,
"content": "快速启动 Telegram 回显机器人"
},
"typeVersion": 1
},
{
"id": "d2cceb34-b932-48ce-baf7-43535cfbad29",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-440,
420
],
"parameters": {
"color": 7,
"content": "监听器"
},
"typeVersion": 1
},
{
"id": "a279a398-4b55-4055-9c9f-8ea937d4d974",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
780
],
"parameters": {
"color": 7,
"content": "命令路由器"
},
"typeVersion": 1
},
{
"id": "868bb629-1288-4c8f-816b-001a7ca56be2",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
440,
20
],
"parameters": {
"color": 7,
"content": "帮助响应器"
},
"typeVersion": 1
},
{
"id": "ec490084-aa34-41bd-8dfd-4e0cdfee5dab",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
740
],
"parameters": {
"color": 7,
"content": "摘要检查器"
},
"typeVersion": 1
},
{
"id": "370842c3-18d9-42cd-946d-694e90a41ff1",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
220
],
"parameters": {
"color": 7,
"content": "获取器"
},
"typeVersion": 1
},
{
"id": "0217818c-85e4-43bb-a8d8-5053394c773f",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
1180
],
"parameters": {
"color": 7,
"content": "图片提示检查器"
},
"typeVersion": 1
},
{
"id": "ba617c66-4b13-41a1-9428-6d1afc4f458f",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1100,
440
],
"parameters": {
"color": 7,
"content": "文本提取器"
},
"typeVersion": 1
},
{
"id": "df9b404e-90d7-4f66-bcd4-9d64595e7b88",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
1320,
1360
],
"parameters": {
"color": 7,
"content": "图片生成器"
},
"typeVersion": 1
},
{
"id": "e7eda1c8-e860-4df2-9d4f-5d12e52b0551",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
1520,
220
],
"parameters": {
"color": 7,
"content": "摘要生成器"
},
"typeVersion": 1
},
{
"id": "50331c27-388c-490d-b9d7-ff5fe8449290",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1940,
1020
],
"parameters": {
"color": 7,
"content": "图片确认器"
},
"typeVersion": 1
},
{
"id": "7315f25a-d63d-4f49-a43f-87dc0ff64ffb",
"name": "便签11",
"type": "n8n-nodes-base.stickyNote",
"position": [
2140,
220
],
"parameters": {
"color": 7,
"content": "摘要发送器"
},
"typeVersion": 1
},
{
"id": "bcae4d20-e9af-4008-88b6-cfa1a6dcd6c9",
"name": "监听器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-140,
460
],
"webhookId": "61f2e55d-a41d-4594-a045-154264c78738",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"typeVersion": 1.2
},
{
"id": "8bbcc856-b323-4785-a8ec-9de61052531a",
"name": "命令路由器",
"type": "n8n-nodes-base.if",
"position": [
160,
600
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"message\"][\"text\"]}}",
"value2": "/help",
"operation": "startsWith"
}
]
}
},
"typeVersion": 1
},
{
"id": "09bc69c7-8852-46a8-be96-ae10bc652cd8",
"name": "帮助响应器",
"type": "n8n-nodes-base.telegram",
"position": [
380,
220
],
"webhookId": "ab573ae8-05e4-41bb-bec7-fca1233fc0bb",
"parameters": {
"text": "🤖 *Help Menu*\n\nUse `/summary <link>` to summarize an article.\nUse `/img <prompt>` to generate an image.\n\n_Example:_\n/summary https://example.com\n/img a futuristic cityscape",
"chatId": "={{$json[\"message\"][\"chat\"][\"id\"]}}",
"additionalFields": {
"parse_mode": "Markdown"
}
},
"typeVersion": 1
},
{
"id": "2780e14d-7ebd-43f4-87e9-1d5c7ead564e",
"name": "摘要检查器",
"type": "n8n-nodes-base.if",
"position": [
400,
540
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"message\"][\"text\"]}}",
"value2": "/summary",
"operation": "startsWith"
}
]
}
},
"typeVersion": 1
},
{
"id": "bb3faac2-e3cf-4633-8a69-4e6aedefd0be",
"name": "获取器",
"type": "n8n-nodes-base.httpRequest",
"position": [
760,
420
],
"parameters": {
"url": "={{ $json.message.link_preview_options.url }}",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "User-Agent",
"value": "Mozilla/5.0"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "7df71ce1-5680-46b5-a4fd-3fe3169aaaa5",
"name": "文本提取器",
"type": "n8n-nodes-base.html",
"position": [
1160,
700
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "text",
"cssSelector": "body",
"skipSelectors": "svg, a"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "f1856af1-7236-42f9-88b5-f86e91b42262",
"name": "摘要生成器",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1520,
440
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": ""
},
"options": {},
"messages": {
"values": [
{
"content": "=Summarize the entire content provided below into 10–12 concise bullet points. Ensure each point captures a unique and important aspect of the information, covering the core ideas, key facts, major findings, and essential takeaways. Avoid repetition and use clear, professional language suitable for quick understanding by a decision-maker.\n\nContent:\n {{ $json.text }}"
}
]
}
},
"typeVersion": 1.8
},
{
"id": "7fcdd8ab-1afa-4985-a9dd-bb9a13e723bf",
"name": "摘要发送器",
"type": "n8n-nodes-base.telegram",
"position": [
2060,
440
],
"webhookId": "c6f19898-b638-4e42-b377-d7664087ab0b",
"parameters": {
"text": "={{$json[\"candidates\"][0][\"content\"][\"parts\"][0][\"text\"]}}",
"chatId": "={{ $('Listener').item.json.message.chat.id }}",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "c4f73e58-995e-4a6a-a785-72e248121742",
"name": "图片提示检查器",
"type": "n8n-nodes-base.if",
"position": [
800,
1020
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"message\"][\"text\"]}}",
"value2": "/img",
"operation": "startsWith"
}
]
}
},
"typeVersion": 1
},
{
"id": "3115364c-3632-4922-82f9-93b45eb9fcb6",
"name": "图片生成器",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1400,
1160
],
"parameters": {
"options": {},
"resource": "image"
},
"typeVersion": 1.8
},
{
"id": "7c01b0fa-7937-4688-945e-fc949c8a3f40",
"name": "图片确认器",
"type": "n8n-nodes-base.telegram",
"position": [
2000,
820
],
"webhookId": "b5fb6529-a924-4885-8d6c-17073ce29bb0",
"parameters": {
"text": "🖼️ Generated image prompt submitted! Gemini image model doesn't return images directly. Use image generation APIs like Stability for actual image URLs.",
"chatId": "={{$json[\"message\"][\"chat\"][\"id\"]}}",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "e0eae618-d330-4b74-b5a4-528a28ec91c6",
"name": "便签12",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1260,
220
],
"parameters": {
"color": 4,
"width": 480,
"height": 740,
"content": "======================================="
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"bb3faac2-e3cf-4633-8a69-4e6aedefd0be": {
"main": [
[
{
"node": "7df71ce1-5680-46b5-a4fd-3fe3169aaaa5",
"type": "main",
"index": 0
}
]
]
},
"bcae4d20-e9af-4008-88b6-cfa1a6dcd6c9": {
"main": [
[
{
"node": "8bbcc856-b323-4785-a8ec-9de61052531a",
"type": "main",
"index": 0
}
]
]
},
"f1856af1-7236-42f9-88b5-f86e91b42262": {
"main": [
[
{
"node": "7fcdd8ab-1afa-4985-a9dd-bb9a13e723bf",
"type": "main",
"index": 0
}
]
]
},
"8bbcc856-b323-4785-a8ec-9de61052531a": {
"main": [
[
{
"node": "09bc69c7-8852-46a8-be96-ae10bc652cd8",
"type": "main",
"index": 0
}
],
[
{
"node": "2780e14d-7ebd-43f4-87e9-1d5c7ead564e",
"type": "main",
"index": 0
}
]
]
},
"09bc69c7-8852-46a8-be96-ae10bc652cd8": {
"main": [
[
{
"node": "8bbcc856-b323-4785-a8ec-9de61052531a",
"type": "main",
"index": 0
}
]
]
},
"7df71ce1-5680-46b5-a4fd-3fe3169aaaa5": {
"main": [
[
{
"node": "f1856af1-7236-42f9-88b5-f86e91b42262",
"type": "main",
"index": 0
}
]
]
},
"3115364c-3632-4922-82f9-93b45eb9fcb6": {
"main": [
[
{
"node": "7c01b0fa-7937-4688-945e-fc949c8a3f40",
"type": "main",
"index": 0
}
]
]
},
"2780e14d-7ebd-43f4-87e9-1d5c7ead564e": {
"main": [
[
{
"node": "bb3faac2-e3cf-4633-8a69-4e6aedefd0be",
"type": "main",
"index": 0
}
],
[
{
"node": "c4f73e58-995e-4a6a-a785-72e248121742",
"type": "main",
"index": 0
}
]
]
},
"c4f73e58-995e-4a6a-a785-72e248121742": {
"main": [
[
{
"node": "3115364c-3632-4922-82f9-93b45eb9fcb6",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 其他, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于命令的Telegram文章摘要和图像提示机器人
基于命令的Telegram机器人,用于文章摘要和图像提示生成
If
Html
Telegram
+
If
Html
Telegram
12 节点Yaron Been
人工智能
构建与销售AI自动化与智能体
构建与销售AI自动化与智能体
If
Set
Wait
+
If
Set
Wait
74 节点NICKYAI
其他
AI语音教练与生成器:使用Telegram、OpenAI和Gemini
AI语音教练与生成器:使用Telegram、OpenAI和Gemini
If
Set
Code
+
If
Set
Code
22 节点NanaB
其他
通过Bright Data进行竞争对手价格监控
使用Bright Data和n8n的自动竞争对手价格监控
If
Code
Html
+
If
Code
Html
15 节点Yaron Been
人工智能
使用AI从Telegram创建社交媒体内容
使用AI从Telegram创建社交媒体内容
Set
Switch
Telegram
+
Set
Switch
Telegram
16 节点Onur
其他
使用 Suno API、Flux、Runway 和 Creatomate 生成 AI
使用 Suno API、Flux、Runway 和 Creatomate 生成 AI 歌曲和音乐视频
Set
Wait
Merge
+
Set
Wait
Merge
60 节点Joseph
其他
工作流信息
难度等级
高级
节点数量24
分类2
节点类型7
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host
外部链接
在 n8n.io 查看 →
分享此工作流