Triage Gmail messages with Jev via OpenRouter, Google Sheets, and Telegram
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Telegram. It also calls openrouter.ai over HTTP.
How it runs
Trigger: On Gmail events.
- Get full email (Gmail): get
- Prepare Jev request (Code): runs custom JavaScript code
- Classify with Jev (HTTP Request): calls openrouter.ai (POST)
- Prepare result (Code): runs custom JavaScript code
- Select Google Sheets columns (Code): runs custom JavaScript code
- Google Sheets: append
- Gmail: add labels
- Urgent email? (If): checks a condition and branches into true / false
- Telegram: uses Telegram
Services it uses
HTTP calls to: openrouter.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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New Gmail message).
Nodes used (7)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow monitors unread Gmail messages, uses the Jev decision model via OpenRouter to classify each email (project, type, priority, and reply likelihood), logs the results to Google Sheets, applies a Gmail label, and sends a Telegram…