Skip to main content

Classify support emails and send replies with Claude, Gmail, Slack and Sheets

Workflow preview

Workflow preview
100%
Classify support emails and send replies with Claude, Gmail, Slack and Sheets preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow monitors a Gmail inbox for unread support emails, uses Anthropic Claude to classify and draft replies, routes urgent tickets to Slack and a Gmail draft, auto replies to...

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.gmailtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.switch, n8n-nodes-base.gmail, 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 Akshay Chug.

Original n8n.io source

1.1 Workflow description

Title
Classify support emails and send replies with Claude, Gmail, Slack and Sheets
Workflow name
Classify support emails and send replies with Claude, Gmail, Slack and Sheets

Quick overview

This workflow monitors a Gmail inbox for unread support emails, uses Anthropic Claude to classify and draft replies, routes urgent tickets to Slack and a Gmail draft, auto-replies to normal tickets, and logs all tickets to Google Sheets for reporting.

How it works

  1. Triggers every minute when a new unread email arrives in Gmail inbox.
  2. Applies workflow settings (Slack channel, Google Sheet ID/name, support email, and max email length) and builds a structured prompt from the email subject, sender, and truncated body.
  3. Sends the prompt to Anthropic Claude (Sonnet) to return a JSON classification with category, priority, sentiment, summary, draft reply, and an internal note.
  4. Parses the AI JSON output, applies safe defaults if parsing fails, and prepares reply metadata like timestamp and reply subject.
  5. For urgent tickets, creates a Gmail draft reply, posts an alert to a Slack channel with ticket details, and appends a log row to Google Sheets.
  6. For normal tickets, sends the draft reply as a plain-text Gmail message and appends a log row to Google Sheets.
  7. For low-priority tickets, skips replying and appends a log row to Google Sheets.

Setup

  1. Connect Gmail credentials for the Gmail Trigger and the Gmail actions used to create drafts and send replies.
  2. Add Anthropic credentials for the Claude Sonnet model used to classify tickets and draft responses.
  3. Connect Slack credentials and set your target Slack channel ID in the settings.
  4. Connect Google Sheets credentials, create a spreadsheet with a “Support Tickets” sheet (or update the sheet name), and set the Google Sheet ID in the settings.
  5. Update the settings values (support email, max email characters, sheet name) to match your environment before activating the workflow.

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

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

Block 2 - Trigger Section

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

Block 3 - Gmail Trigger

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

Block 4 - Configure Settings

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

Block 5 - AI Analysis Section

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

Block 6 - Build Prompt

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

Block 7 - Classify with Claude

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 8 - Claude Sonnet Model

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

Block 9 - Parse Output

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

Block 10 - Routing Section

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

Block 11 - Route by Priority

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

Block 12 - Create Gmail Draft

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

Block 13 - Prepare Slack Alert

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

Block 14 - Alert Support Team

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

Block 15 - Log Urgent Ticket

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

Block 16 - Send Auto-Reply

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

Block 17 - Log Normal Ticket

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

Block 18 - Log Low Priority Ticket

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

3. Summary Table

Workflow Classify support emails and send replies with Claude, Gmail, Slack and Sheets
Complexity advanced
Nodes 18
Categories Ticket Management, AI Summarization
Author Akshay Chug
Published 26 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15955/15955.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 support emails and send replies with Claude, Gmail, Slack and Sheets do?

Quick overview This workflow monitors a Gmail inbox for unread support emails, uses Anthropic Claude to classify and draft replies, routes urgent tickets to Slack and a Gmail draft, auto replies to...

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.