Organize Gmail inbox labels with Jev TypeSafe AI (System One)
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every minute). Along the way it connects Gmail. It also calls api.typesafe.ai over HTTP.
How it runs
Trigger: On a schedule (every minute).
- Fetch Unlabelled Emails (Gmail): get many
- Classify Email with Jev (HTTP Request): calls api.typesafe.ai (POST)
- Decide Label from Confidence (Code): runs custom JavaScript code
- List Gmail Labels (Gmail): work with label
- Find Missing Labels (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Create Gmail Label (Gmail): create (label)
- Reload Gmail Labels (Gmail): work with label
- Resolve Label Ids (Code): runs custom JavaScript code
- Apply Label to Email (Gmail): add labels
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: api.typesafe.ai
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.
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
Quick overview This workflow runs every five minutes to find unlabelled Gmail messages, classifies each email with TypeSafe Jev (System One), creates any missing Gmail labels, and applies the chosen label based on model confidence so your inbox is…