start_improvement_loop
start_improvement_loop
Returns the improvement loop: the steps an AI assistant follows to find and fix a problem with your AI Agent. For why to use the loop and the ways to start it, see Improvement loop.
When the assistant calls it
The assistant calls this tool first, before it reads conversations or edits anything, when:
- The cause of a problem isn’t clear and needs diagnosing.
- The fix needs several steps or a test.
- You want to investigate or improve a custom metric.
- You ask for the improvement loop.
When you name the change, or the issue is clear and the fix is plain, the assistant follows get_improvement_guide instead and makes the edit. For example: “Add the new returns address to the Shipping article.”
Examples
Each example shows what you ask, what the assistant does, and what you get. The assistant checks with you at the key decisions. Ada improves the loop over time, so the exact steps can change.
Find the cause of a problem
You ask: “Why do so many conversations about refunds go unresolved in the last 7 days?”
What the assistant does:
- Finds the unresolved conversations about refunds in the last 7 days.
- Reads a few of the transcripts, and marks the turn where each one went wrong.
- Groups the failures by cause. For each cause, it names the article, Playbook step, or Custom Instruction behind it.
What you get: A report of each cause, with example conversations. For example: “The Refunds article doesn’t say when the refund arrives.” Nothing is staged. The assistant asks if you want a fix tested. If you say yes, it continues with the full loop.
Fix a behavior you describe
You ask: “The Agent keeps asking for the order number twice. Fix it.”
What the assistant does:
- Finds conversations that show the problem, and shows you where each one went wrong. You confirm which ones show the problem.
- Asks what the AI Agent should have done.
- Drafts an objective from your answer, for example “Asks for the order number once”. After you confirm it, the assistant creates the objective on a change set.
- Checks that the objective catches the problem, and measures the starting pass rate.
- Finds the root cause, for example a Playbook step that asks for the order number when it’s already saved in a variable.
- Stages the fix on the change set.
- Finds or writes test cases for the problem, and for what already works.
- Tests the change set against the live Agent, and revises the fix for a limited number of rounds. If tests still fail, it reports them.
- When the tests pass, shows you simulated conversations from the test, and asks if this is what you want.
- Recommends a live test or a promotion. It acts only after you confirm.
What you get: A tested change set with the fix and its objective, and a before-and-after comparison with your live Agent. After a live test starts, the Objective box on the Change sets page shows how the change set compares with your live Agent.
Reduce handoffs for one reason
You ask: “Reduce handoffs to human agents on billing questions.”
What the assistant does:
- Ranks the handoff reasons for billing conversations, and marks the reasons that a change to the AI Agent may not fix.
- Asks you to pick one reason.
- Finds the conversations with that reason, groups them into patterns, and asks you to pick one. Then it follows the same steps as Fix a behavior you describe.
What you get: The ranking of handoff reasons, then a tested change set for the reason you picked.
Improve a custom metric
You ask: “Improve the Gives the refund date metric.”
What the assistant does:
- Reads the metric’s criteria and its pass rate.
- Checks whether the metric or the judge changed in the date range. If that change explains the move in the pass rate, the assistant reports it and stops.
- Reads the failing conversations, groups them by cause, and lists the verdicts that look wrong. It doesn’t edit the metric.
- Stages a fix, tests it with the metric, and recommends a rollout, as in Fix a behavior you describe.
What you get: A tested change set measured by your metric. The assistant creates no objective, because the metric already says what good looks like.
Make an edit you name
You ask: “Add the new returns address to the Shipping article.”
What the assistant does: It doesn’t run the loop. It reads get_improvement_guide, stages the edit on a change set with edit_agent_behavior, and shows you the change. If the edit may not fix what you want, it offers the loop once.
What you get: A change set with one edit. It goes live only after you approve a live test or a promotion.
Parameters
This tool takes no parameters.
Response
The tool is read-only. It doesn’t read or include conversations.
Returns markdown with the steps of the loop. It starts by working out what you ask for:
- Run the loop: Find the cause, then stage, test, and roll out a fix.
- Find the cause only: When you ask only why something happened, the assistant reads the conversations and reports the causes. It stages nothing, and asks if you want a fix tested.
- Make the edit: When you name the change, the assistant follows
get_improvement_guide. - Not clear: The assistant asks you whether to make the edit, or to find the cause first.
Then it gives the ways into the loop:
- A custom metric: You name a custom metric to investigate or improve.
- A signal: You name unresolved conversations, low CSAT, or a handoff reason.
- A behavior you describe: You say in your own words what the AI Agent does wrong.
- Conversations you give: You give one or more conversation IDs.
Each way in leads to these steps:
- Confirm the problem with you, from the conversations that show it.
- Define what good looks like. The assistant drafts an objective and creates it after you confirm it.
- Find the root causes.
- Stage the fix on a change set with
edit_agent_behavior. - Test the change set against the live Agent, with test cases for the problem and for what already works.
- Roll out or promote the change set after you approve it.
When you name a custom metric, the loop starts from that metric’s failing conversations and uses the metric in place of an objective.
The assistant keeps the steps in its context for the rest of the session, so it calls the tool once.
Tool permissions
The loop uses many other tools. If your account uses Selected tools in Tool permissions, new tools stay blocked. Members and API keys with their own tool settings don’t get new tools either. Allow start_improvement_loop and the tools the loop and its edits use:
- Conversations and metrics:
get_conversations,get_conversation,get_ada_metric,get_available_filters,rank_handoff_reasons - Configuration:
get_ada_configuration,list_entities,search_knowledge,search_coaching,get_improvement_guide,run_code_tool - Objectives and evaluations:
draft_changeset_objective,create_changeset_objective,evaluate_changeset_objective,evaluate_custom_metric,get_metric_evaluation - Change sets:
edit_agent_behavior,list_agent_changesets,compare_changeset_metrics - Tests:
edit_agent_config,get_test_cases,draft_test_case_from_conversation,get_test_runs,test_changeset,get_changeset_test