Triage Gmail inbox, route emails with Jev, and draft replies with OpenAI
UnknownWhat this workflow does
This AI workflow has 18 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Typesafe Ai (community).
How it runs
Trigger: On Gmail events.
- Configuration (Edit Fields (Set)): sets 9 fields: company_name, company_context, reply_language…
- Extract email fields (Edit Fields (Set)): sets 7 fields: message_id, thread_id, from_email…
- Score email with Jev (Type Safe Ai): uses Type Safe Ai
- Route email to department (Type Safe Ai): route
- Label as Sales (Gmail): add labels
- Label as Support (Gmail): add labels
- Label as Billing (Gmail): add labels
- Label as Partnerships (Gmail): add labels
- Label as Newsletters (Gmail): add labels
- Label as Spam (Gmail): add labels
…plus 6 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Typesafe Ai templates (3)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @typesafe-ai/n8n-nodes-typesafe-ai is verified or supports 3.0 (used in Score email with Jev, Route email to department).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Type Safe Ai
@typesafe-ai/n8n-nodes-typesafe-ai.typeSafeAi - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Data table
n8n-nodes-base.dataTable
From the author
Quick overview This workflow monitors unread Gmail inbox messages, uses TypeSafe AI Jev to score urgency and route each email to a department label, and, when a reply is needed, uses OpenAI to generate a Gmail draft reply and logs all decisions to an n8n Data…