https://retellai.com/?utm_source=discord&utm_medium=seo logo
i want to know why the chat agent not responding w...
# ❓・ai-evy-support
s
@AI Evy i want to know why the chat agent not responding when i connect with the number
a
Thanks for tagging me @santoshsingh212e_48455. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there are a few common reasons why a chat agent might not respond when you connect with a number: 1. Phone Number Configuration Issues Your phone number needs to be properly configured with an agent. For inbound calls, ensure your number has an
inbound_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) ]() :
Copy code
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 :
Copy code
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"]
  }
}
3. Check Your Call Logs Review your call logs in the dashboard to see if there are any errors during the call . This can help identify whether the issue is with the LLM, microphone, or configuration . If you continue experiencing issues after checking these configurations, I'd recommend: - Verifying your agent's prompt doesn't contain anything that would stop the LLM from responding - Checking which LLM you're using (GPT-4 is recommended) - Reviewing the call recordings and transcripts for any error messages For additional support: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[3] When I am calling the agent is not responding](https://discord.com/channels/1186424376300679209/1402701293633667252) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
even the chat id is not created and logs are not present in the retell ui
@AI Evy even the chat id is not created and logs are not present in the retell ui
a
Thanks for the follow-up, @santoshsingh212e_48455. I'll get back to you soon.
### Answer If the chat ID is not being created and no logs appear in the Retell UI, this indicates the chat session never started successfully [(1) ]() [(2) ]() . Here are the most likely causes: 1. Chat Creation API Call Failing The chat must be created via the Create Chat API endpoint [(1) ]() . Verify your API call includes the required
agent_id
parameter :
Copy code
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) ]() :
Copy code
javascript
const chatResponses = await client.chat.list() ;
console.log(chatResponses) ;
If no chats appear when listing, the chat creation is definitely failing before reaching Retell's system . Since you mentioned connecting with a number, note that chat agents work differently from phone agents - they require explicit API calls to create chat sessions [(1) ]() [(3) ]() . If you're trying to initiate a chat via SMS, you need to use the Create Outbound SMS endpoint instead [(3) ]() . For additional support: - Visit [Contact Sales]() - Visit [)
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Chat](https://docs.retellai.com/api-references/create-chat) [[2] List Chat](https://docs.retellai.com/api-references/list-chat) [[3] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) ​