# Script that handles Responses for ConvaiNPC?

**URL:** <https://forum.convai.com/t/script-that-handles-responses-for-convainpc/3177>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [March 6, 2025, 12:41pm UTC](https://forum.convai.com/t/script-that-handles-responses-for-convainpc/3177 "2025-03-06T12:41:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan\_Suaris1](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/dylan_suaris1/32/3284_2.png) [@Dylan\_Suaris1](https://forum.convai.com/u/Dylan_Suaris1)\
**Post date:** [March 6, 2025, 12:41pm UTC](https://forum.convai.com/t/script-that-handles-responses-for-convainpc/3177/1 "2025-03-06T12:41:15Z")

</div>

Hey Team!,

I was wondering if there is a script that handles responses for the ConvaiNPC.

Essentially what I am looking for is.. when I speak to my convai bot.. which script handles generating of the response and sending BEFORE the bot speaks it out.

Hoping someone can help out with this!

Thanks!

---

<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:** [March 11, 2025, 12:30pm UTC](https://forum.convai.com/t/script-that-handles-responses-for-convainpc/3177/2 "2025-03-11T12:30:53Z")

</div>

Hello @Dylan_Suaris1,

You can take a look at the **`ConvaiGRPCAPI.cs`** script. It handles the core logic related to generating and sending responses.

In general, the folder you’ll want to explore is:  
**`Assets\Convai\Scripts\Runtime\Core`**

Let us know if you need more guidance!

---

<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:** [April 10, 2025, 12:30pm UTC](https://forum.convai.com/t/script-that-handles-responses-for-convainpc/3177/3 "2025-04-10T12:30:55Z")

</div>

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