# Pass string input manually (Unity)

**URL:** <https://forum.convai.com/t/pass-string-input-manually-unity/2791>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [February 3, 2025, 4:53pm UTC](https://forum.convai.com/t/pass-string-input-manually-unity/2791 "2025-02-03T16:53:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Martinic](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/lucas_martinic/32/2962_2.png) [@Lucas\_Martinic](https://forum.convai.com/u/Lucas_Martinic)\
**Post date:** [February 3, 2025, 4:53pm UTC](https://forum.convai.com/t/pass-string-input-manually-unity/2791/1 "2025-02-03T16:53:03Z")

</div>

Hi! First, thanks for the app. Im looking into using Convai but I want a simple setup where I can pass my own text as input (I do my own STT) directly to the avatar. Also I want to implement my own chat canvas. Can you give me some direction?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Bob\_Hawkey](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/bob_hawkey/32/2673_2.png) [@Bob\_Hawkey](https://forum.convai.com/u/Bob_Hawkey)\
**Post date:** [February 3, 2025, 6:12pm UTC](https://forum.convai.com/t/pass-string-input-manually-unity/2791/2 "2025-02-03T18:12:23Z")

</div>

There is a command you can send to the character with the ConvaiNPC script on it with a Unity event. It’s called ‘Send text data async’ or something. To have it repeat back exactly what you send the format for the string would be: ‘Repeat the following exactly as it is: your text here’. I hope that’s it. If it doesn’t work I may have gotten the string wrong but it is what I remember.

---

<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:** [February 3, 2025, 6:50pm UTC](https://forum.convai.com/t/pass-string-input-manually-unity/2791/3 "2025-02-03T18:50:28Z")

</div>

Hello @Lucas_Martinic,

In **ConvaiNPC.cs** , you can use the **SendTextDataAsync** method to send **text input** directly to the character.

You can also create your own **Chat UI** , but if your Convai plan is **below the annual Scale Plan** , you won’t be able to remove the **Convai logo**.

Building a custom Chat UI requires **general Unity knowledge**. For details on **Convai’s Transcript UI** , refer to this documentation:

[Convai Transcript UI Documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/utilities/transcript-ui-system)

@Bob_Hawkey , thanks for your help as well! 😊

---

<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:** [March 5, 2025, 6:50pm UTC](https://forum.convai.com/t/pass-string-input-manually-unity/2791/4 "2025-03-05T18:50:36Z")

</div>

Closed on March 5, 2025, 6:50pm UTC

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