AI Customer Support Agent — Free n8n Workflow Template
This workflow powers a customer-facing chat widget on your website. When a visitor asks a question, the AI agent searches your knowledge base (FAQ docs, help articles, product info), generates a helpful answer, and responds in real time. Complex questions get escalated to your team on Slack.
Instant download · No signup · MIT license
Workflow nodes
Apps used
Setup guide
Requirements
- An n8n instance (Cloud or self-hosted, v1.x+)
- OpenAI API key
- Your knowledge base documents (PDF, Markdown or text)
- A chat widget on your website (e.g. n8n's chat widget or any webhook-compatible chat)
Credentials
| App | Type | Where to get it |
|---|---|---|
| OpenAI | API key | platform.openai.com → API keys |
- 1
Import the workflow
Download and import the JSON into n8n.
- 2
Upload your knowledge base
Run the included sub-workflow to index your FAQ, help docs and product pages into the vector store.
- 3
Connect OpenAI
Add your API key to the OpenAI Chat Model node.
- 4
Set up the chat widget
Add n8n's chat widget embed code to your website, pointing to this workflow's Webhook URL.
- 5
Configure escalation rules
Set up the IF node to escalate when the AI isn't confident (low similarity score) or when the user requests human help.
- 6
Test conversations
Ask several test questions and verify answers are accurate before going live.
Frequently asked questions
What knowledge formats does it support?+
Plain text, Markdown, PDF and HTML. Upload your docs to n8n's built-in vector store or connect Pinecone or Supabase.
Can it handle multiple languages?+
Yes. OpenAI's models support dozens of languages. The agent responds in the same language the customer uses.
What happens when the AI doesn't know the answer?+
It tells the customer it's connecting them with a human and sends the conversation to your Slack channel or email.
Is conversation history maintained?+
Yes. The workflow stores conversation context in memory for the duration of each session.
Related templates
AI Blog Autopilot
Turns keywords or RSS items into AI-written blog drafts and posts them to WordPress.
GSC Weekly Report
Sends a weekly Google Search Console performance summary to email or Slack.
GA4 Traffic Drop Alert
Alerts you when GA4 traffic drops significantly compared to the previous period.
Want us to set it up for you?
We install the workflow on your n8n instance, connect credentials, and leave you with a running automation.
Get setup help