💬 Wix chat auto-responder with OpenAI GPT and email fallback

476 views · 💬 Support Chatbots

Description

Wix Chat Auto-Responder with OpenAI GPT and Email Fallback

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 via email if AI shouldn’t reply.

Perfect for solopreneurs, agencies, or customer support teams looking to auto-handle conversations while maintaining a fallback system.

Key Features

Requirements

Setup Instructions

1. Import the Workflow

Download and import the .json file into your n8n instance. All nodes should appear in the visual editor.

Rename the following nodes for easier maintenance:

3. Configure OAuth for Wix API

In the node HTTP Request1, replace the placeholder values:

"client_id": "YOUR_WIX_APP_ID",
"client_secret": "YOUR_WIX_APP_SECRET",
"instance_id": "YOUR_WIX_INSTANCE_ID"

💡 You may move this to a separate workflow and call it using Execute Workflow.

4. Set Up the Webhook in Wix

  1. Copy the Webhook URL from the Webhook node.
  2. Go to your Wix dashboard:
    • Navigate to: Settings > Automations > Create New
    • Trigger: “When someone sends a message via chat”
    • Action: “Send a Webhook”
  3. Paste the n8n Webhook URL in the configuration.

5. Add Your OpenAI API Key

Open both OpenAI Chat Model1 and OpenAI Chat Model2 nodes:

6. Customize Response Logic (Optional)

In the Code node labeled Response Throttle, modify:

const allowChat = true;
const allowEmail = false;
const humanResponseTimeWindow = 43200000; // 12 hours in ms

Change values to:

7. Set Up Email Fallback (Optional)

If human support is required, the workflow sends an email:

8. Test

  1. Open your Wix site in an incognito browser tab.
  2. Use the chat and monitor the bot’s response.
  3. Check Executions in n8n to debug or verify the flow.

How to Customize

Includes

🔗 Nodes Used

HTTP Request, Webhook, Execute Sub-workflow, Execute Workflow Trigger, AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup