Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
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...
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
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nabin Bhandari.
Original n8n.io sourceThis 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
Trigger A new email in Gmail triggers the workflow.
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
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.
##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.
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.
Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.
| 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 |
Use the JSON export at /data/workflows/7092/7092.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
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...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.