Templates / Label Gmail emails by priority with Groq Llama 3.3

Label Gmail emails by priority with Groq Llama 3.3

Ready for 3.0

by Taku (AI Jidoka Lab) · 36 views · created 2026-07-22 · 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 workflow has 8 nodes and runs on Gmail events. Along the way it connects Gmail. It also calls api.groq.com over HTTP.

How it runs

Trigger: On Gmail events.

  1. Post to AI Classifier API (HTTP Request): calls api.groq.com (POST)
  2. Parse Classification Response (Code): runs custom JavaScript code
  3. Check If Action Required (If): checks a condition and branches into true / false
  4. Add Label: Action Required (Gmail): add labels (message)
  5. Check If Promotions (If): checks a condition and branches into true / false
  6. Add Label: Promotions (Gmail): add labels (message)
  7. Add Label: Other (Gmail): add labels (message)

Services it uses

Gmail

HTTP calls to: api.groq.com

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) (When Email Received).

Nodes used (5)

From the author

Quick overview This workflow polls Gmail for new emails, sends the email text to Groq’s OpenAI-compatible chat completions API (Llama 3.3) to classify it, and then applies the matching Gmail label for Action Required, Promotions, or Other. How it works 1.…

Excerpt from Taku (AI Jidoka Lab)'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.