API Products › Message Router
About
Classifies an incoming message into exactly one department from a predefined list. It returns the chosen department, a confidence score (0–100), and an explanation of the routing.
Default departments:
- sales: New business, quotes, upgrades.
- support: Troubleshooting, bugs, how-to help.
- billing: Invoices, payments, refunds.
- jobs: Hiring and applications.
- press: Media and PR requests.
- partnerships: Reseller, affiliate, integrations.
- legal: Contracts, terms, compliance.
- general: Everything else; triage needed.
The importance score reflects how relevant or legitimate the message appears. This can also be inferred as the spam score, a very low score indicates the message is of little importance. Importance can be tweaked and departments can be prioritized through context and guidance.
API reference
Parameters
- message (required)
- string
- subject
- string
- context
- string
- guidance
- string
- departments
- []
- name (required)
- string
- description
- string
Provide the original message in plain text (10-1500 characters).
Provide the original subject in plain text (max 120 characters).
Describe yourself or your company (max 400 characters).
Describe what you want (max 400 characters).
List of internal departments.
Short keyword (2-32 characters).
Reason to route here (max 120 characters).
Response
- department (required)
- string
- confidence (required)
- integer
- reason (required)
- string
- importance (required)
- integer
Chosen department.
0-100 certainty in the department selection.
One-line rationale for the department choice.
0-100 how important is this message (0=trivial/spam, 100=urgent lead).