Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Customer Support & Helpdesk

Customer Support & Helpdesk

Triage Gmail emails with Jev scoring and draft OpenAI replies

Runs on each new Gmail email. Jev scores urgency and reply need, applies a Gmail label, drafts an OpenAI reply when one is needed, and logs every decision.

What it does

# Triage Gmail emails with Jev decisions and draft replies with OpenAI [](https://youtu.be/1HFTuRrkr2k) # 📥 Open full documentation on Notion Canvas map 1. Receive and prepare the email 2. Let Jev decide (System One) 3. Apply the Gmail label 4. Draft a reply when one is needed 5. Log every decision ## How it works Every new email is sent to Jev, TypeSafe AI's System One model. Jev does not write text: it returns calibrated probabilities on options you define. - Evaluate asks 3 typed questions in one call: urgency (score 0-3), needs a reply (yes/no probability), upset customer (yes/no probability). - Route picks the team (Sales, Support, Billing, Partnerships, Newsletters, Spam) and replaces a Switch node. When Jev is less sure than route_confidence_threshold, the email leaves from Fallback and gets the Jev/To review label for a human. - Only emails that need a reply (and are not Spam or Newsletters) reach the LLM, which writes a Gmail draft in the same thread. Nothing is ever sent automatically. - Every decision is stored in a Data Table so you can measure accuracy, volume and cost. Jev is the fast, cheap decision step (System 1). The LLM only runs on the few emails that need words (System 2). ## Setup 1. Install the community node @typesafe-ai/n8n-nodes-typesafe-ai (Settings > Community nodes). On n8n Cloud, Jev is already available. 2. Create a TypeSafe AI API credential with your key from console.typesafe.ai and select it on the 2 Jev nodes. 3. Connect Gmail (OAuth2) and OpenAI credentials. 4. In Gmail, create the labels Jev/Sales, Jev/Support, Jev/Billing, Jev/Partnerships, Jev/Newsletters, Jev/Spam, Jev/To review, then pick one in each Label as ... node. 5. Create a Data Table with the columns used by Log Jev decision and select it. 6. Edit Configuration, then activate. ## Requirements - n8n self-hosted with the TypeSafe AI community node, or n8n Cloud - TypeSafe AI API key (Jev) - Gmail account (OAuth2) - OpenAI API key Self-hosted tip: if installing the node fails with "Class could not be found", the n8n-workflow package in ~/.n8n/nodes is outdated. Run npm install n8n-workflow@ --ignore-scripts in that folder and restart n8n. ## Customization - Change the teams in Route email to department (names become outputs) and add one label node per new output. - Raise route_confidence_threshold to send more emails to human review, lower it to automate more. -

The steps

  1. Watch new emails
  2. Configuration
  3. Extract email fields
  4. Score email with Jev
  5. Route email to department
  6. Label as Sales
  7. Label as Support
  8. Label as Billing
  9. Label as Partnerships
  10. Label as Newsletters
  11. Label as Spam
  12. Label as To review
  13. Collect routing decision
  14. Needs a reply?

18 steps in total.

Similar automations