NPC takes around 10 seconds to response. How I can decrease the response time

We use a short backstory and narrative design for our NPC. but response time is a problem for us. also, sometimes I saw a message box that said not close enough to the character when I am close to the NPC and talking to him. Please help us to figure out the cause. My character id is (9914db78-e4aa-11ef-add8-42010a7be016).


Hello @Sandip_Radadiya,

Sorry to hear you’re experiencing these issues. To better understand the cause, could you provide more details?

Response Time:

  • Have you tested your response time in Playground on convai.com? Is it the same there?
  • Could you share Session IDs where you faced this issue?
  • Does the response time remain the same if you create a new character?
  • Are you using a VPN, and how is your internet connection?

“Not close enough” Notification:

  • This message appears if no active character is detected.
  • Try increasing your character’s Collider size and adjusting the Ray Distance / Ray Angle values in ConvaiNPCManager.

Let us know if these steps help or if you need further assistance!

Sadly this is not uncommon. Sometimes depends on the voice chosen and possibly the CoreAI LLM. Not to mention the vagaries of the internet. In my experience the Backstory and Knowledgebase have little to do with it.

Thank you for your reply @K3.

=> My response time on convai platform is less than 5 sec. it’s good.
=> Session ids are “e42f4ca6-e4c3-11ef-a261-42010a7be016”, “e683f358-e4c3-11ef-b8e7-42010a7be016”
=> For the new character, I think the response time is better.
=> No, I am not using VPN and I used it on my wifi connection speed of 30 Mbps, and it’s working pretty well. so, no issues with the internet connection.
=> For the not close enough part I am standing I am talking about when I am in the talking range of the character.

Thanks for letting me know this @Bob_Hawkey . I appreciate the info. I know the LLM affects response time. I will try changing the voice and let’s see if it gets any better.

If your Response Time is low in Playground, then the issue is not character-related.

Could you test the Response Time in Unity Editor (not in a VR device) and let us know how it performs?

Regarding the “Not Close Enough” message, NPCs don’t have a fixed range. Instead, a ray is cast from the player’s camera, and the NPC activates when the ray hits the character’s Capsule Collider. If you turn your head slightly when very close, the ray may not register, causing the NPC to deactivate.

As mentioned before, increasing the Ray Distance / Ray Angle and adjusting the Capsule Collider size should help resolve this issue.

Let us know how it goes!

Sorry for the delay. It took some time but we finally figured this out. We used multiple NPCs to interact with. so sometimes when we looked at other NPCs the ray hit other NPC, so a nearby NPC got out from the conversation, and “Not Close Enough” message appeared and we improved the response time by changing the character voice from the convai platform. Thank you for your assistance @K3 and @Bob_Hawkey.

2 Likes