Label and triage support emails in Gmail with DeepSeek or OpenAI
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs on Gmail events. Along the way it connects Gmail. It also calls api.deepseek.com over HTTP.
How it runs
Trigger: On Gmail events.
- Filter Noise Emails (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Post to AI Classifier API (HTTP Request): calls api.deepseek.com (POST)
- Map Classification to Label (Code): runs custom JavaScript code
- Apply Label in Gmail (Gmail): add labels
Services it uses
Other DeepSeek + Gmail templates (15)
HTTP calls to: api.deepseek.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 - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow monitors a Gmail inbox, filters out auto-replies and mailing-list noise, classifies each incoming email with DeepSeek (or OpenAI-compatible chat completions), and applies a corresponding Gmail label (order status, product…