Skip to main content

Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets

Workflow preview

Workflow preview
100%
Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives website contact form submissions via a webhook, uses OpenAI to classify and summarize the message and draft a reply, routes spam separately, alerts your team i...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.slack, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets
Workflow name
Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets

Quick Overview

This workflow receives website contact-form submissions via a webhook, uses OpenAI to classify and summarize the message and draft a reply, routes spam separately, alerts your team in Slack, sends an auto-reply with Gmail, logs the submission to Google Sheets, and returns a JSON acknowledgement.

How it works

  1. Receives a contact-form POST request (name, email, message) via an n8n webhook endpoint.
  2. Sends the submission to OpenAI (gpt-4o-mini) to classify category/urgency/sentiment, generate a one-sentence summary, and draft a language-matched email reply in strict JSON.
  3. Normalizes the AI output into consistent fields (timestamp, category, urgency, sentiment, summary, suggested reply) for downstream routing.
  4. Checks whether the message is classified as spam and, if so, appends a flagged row to Google Sheets and skips notifications and email.
  5. For non-spam submissions, posts a formatted alert to a Slack channel with the sender details and AI summary.
  6. Sends the AI-drafted auto-reply to the visitor using Gmail, logs the submission to Google Sheets, and responds to the original webhook request with {"status":"received"}.

Setup

  1. Create and connect credentials for OpenAI, Slack, Gmail, and Google Sheets in n8n.
  2. Update the Google Sheets document ID and choose the target sheet name for both the normal submission log and the spam log.
  3. Select the Slack channel where alerts should be posted.
  4. Copy the webhook URL from the workflow and configure your website/contact form to POST name, email, and message to it.

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

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

Block 2 - Section 1 · Intake & AI Triage

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

Block 3 - Section 2 · Routing

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

Block 4 - Section 3 · Notify · Reply · Log

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

Block 5 - Receive Form Submission

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

Block 6 - Classify & Draft Reply

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.3

Block 7 - Parse AI Result

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

Block 8 - Is Spam?

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

Block 9 - Log Spam

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

Block 10 - Alert Team

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

Block 11 - Send AI Auto-Reply

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

Block 12 - Log Submission

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

Block 13 - Acknowledge

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

3. Summary Table

Workflow Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets
Complexity intermediate
Nodes 13
Categories Ticket Management, AI Summarization
Author Julian Abt
Published 08 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16188/16188.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 Triage inbound form requests with OpenAI, Slack, Gmail and Google Sheets do?

Quick Overview This workflow receives website contact form submissions via a webhook, uses OpenAI to classify and summarize the message and draft a reply, routes spam separately, alerts your team i...

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.