Skip to content
FlowHubFluxonLab
B
AI Automationfree

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

by Kanishka Shrivastavaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresBBasic LLM ChainCCodeGroq Chat ModelGroq Chat ModelStructured Output ParserStructured Output ParserSupabaseSupabaseWhatsApp Business CloudWhatsApp Business Cloud
Share Post Share
New Support EmailNew Support Ema…SeSet ConfigurationSet Configurati…CLClassify Email UrgencyClassify Email …Classifier Chat ModelClassifier Chat…OPClassification ParserClassification …Log EmailSwRoute by CategoryRoute by Catego…Notify Owner ImmediatelyNotify Owner Im…Mark as NotifiedScDaily Digest TimeDaily Digest Ti…SeSet Configuration (Digest)Set Configurati…Fetch Undigested Routine EmailsFetch Undigeste…AgAggregate EmailsCoBuild Digest TextBuild Digest Te…Send Daily DigestSend Daily Dige…SOSplit Out Email IDsSplit Out Email…Mark as Digested12345678
1/5
FLOWS
STEPS · 8
Starts on a Gmail event

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 summarizing routine emails. How it works Triggers every minute when a new email arrives in Gmail. Uses Groq (via an LLM prompt) to classify the email as urgent, routine, or spam and generate a one-sentence summary and reason. Inserts the email metadata, category, and summary into a Supabase table for tracking. Sends an immediate WhatsApp message to the support owner when the email is classified as urgent and updates the Supabase record to reflect it was notified. Runs on a daily schedule to fetch all routine emails in Supabase that have not yet been included in a digest. Aggregates those routine emails into a single WhatsApp digest message, sends it to the support owner, and marks the included Supabase records as digested. Setup Connect Gmail OAuth2 credentials and ensure the trigger watches the support inbox/labels you want monitored. Add Groq API credentials for the chat model used to classify and summarize emails.

Tags

n8nreference-onlychain-llmlm-chat-groqoutput-parser-structuredsupabasewhats-app
Connects
BBasic LLM ChainCCodegroqchatmodelGroq Chat ModelstructuredoutputparserStructured Output ParsersupabaseSupabasewhatsappbusinesscloudWhatsApp Business Cloud
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes17
AddedJul 18, 2026

Related workflows

See all AI Automation
BCsheetsgroqchatmodel
free

Confirm and log WhatsApp restaurant orders with Groq and Google Sheets

Quick Overview This workflow triggers on incoming WhatsApp orders, uses Groq to extract items and quantities, validates them against a live Google Sheets menu, logs the result to an orders sheet, and replies to the customer with either a clarification request or a priced confirmation (with optional VIP owner alerts). How it works Triggers when a new WhatsApp message is received on your WhatsApp Business Cloud number. Sends the message text to Groq (Llama 3.3) to extract a structured list of ordered items and quantities. Reads the latest menu (item name, price, availability) from a Google Sheets “Menu” tab. Matches extracted items to the menu, checks availability, calculates line subtotals and the total price, and compiles any validation issues. If there are issues, replies to the customer on WhatsApp asking for a corrected order and appends a “needs_clarification” entry to the Google Sheets “Orders” tab. If the order is valid, appends a “confirmed” entry to the Google Sheets “Orders” tab and sends a WhatsApp confirmation with the item summary and total. If the confirmed total meets or exceeds the VIP threshold, sends a separate WhatsApp notification to the owner number. Setup Conne

by Kanishka Shrivastava
autofixingoutputparserBopenaichatmodelstructuredoutputparser
free

Force AI to use a specific output format

This workflow is for anyone looking to automatically fetch, validate, and parse complex language-based queries into a structured format. Its unique capability lies in not only processing language but also fixing invalid outputs before structuring them. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ABembeddingsgooglegeminiW
free

Handle WhatsApp support chats with OpenRouter, Pinecone, and Gemini

Quick overview This template implements a WhatsApp support suite that logs inbound events to a dashboard API, routes conversations through an OpenRouter-powered AI agent with Pinecone RAG and memory, exposes a webhook for human outbound replies, and provides a webhook to summarize recent chats for handoff. How it works Triggers on WhatsApp Cloud API events and routes status updates (sent/delivered/read) to a dashboard API endpoint for storage. For inbound messages, looks up the contact in the dashboard API and normalizes the message into a consistent schema (sender, type, timestamp, and best-effort content). If the message contains media (image/video/audio/document), fetches the WhatsApp media URL, downloads the file, uploads it to the dashboard’s media endpoint, and attaches the resulting media URL and MIME type. Stores inbound messages and reactions in the dashboard API, then checks via the cases endpoint whether the sender already has an open case. If the inbound message is text and no open case is found, queries Pinecone as a tool (using Google Gemini embeddings), uses an OpenRouter chat model with conversation memory to draft a reply or create a new case via the dashboard API,

by Salman Mehboob