Testing
Try your agent in the live preview, and run saved sets of customer messages that are answered and scored automatically.
Test your agent before customers see a change. There are two ways.
Quick test in the live preview
Open your agent's Overview. The right side shows your real widget on top of your website. Open the chat and ask questions the way a customer would. Switch between Mobile and Desktop to check how it looks.
A good test set includes questions your content answers, the same questions worded differently, and questions it should not answer. Retest after changing sources, instructions, or the model.
Simulations
Testing, under AI Agent, runs a whole list of customer messages at once and scores every answer from 1 to 5.
Create a dataset
- Select Create Dataset and give it a name, such as "Shipping questions".
- Add messages in one of three ways:
- Paste messages, with a line containing only
---between messages. - From recent conversations, picking real customer messages from the last 30 days.
- Upload CSV. With several columns, name the message column
message.
- Paste messages, with a line containing only
- Optionally adjust Evaluation criteria, for example "must mention our 3–5 day shipping time".
- Select Create.
A dataset holds up to 100 messages, and each agent can keep up to 50 datasets.
Run it
Open a dataset, select Run, check how many credits it will use, and select Start Run. The run continues in the background. Each message gets the agent's reply, an AI Score with a short Justification, and a View with the sources used.
To correct an answer, select Fix this answer to save it as a Q&A answer, then Run again.
What a run never does
A run never hands off to your team, sends emails or notifications, calls your webhooks, or changes orders. It never appears in your Inbox, Contacts, or Analytics. When the agent would have taken an action, the details show Would have used: and the action's name.
Each message is answered as a new conversation, so test back-and-forth conversations in the live preview.
Credits
Each answered message uses the same credits as a live message with your agent's model. A message answered by a Q&A pair uses 1 credit. Scoring is free, and messages that fail or don't run are not charged.
Troubleshooting
Run is greyed out. Another run is going for this agent, or the dataset has no messages. Wait, or select Stop run.
"Your agent has not finished training yet." Runs start once training is done.
"You do not have enough credits for this run." Remove some messages, or add credits from Plan & billing.
"No message column found". Rename the CSV column that holds your messages to message.
I can't create datasets. You need permission to edit the agent. Teammates who can only view it can still read results.