Console ↗

Routing by confidence

Use the predicted category to pick a destination. Use confidence to decide whether a person should confirm that assignment.

Route a billing ticket

The choice picks a queue. The confidence determines whether to route automatically or ask an operator to check the classification.

Request

{
  "model": "ngila-judge",
  "state": "The last invoice includes two identical charges.",
  "questions": {
    "queue": {
      "type": "choice",
      "instructions": "Which team owns this issue?",
      "criteria": {
        "Billing": "",
        "Account access": "",
        "Technical support": ""
      }
    }
  }
}

Apply the result

Evaluate the proportion of tickets routed automatically and the error rate among those tickets at each threshold. In this fragment, a is the answers object.

route = a["queue"]
destination = route["choice"] if route["confidence"] >= review_threshold else "Review"

Worked example