Route urgent Gmail support emails and WhatsApp digests with Groq and Supabase
Ready for 3.0What 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).
- Set Configuration (Edit Fields (Set)): sets 3 fields: support_owner_whatsapp_number, whatsapp_phone_number_id, supabase_table_emails
- Set Configuration (Digest) (Edit Fields (Set)): sets 3 fields: support_owner_whatsapp_number, whatsapp_phone_number_id, supabase_table_emails
- Classify Email Urgency (Basic LLM Chain): sends a prompt to an LLM, with model: Classifier Chat Model; output parser: Classification Parser
- Fetch Undigested Routine Emails (Supabase): get many
- Log Email (Supabase): insert
- Aggregate: combines items into one
- Route by Category (Switch): routes items into 3 branches
- Build Digest Text (Code): runs custom JavaScript code
- Notify Owner Immediately (WhatsApp Business Cloud): send
- Send Daily Digest (WhatsApp Business Cloud): send
…plus 3 more steps. See the full node list below.
Services it uses
Other Groq + Gmail templates (125) · Other WhatsApp + Gmail templates (75) · Other Supabase + Gmail templates (69)
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).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Supabase
n8n-nodes-base.supabase - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut
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…