Templates / Route urgent Gmail support emails and WhatsApp digests with Groq and Supabase

Route urgent Gmail support emails and WhatsApp digests with Groq and Supabase

Ready for 3.0

by Kanishka Shrivastava ✓ · 7 views · created 2026-07-18 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Groq Chat Model, Supabase and WhatsApp Business Cloud.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Set Configuration (Edit Fields (Set)): sets 3 fields: support_owner_whatsapp_number, whatsapp_phone_number_id, supabase_table_emails
  2. Set Configuration (Digest) (Edit Fields (Set)): sets 3 fields: support_owner_whatsapp_number, whatsapp_phone_number_id, supabase_table_emails
  3. Classify Email Urgency (Basic LLM Chain): sends a prompt to an LLM, with model: Classifier Chat Model; output parser: Classification Parser
  4. Fetch Undigested Routine Emails (Supabase): get many
  5. Log Email (Supabase): insert
  6. Aggregate: combines items into one
  7. Route by Category (Switch): routes items into 3 branches
  8. Build Digest Text (Code): runs custom JavaScript code
  9. Notify Owner Immediately (WhatsApp Business Cloud): send
  10. Send Daily Digest (WhatsApp Business Cloud): send

…plus 3 more steps. See the full node list below.

Services it uses

GmailGroq Chat ModelSupabaseWhatsApp Business Cloud

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New Support Email).

Nodes used (12)

From the author

Quick overview This workflow monitors a Gmail inbox, uses Groq LLM classification to label each support email as urgent, routine, or spam, logs the result to Supabase, sends immediate WhatsApp alerts for urgent messages, and delivers a daily WhatsApp digest…

Excerpt from Kanishka Shrivastava 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.