Taming complexity: Evaluation framework for agentic chatbots in business-critical environments

Karol Zak, Marc Gomez19 Jun 2025

Problem

A Microsoft team built a chatbot for a customer to replace a legacy change-management tool with a complex interface and many business rules. Leadership wanted proof that an LLM agent would be reliable at scale. Binary pass/fail checks and fixed reply matching do not fit such an agent: the same request can be answered in several valid ways, and the same intent may map to different function calls on different runs. Errors in business workflows cost money and user trust.

Example from the article: a support-ticket chatbot where the agent must create a ticket and an action item with the right department, priority and assignee.

Solution in brief

Instead of human testers, an LLM "user agent" follows a scenario and talks to the chatbot until the task is done. Generate hundreds of scenarios by filling templates with real business data. Compare the functions the agent actually called with the ones the scenario expects, and score them with precision, recall and a reliability score.

Questions this case answers
  • How to evaluate a non-deterministic multi-turn agent that triggers structured actions, when there is no fixed correct reply to compare against
  • How to test a multi-turn LLM chatbot that calls business APIs before it goes live?
  • How to build hundreds of realistic test cases for an agent without writing each one by hand?
  • How to score an agent whose wording changes from run to run?

Tools and methods

  • LLM user simulator — plays a non-technical user following scenario instructions
  • Test case factory — fills scenario templates with business data
  • Function-call precision and recall — scores names and arguments of agent calls
  • Semantic Kernel — runs the simulation loop (any framework works)
  • Azure AI Evaluation SDK / Azure AI Foundry — metrics and run tracking
  • LLM error analysis — summarizes failures across conversations
Continue reading — it's free

Google or a one-time email code. No password.