Agentic AI · Advanced level

Advanced level · Module 4: Routing and Specialist Agents · Lesson 3 of 3

Evaluating Routing

Learners measure routing accuracy with a confusion matrix, link routing errors to final outcomes and tune thresholds.

In this lesson you will

  • Measure routing accuracy per route
  • Tune thresholds using outcome data

Key concepts

routing confusion matrixper-route accuracycost of misroutingthreshold tuningfallback rate

The lesson

Label the correct route for each evaluation task and build a confusion matrix of actual versus chosen routes. Per-route accuracy shows which routes are confused.

Misrouting costs differ: sending a data question to the policy specialist wastes time; sending a complaint to an automated agent may harm a person. Weight errors by their cost.

Tune the confidence threshold by balancing the fallback rate (more human work) against misrouting (more errors).

Step by step

  1. Label routes for 40 evaluation tasks.
  2. Build the routing confusion matrix.
  3. Estimate the cost of each type of misroute.
  4. Choose a threshold and justify it.

Practice activity

Write a routing evaluation with a tuned threshold.

Expected result: A confusion matrix, weighted error analysis and a justified threshold.

Check your understanding

  1. What does a routing confusion matrix show?

    Show answer

    Which routes are chosen for each correct route.

  2. What is the trade-off when raising the confidence threshold?

    Show answer

    Fewer misroutes but more requests sent to the fallback or humans.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.