# Why Can't I Talk To NPCs In My Unity Project

**URL:** <https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [May 11, 2025, 2:46pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894 "2025-05-11T14:46:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![2413967556](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/2413967556/32/3838_2.png) [@2413967556](https://forum.convai.com/u/2413967556)\
**Post date:** [May 11, 2025, 2:46pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/1 "2025-05-11T14:46:46Z")

</div>

Hi team

I’m currently integrating Convai’s AI NPC system into my Unity project. Things were working earlier, but after some recent changes, every time I try to talk to the NPC (via key ‘T’), the Unity Editor pauses execution, and I get no response from the character. It shows I have run out of usage, but I already subscribe after this error shows. Below are the full error logs I’m seeing:

error：  
NullReferenceException while executing ‘performed’ callbacks of ‘Player/Talk[/Keyboard/t]’  
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/\<\>c\_\_DisplayClass7\_0:\<set\_onUpdate\>b\_\_0 (UnityEngineInternal.Input.NativeInputUpdateType, UnityEngineInternal.Input.NativeInputEventBuffer\*)  
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType, intptr)

Convai.Scripts.Runtime.UI.ConvaiCrosshairHandler+\<\>c\_\_DisplayClass5\_0.b\_\_0 (System.Collections.Generic.KeyValuePair`2[TKey,TValue] kvp) (at Assets/Convai/Scripts/Runtime/UI/CanvasItems/ConvaiCrosshairHandler.cs:62) System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext ()

[Error][Character]: Grpc.Core.RpcException: Status(StatusCode=Cancelled, Detail=“Cancelled”)  
at Grpc.Core.Internal.ClientResponseStream`2[TRequest,TResponse].MoveNext (System.Threading.CancellationToken token)  
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ReceiveResultFromServer (…)  
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI+\<\>c\_\_DisplayClass36\_0.b\_\_0 ()  
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.SendTriggerData (…)

All I want is to be able to talk to NPCS. Hope to hear from you guys soon. Thx

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [May 11, 2025, 2:58pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/2 "2025-05-11T14:58:48Z")

</div>

Hello @2413967556,

Could you please share screenshots of all errors?

---

<div class="post-metadata">

**Author:** ![2413967556](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/2413967556/32/3838_2.png) [@2413967556](https://forum.convai.com/u/2413967556)\
**Post date:** [May 11, 2025, 3:24pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/3 "2025-05-11T15:24:11Z")

</div>

![issue1](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/7/77c0eb4600a59a2ff3589c5f6c30ef616fa07bee.png)  
here‘s the only error that it shows right now. Now the mic work, and shows what I said in the chatbox, but still do not hear back from the NPC.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [May 11, 2025, 3:32pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/4 "2025-05-11T15:32:11Z")

</div>

Could you please share your character ID?

---

<div class="post-metadata">

**Author:** ![2413967556](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/2413967556/32/3838_2.png) [@2413967556](https://forum.convai.com/u/2413967556)\
**Post date:** [May 11, 2025, 3:35pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/5 "2025-05-11T15:35:57Z")

</div>

It’s a0d1b15c-136b-11f0-a61f-42010a7be01a

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [May 11, 2025, 3:39pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/6 "2025-05-11T15:39:29Z")

</div>

It works as expected. I think you changed something by mistake.  
I suggest you re-import the Convai SDK. Open the package manager and import Convai. It will replace the scripts with the default Convai Scripts.

---

<div class="post-metadata">

**Author:** ![2413967556](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/2413967556/32/3838_2.png) [@2413967556](https://forum.convai.com/u/2413967556)\
**Post date:** [May 11, 2025, 3:51pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/7 "2025-05-11T15:51:10Z")

</div>

I just tried, it do not shows any error right now, but it still do not interactive with the user.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [May 11, 2025, 4:00pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/8 "2025-05-11T16:00:29Z")

</div>

I don’t see any problem on our side and the character is responding without any problem. I believe it’s something related to your project. Please test it on our demo scene.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)\
**Post date:** [June 10, 2025, 4:00pm UTC](https://forum.convai.com/t/why-cant-i-talk-to-npcs-in-my-unity-project/3894/9 "2025-06-10T16:00:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
