> For the complete documentation index, see [llms.txt](https://project-44.gitbook.io/retell-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://project-44.gitbook.io/retell-ai/test/llm-playground.md).

# LLM Playground

Learn how to effectively test and debug your AI agents using the LLM Playground

The LLM Playground provides a convenient environment for testing your AI agents without making actual web or phone calls. This interactive testing interface enables:

* Rapid prototyping and debugging of agent responses
* Testing different conversation scenarios
* Immediate feedback on agent behavior
* Faster development iterations

1

Access the LLM Playground

1. Navigate to your agent’s detail page
2. Click on the “Test LLM” tab
3. You’ll see the chat interface where you can start testing

![Screenshot of the LLM Playground interface](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/test.png)

LLM Playground Interface

2

Test Basic Conversations

1. Type your message in the input field
2. Observe the agent’s response

3

Test Function Calling

1. Use prompts that should trigger specific functions
2. Verify that functions are called with correct parameters

![Screenshot of the function calling test](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/p_1.png)4

Iterate and Refine

1. Monitor agent behavior and responses
2. Update prompts or functions as needed
3. Click the “delete” button to reset conversations
4. Test the updated behavior

![Screenshot of the iteration process](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/p_3.png)

Iterate and test

5

Save Test Cases

1. Click the “Save” button to store your test conversation
2. Add a descriptive name for the test case
3. Access saved tests from the agent detail page

![Screenshot of saving a test case](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/p_4.png)

Save test case

![Screenshot of saved test cases](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/p_2.png)

Saved test cases

6

Test Dynamic Variables

1. Use dynamic variables in your prompts
2. Verify that variables are properly interpolated
3. Test different variable values and scenarios

![Screenshot of dynamic variables](https://mintlify.s3.us-west-1.amazonaws.com/retellai/images/dynamic.png)

#### [​](https://docs.retellai.com/test/llm_playground#best-practices)Best Practices <a href="#best-practices" id="best-practices"></a>

* Start with simple conversations and gradually test more complex scenarios
* Save important test cases for regression testing
* Test edge cases and error handling
* Document unexpected behaviors for future reference


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://project-44.gitbook.io/retell-ai/test/llm-playground.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
