Console ↗

Companion Noul

A closed set always offers a best candidate. Add a coverage question so the application can reject an incomplete option set.

Route support requests

Ask which supported queue fits and separately whether either queue applies. A restaurant request can prompt a choice between Billing and Technical support even though it belongs in neither.

Request

{
  "model": "ngila-judge",
  "state": "Can you recommend a nearby restaurant?",
  "questions": {
    "queue": {
      "type": "choice",
      "instructions": "Pick the closest support queue.",
      "criteria": {
        "Billing": "",
        "Technical support": ""
      }
    },
    "covered": {
      "type": "noul",
      "instructions": "Does the message concern a bill or a technical problem?"
    }
  }
}

Apply the result

Check the coverage answer before applying the selected category. In this fragment, a is the answers object.

queue = a["queue"]["choice"] if a["covered"]["noul"] >= 0.9 else "Manual review"

Worked example