Skip to main content

Classify guest enquiries and send replies with GPT-4o, Gmail and Slack

Workflow preview

Workflow preview
100%
Classify guest enquiries and send replies with GPT-4o, Gmail and Slack preview
Open on n8n.io

1. Workflow Overview

Description This workflow automates guest enquiry intake, intent classification, response generation, and internal routing for hospitality businesses using webhooks, GPT 4o, Gmail, and Slack. It...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.switch, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

Title
Classify guest enquiries and send replies with GPT-4o, Gmail and Slack
Workflow name
Classify guest enquiries and send replies with GPT-4o, Gmail and Slack

📘 Description This workflow automates guest enquiry intake, intent classification, response generation, and internal routing for hospitality businesses using webhooks, GPT-4o, Gmail, and Slack. It converts raw guest enquiries into structured, actionable items while ensuring fast acknowledgements, correct team assignment, and SLA visibility. When a guest submits an enquiry through a webhook (website form, booking page, or external system), an AI agent analyzes the message to detect intent—booking, pricing, availability, or policy. The agent generates a polite, human-like acknowledgement message and determines the most suitable internal team to handle the request. Based on the detected intent, the workflow assigns the enquiry to the correct team with a predefined SLA.

If the guest prefers email communication, an automated reply is sent via Gmail. In parallel, a detailed enquiry summary—including guest details, detected intent, assigned agent, and SLA—is posted to Slack for internal visibility and follow-up. All AI responses are also logged to Slack for transparency. Any workflow failure triggers an immediate Slack alert with diagnostic details.

⚙️ What This Workflow Does (Step-by-Step) 📥 Webhook Trigger – Guest Enquiry Intake Receives guest enquiry data (name, email, message, dates, preferences). 🧠 AI Intent Classification & Reply Generation GPT-4o analyzes the enquiry, detects intent, and generates a polite acknowledgement. 🔍 Extract Detected Category Parses AI output to identify the enquiry category. 🔀 Route by Intent Category Directs enquiries to booking, pricing, availability, or policy flows. 👥 Team Assignment with SLA Assigns the enquiry to the correct team and sets response SLA. 📧 Send Email Reply to Guest (Conditional) Automatically replies if the guest prefers email contact. 💬 Post Enquiry Summary to Slack Shares full enquiry context, assignment, and SLA for team follow-up. 📝 Log AI Reply to Slack Stores the generated guest reply for internal reference. 🚨 Error Handler → Slack Alert Sends instant alerts if any node fails.

🧩 Prerequisites • n8n webhook endpoint • OpenAI / Azure OpenAI (GPT-4o or GPT-4o-mini) credentials • Gmail OAuth2 credentials • Slack API credentials

💡 Key Benefits ✔ Instant AI-driven enquiry classification ✔ Faster guest acknowledgements ✔ Correct team routing with SLA enforcement ✔ Reduced manual triage for front-desk and sales teams ✔ Full visibility of enquiries and replies in Slack ✔ Built-in error monitoring

👥 Perfect For

  • Hotels and resorts
  • Vacation rental operators
  • Hospitality sales and front-desk teams
  • Property management companies
  • Businesses handling high volumes of guest enquiries

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview Sticky

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section: Trigger & AI

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section: Routing Logic

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section: Assignment

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section: Notifications

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Credentials & Security

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Extract Detected Category

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 8 - Route by Intent Category

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 1

Block 9 - Assign to Booking Team

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 10 - Assign to Pricing Team

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 11 - Assign to Availability Team

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 12 - Assign to Policy Team

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 13 - Send Email Reply to Guest

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2

Block 14 - AI Agent: Classify Intent & Generate Reply

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 15 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 16 - Check Guest Contact Preference

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 17 - Post Enquiry Summary to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.1

Block 18 - Log AI Reply to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.1

Block 19 - Webhook Trigger1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 20 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 21 - Error Handler Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 22 - Slack: Send Error Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 23 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Classify guest enquiries and send replies with GPT-4o, Gmail and Slack
Complexity advanced
Nodes 23
Categories Ticket Management, AI Summarization
Author Rahul Joshi
Published 23 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12946/12946.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Classify guest enquiries and send replies with GPT-4o, Gmail and Slack do?

Description This workflow automates guest enquiry intake, intent classification, response generation, and internal routing for hospitality businesses using webhooks, GPT 4o, Gmail, and Slack. It...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.