8
n8n 中文网amn8n.com

Wix聊天自动回复器

高级

这是一个Sales, Support, AI, Marketing领域的自动化工作流,包含 32 个节点。主要使用 If, Code, Webhook, HttpRequest, EmailSendTool 等节点,结合人工智能技术实现智能自动化。 集成OpenAI GPT的Wix聊天自动回复器,含邮件备用方案

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "eCvZmsWQN1hQfRBb",
  "meta": {
    "instanceId": "c60cbb8905d8f1b1d2fddadadda01bad0ee1c76eb7857527efe1945effe9e986",
    "templateId": "2786",
    "templateCredsSetupCompleted": true
  },
  "name": "列表",
  "tags": [],
  "nodes": [
    {
      "id": "f26c6e6c-87d2-4ed9-8bf4-2c660e7f26ab",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -140,
        220
      ],
      "webhookId": "3a1a5dd3-35ff-4d9d-8c75-3483b608f70a",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0fdf2349-8eb5-457f-8022-861461e68d6c",
      "name": "HTTP 请求 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e4e275d9-c78b-4d06-b83b-f40816aa4390",
      "name": "执行工作流",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        60,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d214324f-d4a0-4377-bcf4-eea3368c76f5",
      "name": "发送邮件",
      "type": "n8n-nodes-base.emailSendTool",
      "position": [
        1500,
        140
      ],
      "webhookId": "162bea28-f4a1-45af-86d8-92fa01abbcf5",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "fa1645f2-0dcb-4429-af4d-4f75eca9f15c",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "569359a5-bf87-4405-8d3c-7736f4cd26d6",
      "name": "HTTP 请求3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a8eec80a-5ff4-441c-aa78-9d56991d84aa",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1180,
        480
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "a73963b3-b699-4dc9-88ec-db77b4892c59",
      "name": "HTTP 请求 4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        480
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0deadef7-17d0-4dd9-8db6-8077b57d599f",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        860,
        480
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ce592648-5123-4007-b11b-d7579236ea1d",
      "name": "如果1",
      "type": "n8n-nodes-base.if",
      "position": [
        1000,
        480
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "62ac1689-62d2-4d81-b856-c61e839008a8",
      "name": "OpenAI 聊天模型 1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1080,
        700
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e660e054-75bb-473e-9bf2-e998d77e76b9",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1860,
        480
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "00d462aa-3b51-45f1-ad4a-7058e2a1a48f",
      "name": "HTTP 请求 6",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2140,
        500
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "f2a3cf5e-ae3c-42b8-8ea5-2173d35cd14e",
      "name": "代码 5",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        480
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6f571403-53a7-4dee-a5f6-96e5af79a5b7",
      "name": "窗口缓冲记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1260,
        700
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "d06c28be-0752-4f28-b5bb-5090a63f0a60",
      "name": "结束聊天",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1240,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c1acb49-9578-4a45-a440-a261ec2a6cfe",
      "name": "窗口缓冲内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1360,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "33b3dfce-fe11-4e0f-b9db-de391ae128b7",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1320,
        -100
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "3e26c97c-7ed9-4824-be8b-1c6fc907f5ef",
      "name": "HTTP 请求 5",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        -20
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "92ce1d64-93b5-489b-bd83-875f4245b773",
      "name": "代码1",
      "type": "n8n-nodes-base.code",
      "position": [
        900,
        -20
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e3a83686-a1b7-4440-b181-f9500b4b357b",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        1160,
        -100
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "033f67e0-b03a-4cbc-ab76-b71cb7b1cfc0",
      "name": "一小时内的人工响应,结束 1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1400,
        -280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "69a3e06d-8745-410a-8fec-e6ee4f54ca24",
      "name": "OpenAI 聊天模型 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5f543d24-e9ab-4145-9cd2-863a67c7f7b0",
      "name": "遍历项目 1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1980,
        -100
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "bf7658e4-5748-4890-8e16-3a4788980ecf",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2260,
        -80
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "584c38e8-75e7-4401-a3ec-27a101fd9bed",
      "name": "代码6",
      "type": "n8n-nodes-base.code",
      "position": [
        1740,
        -100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "616168c3-acc8-44cd-be36-45680a8a0b56",
      "name": "发送邮件1",
      "type": "n8n-nodes-base.emailSendTool",
      "position": [
        1420,
        700
      ],
      "webhookId": "db8291b4-f3d9-4444-afe4-5198ce7aaac3",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "8cb33438-0343-400a-b3f3-91c276127ce1",
      "name": "HTTP 请求 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1264ace4-0489-418a-9c53-5283cc0eb228",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -120,
        -220
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a937ffcb-0d2f-40f6-90a6-9fcc41d68eea",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "005e1b8a-c6b9-4fd8-a8f1-263556d939a3",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0650d044-a4fa-4176-88ff-bfff8f55ef1d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "35fc688e-cb46-4c1f-a88f-22410404175b",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "HTTP Request2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "End chat",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Human reponse within last hour, END1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code5": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code6": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Code5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Email1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request2": {
      "main": [
        [
          {
            "node": "HTTP Request5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request3": {
      "main": [
        [
          {
            "node": "HTTP Request4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request4": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request5": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request6": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "HTTP Request6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 销售, 客户支持, 人工智能, 营销

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量32
分类4
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流