Automate airlines customer support with GPT-4 and question classification
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract & Clean Question (Code): runs custom JavaScript code
- Classify Question Category (HTTP Request): calls api.openai.com
- Parse Category Result (Code): runs custom JavaScript code
- Fetch Knowledge Base Context (Code): runs custom JavaScript code
- Generate AI Answer (HTTP Request): calls api.openai.com
- Format Final Response (Code): runs custom JavaScript code
- Check User Satisfaction (If): checks a condition and branches into true / false
- Log Satisfied User (Code): runs custom JavaScript code
- Offer Human Support (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
…plus 2 more steps. See the full node list below.
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This n8n workflow automates airline customer support by classifying travel-related questions, fetching relevant information, generating AI answers, and delivering structured responses to users. It ensures accurate travel information delivery, tracks user…