Test an AI agent
test_agentAsk an AI agent a question as a customer would, in a private preview no customer sees, whether or not it is deployed, and wait (up to about 25 seconds) for its answer. It never deploys the agent. With pending: true, read the answer with list_messages after a few seconds; don't ask again. When stillLearning is set, Aide is still reading the website and found nothing yet: tell the user, ask them meanwhile for the facts customers ask most and save each with add_knowledge_article, and test again after the minutes it gives. When sources is empty otherwise, the agent found nothing to answer from: add it with add_knowledge_article and test again. Show the user the reply; ask follow-ups with continue_agent_test.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"text": "<text>"
},
"name": "test_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The customer's message. | |
| agentId | Yes | The agent id, from list_agents. | |
| country | No | Test as a shopper on that country's storefront (two letters, "GB"), for a Shopify store whose markets sell different products: the agent offers only that market's. Kept for the whole test. | |
| customer | No | Test as an identified shopper, as the widget would identify them: `{ name, email, attributes }`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reply | Yes | ||
| pending | Yes | ||
| sources | Yes | ||
| handedOver | Yes | ||
| stillLearning | Yes | ||
| conversationId | Yes |