# Animation integration

**URL:** <https://forum.convai.com/t/animation-integration/2402>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [January 9, 2025, 5:59am UTC](https://forum.convai.com/t/animation-integration/2402 "2025-01-09T05:59:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Pandya](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/abhishek_pandya/32/2720_2.png) [@Abhishek\_Pandya](https://forum.convai.com/u/Abhishek_Pandya)\
**Post date:** [January 9, 2025, 5:59am UTC](https://forum.convai.com/t/animation-integration/2402/1 "2025-01-09T05:59:37Z")

</div>

I want to add Animation Like yoga and other emotes in my project using convai and cc4 character’s so please help me how to do it

---

<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:** [January 9, 2025, 10:00am UTC](https://forum.convai.com/t/animation-integration/2402/2 "2025-01-09T10:00:55Z")

</div>

Hello @Abhishek_Pandya,

**Welcome to the Convai Developer Forum!**

Convai does not have any visual dependencies, so you can add animations like yoga or other emotes just as you would in a standard Unity project. Simply import your animations and modify your character’s current **Animator Controller** to include new states or replace existing ones like Idle or Walk. The implementation is entirely up to your project design.

We recommend checking out online resources and tutorials for additional guidance on working with animations in Unity.

Additionally, we have a video about **[CC4 Character Integration](https://youtu.be/va-qyFa312g?si=SN0DhRmpi5LYUwXu)** that might be helpful.

Feel free to reach out if you have more questions! 😊

---

<div class="post-metadata">

**Author:** ![Abhishek\_Pandya](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/abhishek_pandya/32/2720_2.png) [@Abhishek\_Pandya](https://forum.convai.com/u/Abhishek_Pandya)\
**Post date:** [January 9, 2025, 10:07am UTC](https://forum.convai.com/t/animation-integration/2402/3 "2025-01-09T10:07:50Z")

</div>

i did check your additional guidance video but i want to play action event of convai on button click by user so how can i do that

---

<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:** [January 9, 2025, 10:12am UTC](https://forum.convai.com/t/animation-integration/2402/4 "2025-01-09T10:12:24Z")

</div>

In this case, you don’t necessarily need to use Convai to trigger an action event on a button click. Convai generates an action response when an audio or text input is sent to the character.

For your case, you can simply create a Unity **UI Button** in your scene and add the desired action to the **OnClick** event of the button.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Pandya](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/abhishek_pandya/32/2720_2.png) [@Abhishek\_Pandya](https://forum.convai.com/u/Abhishek_Pandya)\
**Post date:** [January 9, 2025, 10:15am UTC](https://forum.convai.com/t/animation-integration/2402/5 "2025-01-09T10:15:30Z")

</div>

but i want chracter to respond like if user press the button do yoga then character will say somethings about yoga and then play animaiton

---

<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:** [January 9, 2025, 2:44pm UTC](https://forum.convai.com/t/animation-integration/2402/6 "2025-01-09T14:44:15Z")

</div>

To achieve this, you can access the **ActiveConvaiNPC** and call the `SendTextDataAsync` method, passing your desired action as a parameter. Please make sure to define your custom action properly.

For more details, refer to our **[Action Video](https://youtu.be/rjZ7VdZhoTU?si=QlXC3ud8YZ_Vhcgi)** and [documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/adding-actions-to-your-character). If you’re only looking to play an animation, the “Dance Action” example provided in our resources will be particularly helpful.

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/2/2f5e83b217116b13803e99e614ff6c237475c2bf.png)

---

<div class="post-metadata">

**Author:** ![Abhishek\_Pandya](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/abhishek_pandya/32/2720_2.png) [@Abhishek\_Pandya](https://forum.convai.com/u/Abhishek_Pandya)\
**Post date:** [January 10, 2025, 3:12am UTC](https://forum.convai.com/t/animation-integration/2402/7 "2025-01-10T03:12:51Z")

</div>

this will work in normal case but i want this emotes to bee premium feature that only if you puchase emotes pack then only you can play it , but in this i can also type in chat and ask to perorm dance or yoga with out any purchase

---

<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:** [January 10, 2025, 9:41am UTC](https://forum.convai.com/t/animation-integration/2402/8 "2025-01-10T09:41:39Z")

</div>

Thank you for providing these details—sharing such requirements upfront helps us offer better guidance.

Unfortunately, we do not have a built-in solution to support premium features like this directly. Since this involves a custom implementation, we recommend experimenting with your own logic.

A simple approach might be to include an **if** condition before triggering the action to check for a purchase. However, note that the character might still respond as though it can perform the action, even if the purchase hasn’t been made.

For this type of custom functionality, you would need to handle both the action restriction and the chatbot’s response logic in your implementation.

---

<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:** [January 12, 2025, 9:42am UTC](https://forum.convai.com/t/animation-integration/2402/9 "2025-01-12T09:42:30Z")

</div>

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