๐ซ Triage Gmail messages with Jev via OpenRouter, Google Sheets, and Telegram
โก 132 views ยท ๐ซ Ticket Management & Triage
Description
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 alert for high-priority messages.
How it works
- Triggers every minute when a new unread message arrives in Gmail.
- Fetches the full email content and extracts key fields like sender, subject, date, and body text.
- Sends the email content to the Jev decision model through the OpenRouter Decisions API to classify project, message type, priority, and whether it needs a reply.
- Normalizes the classification output, flags low-confidence items for review, and prepares a Gmail label ID and optional urgent-alert text.
- Appends a tracking row with the classification details (including a Gmail link and model cost) to a Google Sheets worksheet.
- Applies the selected Gmail label to the message and sends a Telegram notification when the email is classified as high priority and does not require manual review.
Setup
- Connect Gmail OAuth2 credentials for both reading incoming mail and applying labels.
- Add an HTTP Bearer credential for OpenRouter and ensure the workflow can call
https://openrouter.ai/api/alpha/decisionswith the Jev model specified in the request. - Replace the placeholder Gmail label IDs in the label-mapping code (including the needs_review label) with real label IDs from your Gmail account.
- Connect Google Sheets OAuth2 credentials and select your target spreadsheet and worksheet (or copy the provided sheet and use its document and sheet IDs).
- Connect Telegram credentials and replace
YOUR_TELEGRAM_IDwith the destination chat or channel ID for urgent alerts.
Additional info
MY NEW YOUTUBE CHANNEL
๐ Subscribe to my new YouTube channel. Here Iโll share videos and Shorts with practical tutorials and FREE templates for n8n.
Need help customizing?
Contact me for consulting and support or add me on Linkedin
๐ Nodes Used
Google Sheets, HTTP Request, Telegram, Gmail, Gmail Trigger
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File
