Skip to main content

Email Triage

Classify inbound emails against your tenant taxonomy. Returns category, urgency, sentiment, and a deterministic routing decision. Known FM portal senders can short-circuit to portal_ingest without AI classification.

POST /triage/classify

Classify a single email. Request body: Response fields: Example:
Use cases:
  • Inbox routing: Branch n8n or helpdesk workflows on decision.action and decision.destination before human review.
  • Portal handoff: When decision.action is portal_ingest, forward the message to POST /ingest/email/portal instead of a generic queue.
  • Priority escalation: Filter on classification.urgency and decision.priority for same-day handling.
  • Volume analytics: Aggregate classification.category counts to measure inbound mix by type.
Notes:
  • Pipeline order: portal short-circuit → pre-filter → AI classification → rule-based routing.
  • Pass skip_portal_check: true when upstream logic has already separated portal traffic.
  • Typical latency: instant for portal/pre-filter hits; 2–5s when AI classification runs.
  • Use GET /triage/categories to fetch the active taxonomy for UI pickers.

GET /triage/categories

Return the category taxonomy for UI rendering (system default plus tenant overlay). Query parameters:
Response: categories[] with value (category code), label, and description.