使用GPT4-mini和Google Docs知识库创建Telegram客户支持
中级
这是一个Support, AI领域的自动化工作流,包含 10 个节点。主要使用 Telegram, GoogleDocsTool, Agent, TelegramTrigger, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 使用GPT4-mini和Google Docs知识库创建Telegram客户支持机器人
前置要求
- •Telegram Bot Token
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "",
"meta": {},
"name": "我的工作流",
"tags": [],
"nodes": [
{
"id": "f611e34d-0de9-42b7-b438-bc522817f9ba",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
180,
180
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {},
"typeVersion": 1.2
},
{
"id": "7c968986-dcc4-4a26-bedf-5a5f9c75d2dc",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
340,
180
],
"parameters": {
"sessionKey": "={{ $json.message.chat.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "fd291678-8522-4e00-94bc-7033689f14b3",
"name": "Google Docs",
"type": "n8n-nodes-base.googleDocsTool",
"position": [
480,
180
],
"parameters": {
"operation": "get",
"documentURL": "https://docs.google.com/document/d/1os02TMG0h74DYE_mmv5utPr68LtV946otozP1YZTNr0/edit?tab=t.0"
},
"credentials": {},
"typeVersion": 2
},
{
"id": "d3e871cb-48b9-4921-8376-359f53e40942",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-100,
0
],
"webhookId": "d546870e-898a-4d37-b290-a4b3e3eac311",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {},
"typeVersion": 1.2
},
{
"id": "8deb9aa3-4b45-4737-a6a5-4311fb460b04",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
680,
0
],
"webhookId": "cfeeb7fc-6dad-4482-b8c7-73998bfc613f",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {},
"typeVersion": 1.2
},
{
"id": "eac2e88c-0c0f-4451-bbe2-915de6e9ab1a",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-100
],
"parameters": {
"width": 300,
"height": 500,
"content": "Telegram 触发器"
},
"typeVersion": 1
},
{
"id": "c99be9a9-7368-4b22-be65-26108f8dc23a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-100
],
"parameters": {
"color": 4,
"width": 500,
"height": 500,
"content": "Telegram 触发器"
},
"typeVersion": 1
},
{
"id": "ba596aa6-e6fb-4df4-9bdb-7b75536cfbf6",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
-100
],
"parameters": {
"color": 3,
"width": 280,
"height": 500,
"content": "Telegram 触发器"
},
"typeVersion": 1
},
{
"id": "ccf10ec2-eae2-47be-9be7-7bf7b3d974cb",
"name": "客户支持 AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
220,
0
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "You are a helpful Customer Support Agent, cross-reference the Google Doc for any customer queries for relevant information. If relevant information is not found, do not make up facts. Plainly let the user know that the information isn't available. \n\n#Tonality\nFriendly, casual and helpful. if user or customer says hi, inform them that you are a Friendly Customer Support Agent"
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "ac9ffbcd-0b7a-421e-92f4-5e367d6ba4c9",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-600,
-100
],
"parameters": {
"color": 5,
"width": 360,
"height": 500,
"content": "🤖 具备 Google Docs 知识库的 AI 客户支持助手(Telegram + OpenAI)"
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"connections": {
"fd291678-8522-4e00-94bc-7033689f14b3": {
"ai_tool": [
[
{
"node": "ccf10ec2-eae2-47be-9be7-7bf7b3d974cb",
"type": "ai_tool",
"index": 0
}
]
]
},
"7c968986-dcc4-4a26-bedf-5a5f9c75d2dc": {
"ai_memory": [
[
{
"node": "ccf10ec2-eae2-47be-9be7-7bf7b3d974cb",
"type": "ai_memory",
"index": 0
}
]
]
},
"d3e871cb-48b9-4921-8376-359f53e40942": {
"main": [
[
{
"node": "ccf10ec2-eae2-47be-9be7-7bf7b3d974cb",
"type": "main",
"index": 0
}
]
]
},
"f611e34d-0de9-42b7-b438-bc522817f9ba": {
"ai_languageModel": [
[
{
"node": "ccf10ec2-eae2-47be-9be7-7bf7b3d974cb",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"ccf10ec2-eae2-47be-9be7-7bf7b3d974cb": {
"main": [
[
{
"node": "8deb9aa3-4b45-4737-a6a5-4311fb460b04",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 客户支持, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
🧑⚖️ AI法律助理代理 — 基于AI的法律问答与文档检索
🧑⚖️ AI法律助理代理 — 基于AI的法律问答与文档检索
Telegram
Agent
Telegram Trigger
+
Telegram
Agent
Telegram Trigger
11 节点Automate With Marc
人工智能
基于 GPT、LangChain 和智能路由的 AI 驱动客户服务自动化
AI驱动客户服务自动化,基于GPT、LangChain和智能路由
Set
Gmail
Merge
+
Set
Gmail
Merge
46 节点Paul
客户支持
Airbnb Telegram代理 - 模板
Airbnb Telegram代理 - 支持语音的AI驱动住宿搜索
Set
Switch
Telegram
+
Set
Switch
Telegram
15 节点Friedemann Schuetz
客户支持
🤖 智能客服AI代理
使用Gmail、Telegram和GPT AI自动化多渠道客户支持
Set
Gmail
Telegram
+
Set
Gmail
Telegram
23 节点RedOne
客户支持
基于语义和结构化RAG的电子邮件聊天机器人,使用Telegram和Pgvector
使用Telegram、Mistral和Pgvector的RAG技术与您的邮件历史对话
If
Set
Code
+
If
Set
Code
20 节点Alfonso Corretti
客户支持
Grok-4客户支持代理[RAG]
使用Grok-4、Google Docs和Telegram构建客户支持代理[RAG]
Telegram
Google Docs Tool
Agent
+
Telegram
Google Docs Tool
Agent
10 节点Automate With Marc
客服机器人
工作流信息
难度等级
中级
节点数量10
分类2
节点类型7
作者
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
外部链接
在 n8n.io 查看 →
分享此工作流