AI Tests
Create a test agent
Changed onCreates a test agent in your organization. The agent wraps a Telnyx AI assistant so simulated callers can be sent against it.
post/ai/tests/test_framework/v1/aiagents
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/ai/tests/test_framework/v1/aiagents
- Auth: HTTP bearer
Request body
Example request
{
"agent_name": "Support Bot Under Test",
"assistant_id": "e1a2b3c4-d5e6-f7a8-b9c0-d1e2f3a4b5c6",
"description": "Evaluates the support assistant against generated callers.",
"language": "en",
"llm_model": "openai/gpt-oss-120b",
"llm_temperature": 0.7,
"llm_max_tokens": 512,
"inbound": false,
"sip_endpoint": "",
"outbound_auto_call": false,
"auto_update_dropoff_nodes": false,
"auto_update_topic_nodes": false
}Response
Test agent created.
Example response
{
"id": 1259,
"agent_name": "Support Bot Under Test",
"contact_number": "+13125550123",
"inbound": false,
"description": "Evaluates the support assistant against generated callers.",
"language": "en",
"assistant_id": "e1a2b3c4-d5e6-f7a8-b9c0-d1e2f3a4b5c6",
"chat_assistant_id": "",
"llm_system_prompt": "You are calling a customer support line.",
"llm_model": "openai/gpt-oss-120b",
"llm_temperature": 0.7,
"llm_max_tokens": 512,
"outbound_auto_call": false,
"sip_endpoint": "",
"sip_auth": null,
"knowledge_base_files": [],
"enabled_personalities": [
4567
],
"auto_update_dropoff_nodes": false,
"auto_update_topic_nodes": false,
"hallucination_metric_kb_files": [],
"outbound_numbers": [],
"created_at": "2026-10-13T18:04:05.123456Z",
"updated_at": "2026-10-13T18:04:05.123456Z"
}Changes
- info
endpoint added
- info