Skip to main content

Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets

Workflow preview

Workflow preview
100%
Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives guest messages via a webhook, uses OpenAI (GPT 4o mini) to generate multilingual hotel support replies with an escalation flag, notifies the front desk in Slac...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.if, n8n-nodes-base.slack, n8n-nodes-base.switch, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Redowan Ahmed Farhan.

Original n8n.io source

1.1 Workflow description

Title
Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets
Workflow name
Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets

Quick Overview

This workflow receives guest messages via a webhook, uses OpenAI (GPT-4o-mini) to generate multilingual hotel support replies with an escalation flag, notifies the front desk in Slack when needed, logs the interaction to Google Sheets, and returns a JSON acknowledgement to the messaging gateway.

How it works

  1. Receives an inbound guest message through a webhook from a WhatsApp/Viber gateway.
  2. Normalizes the incoming payload into a consistent structure (guest ID, channel, guest name, and message text).
  3. Uses OpenAI (GPT-4o-mini) to generate a short reply in the guest’s language based on the built-in hotel information and outputs structured JSON with language, reply, category, and an escalate flag.
  4. If the message needs human attention, posts the guest details and message to a Slack front-desk channel.
  5. Routes the reply based on the reported channel and sends the generated reply text to Slack.
  6. Appends the conversation data to Google Sheets and responds to the gateway with a JSON status including the detected language and whether it was escalated.

Setup

  1. Configure the inbound webhook URL in your WhatsApp/Viber gateway so it sends a payload containing at least channel, from, and text/message fields.
  2. Add OpenAI API credentials for the GPT-4o-mini model.
  3. Add Slack OAuth2 credentials and set the target channels for front-desk notifications and reply delivery.
  4. Add Google Sheets OAuth2 credentials and update the spreadsheet/document ID and sheet tab used for logging.

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

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

Block 2 - Guest Assistant Agent

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

Block 3 - GPT 4o mini

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

Block 4 - Reply Structure Parser

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

Block 5 - Needs Human?

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

Block 6 - Notify Front Desk

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

Block 7 - Route By Channel

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

Block 8 - Log Conversation

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 9 - Respond to Guest Gateway

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 10 - Overview

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

Block 11 - Section Intake

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

Block 12 - Section AI Core

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

Block 13 - Section Delivery

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

Block 14 - Section Logging

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

Block 15 - Send a message

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

Block 16 - Inbound Message Webhook

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

3. Summary Table

Workflow Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets
Complexity advanced
Nodes 16
Categories Support Chatbot, AI Chatbot
Author Redowan Ahmed Farhan
Published 15 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16387/16387.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 Answer hotel guest messages with GPT-4o mini, Slack, and Google Sheets do?

Quick Overview This workflow receives guest messages via a webhook, uses OpenAI (GPT 4o mini) to generate multilingual hotel support replies with an escalation flag, notifies the front desk in Slac...

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 Support Chatbot, AI Chatbot use case.