AutomationFlowsAI & RAG › Wix Chat Auto-responder with Openai Gpt and Email Fallback

Wix Chat Auto-responder with Openai Gpt and Email Fallback

ByRyan McMahan @owner232 on n8n.io

This template connects Wix Chat with OpenAI via n8n to automate intelligent customer responses on your website only when no human has responded recently. It uses smart throttling, checks for member vs. anonymous visitors, pulls chat history, and optionally alerts support staff…

Webhook trigger★★★★★ complexityAI-powered32 nodesHTTP RequestEmail Send ToolAgentOpenAI ChatMemory Buffer WindowExecute Workflow Trigger
AI & RAG Trigger: Webhook Nodes: 32 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #3925 — we link there as the canonical source.

This workflow follows the Agent → Execute Workflow Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "eCvZmsWQN1hQfRBb",
  "meta": {
    "templateId": "2786",
    "templateCredsSetupCompleted": true
  },
  "name": "listing",
  "tags": [],
  "nodes": [
    {
      "id": "f26c6e6c-87d2-4ed9-8bf4-2c660e7f26ab",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -140,
        220
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0fdf2349-8eb5-457f-8022-861461e68d6c",
      "name": "HTTP Request2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e4e275d9-c78b-4d06-b83b-f40816aa4390",
      "name": "Execute Workflow",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        60,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d214324f-d4a0-4377-bcf4-eea3368c76f5",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSendTool",
      "position": [
        1500,
        140
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "fa1645f2-0dcb-4429-af4d-4f75eca9f15c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "569359a5-bf87-4405-8d3c-7736f4cd26d6",
      "name": "HTTP Request3",
      "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 Request4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        480
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0deadef7-17d0-4dd9-8db6-8077b57d599f",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        860,
        480
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ce592648-5123-4007-b11b-d7579236ea1d",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1000,
        480
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "62ac1689-62d2-4d81-b856-c61e839008a8",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1080,
        700
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e660e054-75bb-473e-9bf2-e998d77e76b9",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1860,
        480
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "00d462aa-3b51-45f1-ad4a-7058e2a1a48f",
      "name": "HTTP Request6",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2140,
        500
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "f2a3cf5e-ae3c-42b8-8ea5-2173d35cd14e",
      "name": "Code5",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        480
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6f571403-53a7-4dee-a5f6-96e5af79a5b7",
      "name": "Window Buffer Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1260,
        700
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "d06c28be-0752-4f28-b5bb-5090a63f0a60",
      "name": "End chat",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1240,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c1acb49-9578-4a45-a440-a261ec2a6cfe",
      "name": "Window Buffer Memory",
      "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 Request5",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        -20
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "92ce1d64-93b5-489b-bd83-875f4245b773",
      "name": "Code1",
      "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": "Human reponse within last hour, END1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1400,
        -280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "69a3e06d-8745-410a-8fec-e6ee4f54ca24",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5f543d24-e9ab-4145-9cd2-863a67c7f7b0",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1980,
        -100
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "bf7658e4-5748-4890-8e16-3a4788980ecf",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2260,
        -80
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "584c38e8-75e7-4401-a3ec-27a101fd9bed",
      "name": "Code6",
      "type": "n8n-nodes-base.code",
      "position": [
        1740,
        -100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "616168c3-acc8-44cd-be36-45680a8a0b56",
      "name": "Send Email1",
      "type": "n8n-nodes-base.emailSendTool",
      "position": [
        1420,
        700
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "8cb33438-0343-400a-b3f3-91c276127ce1",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1264ace4-0489-418a-9c53-5283cc0eb228",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -120,
        -220
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a937ffcb-0d2f-40f6-90a6-9fcc41d68eea",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "005e1b8a-c6b9-4fd8-a8f1-263556d939a3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0650d044-a4fa-4176-88ff-bfff8f55ef1d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "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
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This template connects Wix Chat with OpenAI via n8n to automate intelligent customer responses on your website only when no human has responded recently. It uses smart throttling, checks for member vs. anonymous visitors, pulls chat history, and optionally alerts support staff…

Source: https://n8n.io/workflows/3925/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

🧠 Gwen – The AI Voice Marketing Agent Gwen is your intelligent voice-powered marketing assistant built in n8n. She combines the power of OpenAI, ElevenLabs, and automation workflows to handle content

Tool Workflow, Memory Buffer Window, Agent +10
AI & RAG

Create A Branded Ai-Powered Website Chatbot. Uses memoryBufferWindow, respondToWebhook, lmChatOpenAi, toolHttpRequest. Webhook trigger; 24 nodes.

Memory Buffer Window, OpenAI Chat, Tool Http Request +6
AI & RAG

Code Respondtowebhook. Uses memoryBufferWindow, respondToWebhook, lmChatOpenAi, toolHttpRequest. Webhook trigger; 24 nodes.

Memory Buffer Window, OpenAI Chat, Tool Http Request +6
AI & RAG

Engage website visitors with an intelligent chat widget powered by OpenAI. This template includes: 💬 Natural conversation handling 📅 Microsoft Outlook calendar integration 📝 Lead capture and informati

Memory Buffer Window, OpenAI Chat, Tool Http Request +6
AI & RAG

L&D_AgentsAI_ATIVO. Uses httpRequest, agent, googleCalendarTool, toolSerpApi. Webhook trigger; 93 nodes.

HTTP Request, Agent, Google Calendar Tool +9