> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debug your agent response

> Debug a Retell agent in the LLM Playground: open Debug on any response or transition, apply suggested fixes, and regenerate the turn to verify.

When your agent answers wrong or takes the wrong path, Debug lets you fix that exact turn instead of guessing at the whole prompt or flow. Open it on a specific response or transition in the [LLM Playground](https://docs.retellai.com/test/llm-playground.md) to see the fixes that usually help, then regenerate the turn to check your change before it reaches a real call.

> [!NOTE]
>
> Debug is a Playground feature, and what it offers depends on the agent. [Conversation Flow](https://docs.retellai.com/build/conversation-flow/overview.md) agents get the full set, including transition debugging and node-level fixes. Single-prompt and multi-prompt agents get response and tool-call debugging, with temperature as the suggested fix.

<video muted loop playsInline preload="metadata" src="https://mintcdn.com/retellai/IwEyQ7Z17TwMRUlF/images/test-llm/debug-panel-intro.mp4?fit=max&auto=format&n=IwEyQ7Z17TwMRUlF&q=85&s=1bfe4b378e813f9b6bc54c4a63b2dd92" />

Opening the Debug panel on a turn in the LLM Playground.

## Fix a wrong response

**1. Open Debug on the response**

Click the `Debug` button on the agent's response.

**2. Review the suggested fixes**

`Debug the AI response` lists the fixes that usually help. Each one links to a guide you follow to make the change yourself:

* [Add Fine-tuning Examples](https://docs.retellai.com/build/conversation-flow/debug-guide.md#add-conversation-finetune-examples) to teach the wording you want.
* [Split One Node into Two Nodes](https://docs.retellai.com/build/conversation-flow/debug-guide.md#split-the-node-into-multiple-nodes) when one node is doing too much.
* [Adjust LLM Temperature](https://docs.retellai.com/build/conversation-flow/debug-guide.md#adjust-the-llm-temperature) to trade variety for consistency.

On a single-prompt or multi-prompt agent, temperature is the only fix offered, since there are no nodes to split.

**3. Regenerate to confirm**

Click `Regenerate the answer` to produce a new response using the agent's current configuration, so once you've applied a fix you can see the new behavior. Use `Regenerate 10 answers` to check how consistent the responses are across runs.

<video muted loop playsInline preload="metadata" src="https://mintcdn.com/retellai/IwEyQ7Z17TwMRUlF/images/test-llm/debug-regenerate-response.mp4?fit=max&auto=format&n=IwEyQ7Z17TwMRUlF&q=85&s=0d3f0e4ac56aa88e10c80551e50fb6b4" />

Debugging a wrong response.

## Fix a transition problem

When the agent moves to the wrong node, or doesn't move when it should:

**1. Open Debug on the transition**

Click `Debug` on the agent's response and select `Didn't transition as expected?`, or click `Debug` directly on the transition dialog.

**2. Review the suggested fixes**

Each fix links to a guide you follow to make the change yourself:

* [Add Fine-tuning Transition Examples](https://docs.retellai.com/build/conversation-flow/finetune-examples.md#finetune-examples-for-transition).
* [Split One Node into Two Nodes](https://docs.retellai.com/build/conversation-flow/debug-guide.md#split-the-node-into-multiple-nodes).

**3. Regenerate the transition**

Click `Regenerate the transition` to try again with the agent's current configuration, or `Regenerate 10 transitions` to see which node the agent picks across 10 attempts.

<video muted loop playsInline preload="metadata" src="https://mintcdn.com/retellai/IwEyQ7Z17TwMRUlF/images/test-llm/debug-regenerate-transition.mp4?fit=max&auto=format&n=IwEyQ7Z17TwMRUlF&q=85&s=45ce74f6456ae992a70a63b38417fa91" />

Debugging a transition.

## Fix a wrong tool call

When the agent calls the right function with the wrong arguments, or calls one it shouldn't, hover the `Tool Invocation` row in the transcript and click `Debug`. `Debug the tool invocation` works like the response popup: it links to the fixes that apply, then `Regenerate the tool invocation` retries that call with the agent's current configuration and `Regenerate 10 tool invocations` shows how often each set of arguments comes up.

## Fix inconsistent responses

When the same prompt gives different answers, click `Debug` on the response. The popup links to guides for the fixes that help most: [add fine-tuning examples](https://docs.retellai.com/build/conversation-flow/debug-guide.md#add-conversation-finetune-examples), [split the node](https://docs.retellai.com/build/conversation-flow/debug-guide.md#split-the-node-into-multiple-nodes), or [adjust the temperature](https://docs.retellai.com/build/conversation-flow/debug-guide.md#adjust-the-llm-temperature).

Each debug popup has a 10-run option: `Regenerate 10 answers`, `Regenerate 10 transitions`, and `Regenerate 10 tool invocations`. Each one replays that turn 10 times and lists every distinct result with a count out of 10, so you can see the agent's most common output on a non-deterministic turn and confirm it holds steady after a fix.

## Next steps

* [Manually test your agent](https://docs.retellai.com/test/llm-playground.md) covers the rest of the Playground.
* [Testing overview](https://docs.retellai.com/test/test-overview.md) compares the Playground with simulation and live call testing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.