Skip to main content

Automated Gmail classification & response system with GPT and WhatsApp alerts

Workflow preview

Workflow preview
100%
Automated Gmail classification & response system with GPT and WhatsApp alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template uses AI to automatically classify incoming Gmail messages into five categories and route them to the right people or departments. It can also reply automatically and send WhatsApp...

Best for

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

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.textclassifier, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.whatsapp, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated Gmail classification & response system with GPT and WhatsApp alerts
Workflow name
Automated Gmail classification & response system with GPT and WhatsApp alerts

This n8n template uses AI to automatically classify incoming Gmail messages into five categories and route them to the right people or departments. It can also reply automatically and send WhatsApp alerts for urgent or relevant messages. This helps ensure high-priority emails never get missed, while other messages are handled efficiently.

##How It Works

  1. Trigger A new email in Gmail triggers the workflow.

  2. Classification (OpenAI GPT) The email is analyzed by an OpenAI GPT model and classified into one of:

High Priority Customer Support Promotion Finance/Billing Random/Other

  1. Conditional Logic & Actions High Priority → Create draft reply + send WhatsApp alert.

Customer Support → Auto-reply + send WhatsApp confirmation alert.

Promotion → Summarize email + send WhatsApp promotional alert.

Finance/Billing → Forward to finance team + send WhatsApp finance alert.

Random/Other → Label and log only.

  1. Multi-Channel Output Responses are sent via Gmail. Alerts are sent via WhatsApp (or another compatible API).

##Setup Instructions Step 1: Gmail Authorization Add a Gmail node in n8n. Connect using OAuth2 and grant read/send permissions.

Step 2: OpenAI API Key Get your API key from OpenAI. Add it to n8n credentials for the OpenAI node.

Step 3: WhatsApp Integration Use your WhatsApp Business API or a provider like Twilio or 360Dialog.

Replace placeholders with your details:

[YOUR_WHATSAPP_NUMBER] [YOUR_FINANCE_TEAM_NUMBER] [YOUR_SUPPORT_TEAM_NUMBER]

Step 4: Import & Run Import the workflow JSON into n8n. Adjust prompts, labels, and routing logic as needed. Execute and monitor results.

##Good to Know Fully customizable — add or remove categories, adjust responses, and change alert channels.

Can be integrated with Slack, Discord, Trello, Notion, Jira, or CRM systems.

Scales easily across teams and departments.

##Requirements Gmail account with OAuth2 credentials set up in n8n

OpenAI API key for classification and content generation

WhatsApp (or other messaging service) integration

Optional: Slack, Notion, CRM, or accounting tool integrations

##Customization Ideas Create support tickets in Trello, Notion, or Jira from Customer Support emails.

Sync Finance emails with QuickBooks, Stripe, or Google Sheets.

Replace WhatsApp alerts with Slack or Discord messages.

Use Zapier/Make for cross-platform automations.

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

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

Block 2 - OpenAI Chat Model

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

Block 3 - High Priority Email

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

Block 4 - Customer Support Email

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

Block 5 - Promotion Email

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

Block 6 - Finance/Billing Email

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

Block 7 - Random (General/Other) Email

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

Block 8 - Email Classifier

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 9 - Creating a Draft

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

Block 10 - Draft email

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

Block 11 - Create Email

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

Block 12 - Auto Reply

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

Block 13 - Finance Department

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

Block 14 - Summarize Promotions

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

Block 15 - High Priority Alert

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

Block 16 - Confirmation

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

Block 17 - Promotional Alert

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

Block 18 - Finance Alert

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

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Sticky Note4

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

Block 24 - Sticky Note5

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

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated Gmail classification & response system with GPT and WhatsApp alerts
Complexity advanced
Nodes 26
Categories Ticket Management, Multimodal AI
Author Nabin Bhandari
Published 07 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7092/7092.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 Automated Gmail classification & response system with GPT and WhatsApp alerts do?

This n8n template uses AI to automatically classify incoming Gmail messages into five categories and route them to the right people or departments. It can also reply automatically and send WhatsApp...

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