Support tickets: AI reply or escalate
Support tickets get an AI email reply or go to Slack. This repository holds an n8n workflow export for support tickets. A ticket arrives through a webhook, the workflow searches a knowledge base and checks order history, and a GPT-4o-mini agent drafts a response. The page says replies can be sent by SMTP, activity is logged to Google Sheets and Slack, and tickets that cannot be resolved are escalated to the right team in Slack with the draft and internal notes. Billing and account tickets are always escalated.
Steps
- Trigger: Webhook receives a support ticket
/support endpoint. - Parse the ticket
- Search the knowledge base
- Fetch order history
- Merge context (KB and orders)
- AI support agent (GPT-4o-mini)OpenAI
- Output: Log to Google SheetsGoogle Sheets
- Output: Email reply if the AI can resolveEmail (SMTP)
- Output: Slack confirmation, or escalate to humansSlack
Limits
- Input is a ticket webhook, not a mailbox trigger.
- Billing and account tickets are always escalated.
What it does well
- Escalations include the draft and internal notes.
Before you import
You need: OpenAI API key, SMTP credentials, Google Sheets API access and a Slack workspace with a bot token.
Similar templates
Gmail triage and drafts with Claude
Also for customer support, 8 steps.
Region-aware Gmail support replies
Also for customer support, 10 steps.
Gmail triage and Slack urgent alerts
Also for customer support, 8 steps.
Google Sheets and OpenAI: 24 templates compared
Same two apps, different steps.
OpenAI and Slack: 17 templates compared
Same two apps, different steps.
Google Sheets and Slack: 16 templates compared
Same two apps, different steps.
Google Sheets and Email (SMTP): 2 templates compared
Same two apps, different steps.
OpenAI and Email (SMTP): 2 templates compared
Same two apps, different steps.
Sort incoming requests
Other templates that do this task.