curl --request POST \
--url https://app.kapso.ai/api/v1/agents/{agent_id}/test_chats \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"message": "I need help with my order",
"agent_test_chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "processing",
"conversation": [
{
"role": "user",
"content": "<string>"
}
],
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Initiates a test conversation with the specified agent
curl --request POST \
--url https://app.kapso.ai/api/v1/agents/{agent_id}/test_chats \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"message": "I need help with my order",
"agent_test_chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "processing",
"conversation": [
{
"role": "user",
"content": "<string>"
}
],
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
API key required for all endpoints
Test chat initiated
The response is of type object
.
Was this page helpful?