Slack - AI代劳工作
中级
这是一个Internal Wiki, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 Slack, SlackTrigger, GoogleDocsTool, Agent, LmChatOpenAi 等节点。 使用GPT和Google Docs RAG自动回复Slack消息
前置要求
- •Slack Bot Token 或 Webhook URL
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "7MQLIwQsFOmnQV4n",
"meta": {
"instanceId": "16d5a69b6a4f4733c8f669903729902650204c895b060993271b9227d7b0b3e8",
"templateCredsSetupCompleted": true
},
"name": "Slack - 让AI代劳工作",
"tags": [],
"nodes": [
{
"id": "c724b8ae-462f-4bb5-8e23-09dfe66e783b",
"name": "Slack触发器",
"type": "n8n-nodes-base.slackTrigger",
"position": [
-96,
0
],
"parameters": {
"options": {
"userIds": "==[\"User_ID\"]"
},
"trigger": [
"any_event",
"app_mention"
],
"watchWorkspace": true
},
"typeVersion": 1
},
{
"id": "a15d59e3-4ada-418b-9cde-7dc8f713ecc9",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
112,
208
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5",
"cachedResultName": "gpt-5"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "0d87970d-9887-4ec4-ab10-3564310919cc",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
304,
208
],
"parameters": {
"sessionKey": "={{ $json.channel }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "5ed06900-d13c-44f6-b763-5d9cd176db01",
"name": "发送消息",
"type": "n8n-nodes-base.slack",
"position": [
656,
0
],
"parameters": {
"text": "={{ $json.output }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "id",
"value": "={{ $('Slack Trigger').item.json.channel }}"
},
"otherOptions": {
"sendAsUser": "Jacob",
"includeLinkToWorkflow": false
}
},
"typeVersion": 2.3
},
{
"id": "ff806d9b-f9bf-4071-aebc-be85b6bcf2d4",
"name": "在Google Docs中获取文档",
"type": "n8n-nodes-base.googleDocsTool",
"position": [
480,
208
],
"parameters": {
"operation": "get",
"documentURL": "GOOGLE DOC ID OR URL"
},
"typeVersion": 2
},
{
"id": "9cce7ec0-c157-47a9-81df-0ebc08114287",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
608,
-160
],
"parameters": {
"color": 3,
"width": 304,
"height": 624,
"content": "Slack以用户身份回复"
},
"typeVersion": 1
},
{
"id": "bd66fe12-5532-4183-b641-71f6cadcc204",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
48,
-160
],
"parameters": {
"color": 4,
"width": 544,
"height": 624,
"content": "GPT-5智能体"
},
"typeVersion": 1
},
{
"id": "cdd11d82-b9bf-435e-8bb1-208737b8c74b",
"name": "GPT-5 Slack智能体",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
224,
0
],
"parameters": {
"text": "={{ $json.text }}",
"options": {
"systemMessage": "You are Jacob, a social media manager at Purple Unicorn Marketing Agency. Respond to your members' message on Jacob's behalf on Slack. Sound friendly and natural in a typical tech working environment. \n\n##Tool\nUse the Google Doc Tool when asked about Project Updates"
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "faa86c34-10a7-47bd-b258-250e24bb6b9a",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-208,
-160
],
"parameters": {
"color": 5,
"height": 624,
"content": "Slack触发器"
},
"typeVersion": 1
},
{
"id": "44ae482d-d65a-4f05-be10-9948733394b8",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1024,
-160
],
"parameters": {
"width": 768,
"height": 1008,
"content": "💬 GPT-5 Slack模拟代理(含RAG)– 使用实时项目文档自动回复消息"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "e58b3b27-0453-409e-91ce-61639cb188a7",
"connections": {
"Simple Memory": {
"ai_memory": [
[
{
"node": "GPT 5 Slack Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Slack Trigger": {
"main": [
[
{
"node": "GPT 5 Slack Agent",
"type": "main",
"index": 0
}
]
]
},
"GPT 5 Slack Agent": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "GPT 5 Slack Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get a document in Google Docs": {
"ai_tool": [
[
{
"node": "GPT 5 Slack Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内部知识库, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Slack项目更新RAG代理
使用GPT和Pinecone向量RAG上下文自动回复Slack消息
Slack
Slack Trigger
Agent
+5
11 节点Automate With Marc
AI RAG 检索增强
Slack+Bitly URL 生成器
使用 GPT-4o-mini 和 Google Sheets 日志记录从 Slack 生成带 UTM 标签的 Bitly 链接
If
Slack
Bitly Tool
+8
19 节点Automate With Marc
社交媒体
播客自动化
通过GPT、Claude和Eleven Labs文本转语音自动化播客创建
Gmail
Http Request
Agent
+5
16 节点Automate With Marc
内容创作
GPT-5 销售代表入站线索
基于GPT-4、Tavily研究和Gmail的自动化销售跟进
Gmail
Form Trigger
Agent
+5
11 节点Automate With Marc
客户培育
自动入站销售跟进
使用 GPT-5、Pinecone 和 Tavily 研究实现个性化销售自动跟进
Gmail
Form Trigger
Agent
+6
12 节点Automate With Marc
客户培育
GPT-5 RAG客户支持代理
使用GPT-5、Telegram和Pinecone构建客户支持RAG代理
Telegram
Agent
Telegram Trigger
+5
11 节点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 查看 →
分享此工作流