X-TALKPlaybook Edition 2.0 · 2026
Try X-TALK
Chapter 18New chapter3 min read

Testing and continuously improving agents

An agent is not a project with an end date. It is a product that changes every week, so it needs tests, drafts, versions and a way to roll back. Like any decent software.

The biggest change in mature deployments is the approach to quality. A “test” used to mean a manager having a few conversations with the bot before launch. Today an agent has a set of scenarios that run after every change to its instructions, knowledge or tools, and changes reach customers only once the tests pass.

Q&A tests with a simulated customer

In X-TALK a test scenario describes a situation and the expected behaviour, e.g. “The customer wants leasing as a private individual: the agent explains the offer and does not promise a credit decision”. During the test AI plays the customer, the agent runs the conversation (in chat or by voice), and an AI “judge” assesses whether the behaviour meets the criteria. Tools that write data are simulated in tests.

Agent Q&A tests: results of the latest run, list of scenarios, run history and the “Fix with Copilot” button.
🎯

Scenarios from the intent map

One or two for each intent, plus edge cases: no consent to be contacted, a customer without their details, a request for a human, an attempt to extract the instructions.

🤖

AI suggests scenarios

Copilot will suggest a set of tests itself, based on the agent's instructions, knowledge and tools. You choose and refine them.

🔁

Several repetitions

The model does not answer identically every time. Run a scenario 3×. If it passes one time in three, it is not “green”.

The conversation lab lets you compare agent variants (e.g. two versions of the instructions or two models) on the same scenarios. A chat test costs about PLN 0.01 per conversation, so there is no reason not to test.

Agent Copilot: changes in a draft, not in production

Instead of editing the prompt by hand, you tell Copilot what should change: “the agent offers a human agent too quickly”, “add a question about the order number”, “describe the new tools in the instructions”. Copilot prepares the changes in a draft, with an explanation of “why” and a before/after view. The live agent runs unchanged until you click “Apply”, and before that you can run the tests on the draft.

Every version of the instructions stays in the change history: you can compare it and restore a previous one. The same applies to custom tools.

From a bad conversation to a fix in 5 minutes

The most valuable source of fixes is real conversations. In X-TALK you can open a specific conversation in Copilot's context and write what you did not like. Copilot sees the timed transcript, the tool calls with their arguments and results, the knowledge fragments used and any errors. It makes a diagnosis and proposes a fix together with a new test scenario that reproduces the problem.

Copilot in the context of a conversation: diagnosis (“the agent asked several questions at once and gave an amount instead of a percentage”), a before/after fix to the instructions and a new Q&A scenario.
  1. 1
    Bad conversationfrom a hotspot, a customer rating or a listen-back
  2. 2
    DiagnosisCopilot points to the turn, the rule and the cause
  3. 3
    Fix in a draftinstructions, knowledge or a tool
  4. 4
    New scenarioa test that reproduces the problem
  5. 5
    Tests passapply; entry in the change history

For the most demanding deployments, the conversation debugger shows which information and sources influenced the answer, which tools were used and what is worth improving. The same mechanism is available from outside via MCP (chapter 24, X-TALK in your company's AI: API and MCP), e.g. the “Why didn't the agent answer” scenario.

✅ Quality process0/6

Ready for the next step?

Describe your company in the free Copilot on x-talk.me. In a few minutes you will see your own agent in chat and on the phone. Or let's talk about what an AI communication centre could look like in your company.

+48 732 106 896 · x-talk.me