Gmail + WhatsApp: urgent emails surfaced instantly
Your inbox is lying to you. It makes every email look equally important, which is exactly how urgent client questions and billing notices get buried under promos, newsletters, and “quick ideas” you never asked for.
This Gmail WhatsApp alerts setup hits account managers and ops teams first, because they’re the ones who get blamed for slow responses. But business owners feel it too when a finance email slips past and suddenly you’re chasing payments instead of running the business.
This workflow automatically sorts every new Gmail message into the right bucket, then sends a WhatsApp ping only when it actually matters. You’ll see what it does, what you need, and how teams use it to stop missing the emails that cost money.
How This Automation Works
See how this solves the problem:
n8n Workflow Template: Gmail + WhatsApp: urgent emails surfaced instantly
flowchart LR
subgraph sg0["Gmail Flow"]
direction LR
n0@{ icon: "mdi:play-circle", form: "rounded", label: "Gmail Trigger", pos: "b", h: 48 }
n1@{ icon: "mdi:brain", form: "rounded", label: "OpenAI Chat Model", pos: "b", h: 48 }
n2@{ icon: "mdi:message-outline", form: "rounded", label: "High Priority Email", pos: "b", h: 48 }
n3@{ icon: "mdi:message-outline", form: "rounded", label: "Customer Support Email", pos: "b", h: 48 }
n4@{ icon: "mdi:message-outline", form: "rounded", label: "Promotion Email", pos: "b", h: 48 }
n5@{ icon: "mdi:message-outline", form: "rounded", label: "Finance/Billing Email", pos: "b", h: 48 }
n6@{ icon: "mdi:message-outline", form: "rounded", label: "Random (General/Other) Email", pos: "b", h: 48 }
n7@{ icon: "mdi:robot", form: "rounded", label: "Email Classifier", pos: "b", h: 48 }
n8@{ icon: "mdi:robot", form: "rounded", label: "Creating a Draft", pos: "b", h: 48 }
n9@{ icon: "mdi:message-outline", form: "rounded", label: "Draft email", pos: "b", h: 48 }
n10@{ icon: "mdi:robot", form: "rounded", label: "Create Email", pos: "b", h: 48 }
n11@{ icon: "mdi:message-outline", form: "rounded", label: "Auto Reply", pos: "b", h: 48 }
n12@{ icon: "mdi:robot", form: "rounded", label: "Finance Department", pos: "b", h: 48 }
n13@{ icon: "mdi:robot", form: "rounded", label: "Summarize Promotions", pos: "b", h: 48 }
n14["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/whatsapp.svg' width='40' height='40' /></div><br/>High Priority Alert"]
n15["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/whatsapp.svg' width='40' height='40' /></div><br/>Confirmation"]
n16["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/whatsapp.svg' width='40' height='40' /></div><br/>Promotional Alert"]
n17["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/whatsapp.svg' width='40' height='40' /></div><br/>Finance Alert"]
n18@{ icon: "mdi:message-outline", form: "rounded", label: "Send to Finance Department", pos: "b", h: 48 }
n11 --> n15
n9 --> n14
n10 --> n11
n0 --> n7
n4 --> n13
n8 --> n9
n7 --> n2
n7 --> n3
n7 --> n4
n7 --> n5
n7 --> n6
n1 -.-> n7
n12 --> n18
n2 --> n8
n13 --> n16
n5 --> n12
n3 --> n10
n18 --> n17
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n0 trigger
class n7,n8,n10,n12,n13 ai
class n1 aiModel
classDef customIcon fill:none,stroke:none
class n14,n15,n16,n17 customIcon
The Challenge: Important emails look exactly like noise
Manually triaging email sounds manageable until you’re doing it all day, every day. You scan subject lines, you open messages “just in case,” you tell yourself you’ll reply later, and then later never comes. The worst part is the mental switching: a customer issue, a finance thread, a promo, then a random vendor follow-up. By the time you find the one email that needed a fast response, you’ve already burned half an hour and your focus is gone.
It adds up fast. Here’s where it usually breaks down.
- You end up reading the same email twice because you didn’t decide what to do with it the first time.
- Finance and billing messages blend in with everything else, so you miss a deadline or forget to forward details to the right person.
- “Quick replies” turn into a backlog because writing them still takes time and context you don’t have at the moment.
- Urgent items don’t stand out, so you only notice them when someone follows up (and you feel behind).
The Fix: AI triage in Gmail, WhatsApp alerts for what matters
This n8n workflow watches your Gmail inbox and makes a decision the moment a new email arrives. It sends the email content to an OpenAI model, which classifies it into one of five categories: High Priority, Customer Support, Promotion, Finance/Billing, or Random/Other. From there, each category gets its own handling. High priority messages are labeled, a draft reply is prepared for you, and you get a WhatsApp alert so you can jump in quickly. Support emails can get an auto-reply plus a WhatsApp confirmation, while promos get summarized instead of stealing your attention. Billing gets flagged, summarized, and dispatched to the finance route so it doesn’t depend on you remembering.
The workflow starts with a new Gmail message trigger. AI categorizes it, then conditional paths label, draft, reply, summarize, forward, and alert. WhatsApp becomes your “urgent channel,” not another noisy feed.
What Changes: Before vs. After
| What This Eliminates | Impact You’ll See |
|---|---|
|
|
Real-World Impact
Say you get about 40 emails a day. If you spend only 2 minutes opening and judging each one, that’s roughly 80 minutes daily just on triage. With this workflow, the “decision” happens automatically on arrival, and you only jump in when WhatsApp flags High Priority, Support, or Billing. Even if you still handle 10 important emails manually, you’ve turned an hour-plus into about 20 minutes, and your attention isn’t scattered all day.
Requirements
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Gmail for monitoring, labeling, and sending replies.
- WhatsApp Business API provider to send alerts (Twilio or 360Dialog work).
- OpenAI API key (get it from your OpenAI dashboard).
Skill level: Intermediate. You’ll connect accounts, add credentials, and edit a few message templates.
Need help implementing this? Talk to an automation expert (free 15-minute consultation).
The Workflow Flow
A new Gmail message arrives. The workflow’s Gmail trigger watches your inbox, then grabs the key fields (sender, subject, body) so the next steps can evaluate it.
AI classifies the email into a real category. OpenAI reviews the content and the classifier routes it into High Priority, Customer Support, Promotion, Finance/Billing, or Random/Other. This is the moment the workflow stops treating every message like a fire drill.
Each category gets its own handling. Urgent messages get labeled and a draft reply is created in Gmail, so you can approve it quickly. Support can generate a response and send it automatically, while promo and billing emails get summarized to reduce reading time and improve handoffs.
WhatsApp becomes your escalation channel. The workflow sends WhatsApp alerts for urgent/support/promo/billing paths, and finance messages are dispatched via Gmail too. You end up checking WhatsApp for “important,” and Gmail for “work.” Much cleaner.
You can easily modify the five categories to match your reality (for example: add “Leads” or “HR”) based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Gmail Trigger
Set up the workflow to watch your inbox and start classification as soon as new emails arrive.
- Add Incoming Gmail Watcher as the trigger.
- Set Poll Times to
everyMinute. - Credential Required: Connect your gmailOAuth2 credentials to Incoming Gmail Watcher.
Step 2: Set Up Classification Logic
Configure the classifier to interpret each email snippet and decide which category it belongs to.
- Add Email Category Sorter and set Input Text to
{{ $json.snippet }}. - Keep the defined categories exactly as shown in Email Category Sorter (High Priority, Customer Support, Promotion, Finance/Billing, Random).
- Open OpenAI Chat Engine and select model
gpt-4.1-mini. - Credential Required: Connect your openAiApi credentials to OpenAI Chat Engine. This model powers Email Category Sorter, so credentials are added to the parent node, not the classifier.
Step 3: Configure Category Labels (Gmail)
Label the incoming email based on its predicted category, then route it to the correct automation path.
- From Email Category Sorter, connect output branches to Urgent Labeler, Support Labeler, Promo Labeler, Billing Labeler, and General Labeler in parallel.
- For each label node, set Operation to
addLabelsand Message ID to{{ $('Incoming Gmail Watcher').item.json.id }}. - Ensure each label node uses its specific Label IDs as configured (for example, Urgent Labeler uses
Label_7974018348016773078). - Credential Required: Connect your gmailOAuth2 credentials to all Gmail labeling nodes (8 Gmail nodes handle labeling, drafting, replies, and finance dispatch).
Tip: Email Category Sorter outputs to five labelers simultaneously—make sure each labeler is connected to the correct downstream AI or action node.
Step 4: Configure AI Drafting and Summaries
Set up the AI responses and summaries for urgent, support, finance, and promotional paths.
- In Compose Urgent Draft, keep JSON Output enabled and use the existing prompt. It references
{{ $('Incoming Gmail Watcher').item.json.snippet }}. - In Generate Support Reply, keep the support-specific prompt and the referenced snippet
{{ $('Incoming Gmail Watcher').item.json.snippet }}. - In Finance Summary Writer, keep JSON Output enabled and use the finance summary prompt referencing
{{ $('Incoming Gmail Watcher').item.json.snippet }}. - In Promo Summary Writer, keep the promotional summary prompt referencing
{{ $('Incoming Gmail Watcher').item.json.snippet }}. - Credential Required: Connect your openAiApi credentials to Compose Urgent Draft, Generate Support Reply, Finance Summary Writer, and Promo Summary Writer.
⚠️ Common Pitfall: If Compose Urgent Draft or Finance Summary Writer is set to JSON output, downstream Gmail nodes must reference the structured keys exactly (e.g., {{ $json.message.content.Subject }} and {{ $json.message.content.Message }}).
Step 5: Configure Gmail Outputs
Send replies, drafts, and internal finance notifications after AI outputs are generated.
- In Save Draft Message, set Resource to
draft, Message to{{ $json.message.content.Message }}, and Subject to{{ $json.message.content.Subject }}. - In Send Support Reply, set Operation to
reply, Email Type totext, Message to{{ $json.message.content }}, and Message ID to{{ $('Incoming Gmail Watcher').item.json.id }}. - In Dispatch Finance Email, set Send To to
[YOUR_EMAIL], Message to{{ $json.message.content.Text }}, Subject to{{ $json.message.content.Subject }}, and Email Type totext.
Step 6: Configure WhatsApp Alerts
Notify your team in real time using WhatsApp for each handled category.
- In Urgent WhatsApp Alert, set Operation to
send, Recipient Phone Number to[YOUR_WHATSAPP_NUMBER], and keep the Text Body with embedded expressions. - In Support WhatsApp Notice, keep the Text Body referencing
{{ $('Incoming Gmail Watcher').item.json.snippet }}and{{ $('Generate Support Reply').item.json.message.content }}. - In Promo WhatsApp Notice, keep the Text Body referencing
{{ $('Incoming Gmail Watcher').item.json.snippet }}. - In Billing WhatsApp Alert, keep the Text Body referencing
{{ $('Incoming Gmail Watcher').item.json.snippet }}and{{ $('Finance Summary Writer').item.json.message.content.Email }}. - Credential Required: Connect your whatsAppApi credentials to Urgent WhatsApp Alert, Support WhatsApp Notice, Promo WhatsApp Notice, and Billing WhatsApp Alert.
Step 7: Test and Activate Your Workflow
Validate each category path and enable the workflow for production use.
- Click Execute Workflow and send a test email to the inbox monitored by Incoming Gmail Watcher.
- Confirm the email is labeled via the correct label node and then flows to its downstream action (draft, reply, summary, or WhatsApp alert).
- Check that Save Draft Message creates a Gmail draft, Send Support Reply sends a reply, and Dispatch Finance Email sends a summary to
[YOUR_EMAIL]. - Verify WhatsApp messages are delivered to
[YOUR_WHATSAPP_NUMBER]for the appropriate category. - When everything looks correct, toggle the workflow to Active to run continuously.
Watch Out For
- Gmail OAuth credentials can expire or lack “send” permission. If drafts or replies stop working, check the connected Gmail account in n8n credentials first.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- WhatsApp providers (Twilio, 360Dialog) often require approved templates for certain message types. If alerts fail, check your provider logs and template status before you blame n8n.
Common Questions
About 30 minutes if Gmail and WhatsApp are already set up.
Yes, but someone needs to handle the initial credential connections. After that, most edits are just changing labels, phone numbers, and the wording of replies.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API usage (for many teams, it’s only a few dollars a month) and your WhatsApp provider fees.
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
You can change the categories in the “Email Category Sorter” classifier and then adjust the matching label actions (Urgent Labeler, Support Labeler, Promo Labeler, Billing Labeler, General Labeler). Common customizations include adding a “Leads” path that notifies sales, sending Finance/Billing summaries into Google Sheets, or replacing WhatsApp alerts with Slack while keeping Gmail drafts and labels the same.
Usually it’s expired OAuth tokens or missing Gmail permissions for sending mail. Reconnect the Gmail credential in n8n and confirm it has read and send access, then re-test the draft/reply nodes. If it still fails, check whether your Google Workspace admin is blocking third-party access.
For most small teams, it comfortably handles daily inbox volume.
Often, yes. This workflow uses AI classification plus branching paths (draft vs auto-reply vs summarize vs forward), and those “if this, then that” routes get expensive or awkward in Zapier-style builders. n8n also gives you the self-hosting option, which matters if you’re processing lots of emails and don’t want to think about task limits. On the flip side, if all you need is “email comes in, send me a message,” Zapier or Make can be faster to click together. If you’re unsure, Talk to an automation expert and get a quick recommendation.
Once this is running, your inbox stops being a slot machine. The workflow handles the sorting and the nudges, and you focus on the messages that actually move work forward.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.