Triage and reply to Gmail with Groq Llama 3.3, Slack and Google Sheets
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, Slack and Google Sheets. It also calls api.groq.com over HTTP.
How it runs
Trigger: On Gmail events.
- Normalise Email (Code): runs custom JavaScript code
- Claude – Classify & Draft (HTTP Request): calls api.groq.com (POST)
- Parse AI Response (Code): runs custom JavaScript code
- Route by Destination (Switch): routes items into 4 branches
- Slack: uses Slack
- Slack: uses Slack
- Gmail: add labels
- Should Draft Reply? (If): checks a condition and branches into true / false
- Gmail: uses Gmail
- Sheets – Log Triage (Google Sheets): append
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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) (Gmail – New Email).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors unread Gmail messages, uses Groq’s Chat Completions API (LLama 3.3) to classify and draft replies, routes key emails to Slack or Gmail labels, logs triage details to Google Sheets, and sends a separate Gmail alert when an…