santoshsingh212e_48455
10/27/2025, 9:22 AMAI Evy
10/27/2025, 9:23 AMAI Evy
10/27/2025, 9:23 AMinbound_agent_id set [(1) ]() . If this is null, the number will not accept inbound calls .
You can update your phone number configuration to bind an agent [(2) ]() :
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
2. Invalid Function Schema
A common issue reported in the community is an invalid JSON schema for custom functions [(3) ]() . If you see an error like "Failed to get response from any LLM provider: 400 Invalid schema for function", your function schema must have type 'object' and not have 'oneOf'/'anyOf'/'allOf'/'enum'/'not' at the top level .
The correct function schema format should be :
javascript
{
"name": "check_customer",
"description": "Check customer information",
"parameters": {
"type": "object",
"properties": {
"customer_id": {
"type": "string",
"description": "The customer ID to check"
},
"phone_number": {
"type": "string",
"description": "Customer phone number"
}
},
"required": ["customer_id"]
}
}AI Evy
10/27/2025, 9:23 AMAI Evy
10/27/2025, 9:23 AMAI Evy
10/27/2025, 9:23 AMsantoshsingh212e_48455
10/27/2025, 10:04 AMsantoshsingh212e_48455
10/27/2025, 10:04 AMAI Evy
10/27/2025, 10:04 AMAI Evy
10/27/2025, 10:05 AMagent_id parameter :
javascript
const chatResponse = await client.chat.create({
agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
2. Authentication Issues
Ensure your API key is correctly formatted in the Authorization header as "Bearer YOUR_API_KEY" . Without proper authentication, the API request will fail and no chat will be created .
3. Agent Configuration
The agent must be configured for chat mode [(3) ]() . If the agent is only configured for voice calls, it won't handle chat sessions .
4. Check API Response
When you call the Create Chat endpoint, you should receive a response with a chat_id and chat_status of "ongoing" [(1) ]() . If you're not receiving this response, check for error codes (400, 401, 422, 500) .
5. Verify Using List Chat
Try calling the List Chat endpoint to see if any chats exist [(2) ]() :
javascript
const chatResponses = await client.chat.list() ;
console.log(chatResponses) ;AI Evy
10/27/2025, 10:05 AMAI Evy
10/27/2025, 10:05 AMAI Evy
10/27/2025, 10:05 AM