Test your agent in the Playground
Chat with your agent before customers do, see which sources, procedure and actions it used for each answer, and fix problems from the same screen.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
The Playground is a live chat with your agent inside the dashboard. Use it after every change to a source, procedure or setting, and whenever a customer reports a wrong answer. It also shows why the agent answered the way it did.
Open the agent and select Test > Playground.
Start a conversation
- Type a question a customer would ask, in the customer's words.
- Press
Enter. - Read the answer and the trace beside it.
Use New chat to start fresh. Each chat is independent, so a long conversation does not affect the next.
Read the trace
Next to each answer, select Why this answer to open the trace.
| Part | What it tells you |
|---|---|
| Procedure | The procedure the agent followed, and the step it was on. |
| Sources | The sources it searched and which passages it used. |
| Actions | Actions called, with the values sent and received. |
| Guardrails | A guardrail that applied, such as a refused topic. |
| Model | The model that wrote the answer. |
You should see at least one source or a procedure for any answer about your business. If the trace shows no source and the answer sounds confident, the agent may be answering from general knowledge. Add a source, or tighten the guardrails.
Fix what you find
- Wrong fact. Open the source in the trace and correct it, or add a Q&A pair. See data sources.
- Wrong steps. Open the procedure from the trace and edit it. See how procedures run.
- Wrong tone. Change the instructions under Build > Behavior.
After each fix, select New chat and ask the question again.
Draft or live
The Playground uses the draft version of the agent, so you can test changes before publishing. A label above the chat shows which version you are using. Compare with the live agent by switching the label to Published. See versions.
Test as a specific person
Select Test as contact to run the chat with a contact's attributes, such as plan or country, so procedures that depend on them behave as they would for that customer.
Note: Actions run for real in the Playground. A Custom action calls your API, and an escalation creates a Helpdesk ticket. Mark test tickets Solved afterward.
Keep what works
Select Save as test under any answer to turn the conversation into a test. Tests replay automatically before you publish, so a good answer stays good. See tests.
Share a conversation
Select Share to copy a link for a teammate who is in your workspace. They see the same trace, which makes a bug report easier to act on.