AI代理聊天系统
初级
这是一个AI领域的自动化工作流,包含 5 个节点。主要使用 Agent, ChatTrigger, ToolSerpApi, LmChatOpenAi, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 AI代理聊天系统
前置要求
- •OpenAI API Key
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "408f9fb9940c3cb18ffdef0e0150fe342d6e655c3a9fac21f0f644e8bedabcd9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "ef4c6982-f746-4d48-944b-449f8bdbb69f",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-180,
-380
],
"webhookId": "53c136fe-3e77-4709-a143-fe82746dd8b6",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "e6183978-5077-4252-9718-6b36b6a7cd74",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
160,
-160
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1719e956-f9c8-48f5-9744-ee62345a9f7d",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
20,
-160
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "f0815af7-da61-4863-9cfa-b35be836b59c",
"name": "SerpAPI",
"type": "@n8n/n8n-nodes-langchain.toolSerpApi",
"position": [
300,
-160
],
"parameters": {
"options": {}
},
"credentials": {
"serpApi": {
"id": "aJCKjxx6U3K7ydDe",
"name": "SerpAPI account"
}
},
"typeVersion": 1
},
{
"id": "2d3b4012-bd5f-46d5-be6d-af1ede6c155b",
"name": "AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
60,
-380
],
"parameters": {
"options": {}
},
"typeVersion": 1.8
}
],
"pinData": {},
"connections": {
"f0815af7-da61-4863-9cfa-b35be836b59c": {
"ai_tool": [
[
{
"node": "2d3b4012-bd5f-46d5-be6d-af1ede6c155b",
"type": "ai_tool",
"index": 0
}
]
]
},
"e6183978-5077-4252-9718-6b36b6a7cd74": {
"ai_memory": [
[
{
"node": "2d3b4012-bd5f-46d5-be6d-af1ede6c155b",
"type": "ai_memory",
"index": 0
}
]
]
},
"1719e956-f9c8-48f5-9744-ee62345a9f7d": {
"ai_languageModel": [
[
{
"node": "2d3b4012-bd5f-46d5-be6d-af1ede6c155b",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"ef4c6982-f746-4d48-944b-449f8bdbb69f": {
"main": [
[
{
"node": "2d3b4012-bd5f-46d5-be6d-af1ede6c155b",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
初级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
利用GPT-4o和SerpAPI识别用于购买的热门终端产品
基于GPT-4o和SerpAPI的AI驱动产品研究与比较
Merge
Aggregate
Agent
+
Merge
Aggregate
Agent
26 节点AiAgent
人工智能
数据分析师 Agent v3
用于电子表格的AI数据分析助手,基于NocoDB平台
Set
Noco Db Tool
Http Request
+
Set
Noco Db Tool
Http Request
10 节点Derek Cheung
工程
AI Agent:使用 OpenAI 的 Google 日历助手
AI 智能助手:基于 OpenAI 的 Google 日历助手
Agent
Google Calendar Tool
Chat Trigger
+
Agent
Google Calendar Tool
Chat Trigger
13 节点Dataki
人工智能
AI智能助手:与Supabase存储和Google Drive文件对话
AI智能助手:与Supabase存储和Google Drive文件对话
If
Set
Wait
+
If
Set
Wait
62 节点Mark Shcherbakov
工程
AI智能助手与Airtable对话及数据分析
AI智能助手与Airtable对话及数据分析
If
Set
Merge
+
If
Set
Merge
41 节点Mark Shcherbakov
工程
AI智能体:数秒内精准匹配LinkedIn人脉
AI智能体:数秒内精准匹配LinkedIn人脉
Set
Code
Split Out
+
Set
Code
Split Out
15 节点Badr
人工智能
工作流信息
难度等级
初级
节点数量5
分类1
节点类型5
作者
n8n Team
@n8n-teamMeet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.
外部链接
在 n8n.io 查看 →
分享此工作流