Skip to main content

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

Workflow preview

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

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 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