Skip to navigation

Improvement loop

The improvement loop is the main way to improve your AI Agent with an AI assistant. Describe a problem in your own words. The assistant finds the cause, agrees with you what good looks like, tests a fix against your live AI Agent, and rolls it out after you approve.

Why use it

A quick edit can fix one conversation and break others. With the loop:

  • You don’t need a special prompt. Name a behavior, a metric, a handoff reason, or a conversation. The assistant starts the loop for you.
  • You fix the cause, not the symptom. The assistant reads the conversations that show the problem, confirms the problem with you, and names the article, Playbook step, or Custom Instruction behind each failure.
  • You agree what good looks like first. You confirm an objective, and the assistant measures the pass rate before the fix. During a live test, the same objective compares the change set with your live Agent.
  • You see what a fix improves and what it breaks. The same test cases run on the change set and on the live Agent.
  • You decide what goes live. The assistant starts a live test or a promotion only after you confirm it.
  • You get the current steps. Ada maintains the loop. The assistant gets the steps from Ada in each session, with the Ada MCP server and with the Ada CLI.

An edit to a change set that already has a live test reaches that test’s conversations right away.

Ways to start

Start from what you have. Each of these prompts starts the loop:

You start fromExample prompt
A behavior you describe”The Agent keeps asking for the order number twice. Fix it.”
Unresolved conversations or low CSAT”Why do so many conversations about refunds go unresolved?”
A handoff reason”Reduce handoffs to human agents on billing questions.”
Conversations you give”Look at conversation abc123. The Agent went wrong after the second message.”
A custom metric”Improve the Gives the refund date metric.”

Where it runs

The loop works with the Ada MCP server, and with Ada CLI 1.16.0 or later through the ada-optimize skill. For an edit you name, such as a new address in an article, the assistant makes the edit without the loop.

  • start_improvement_loop: Worked examples of the loop, and the tools to allow with Selected tools.
  • Change sets: Review the fix, and read the Objective box during a live test.
  • Custom Metrics: Measure a behavior across all conversations, and start the loop from a metric.