Draft Gmail reply suggestions with Groq Llama 3.3
Ready for 3.0Ready 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 5 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.
- Post to Groq for Reply Draft (HTTP Request): calls api.groq.com (POST)
- Parse AI Draft Response (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Send Reply via Gmail (Gmail): work with draft
Services it uses
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)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow polls Gmail for new emails, sends the message content to Groq’s Llama 3.3 chat completions API to generate a JSON reply draft decision, and creates a Gmail draft reply only when the message appears to need a human response. How it…