Custom Action

Original Discord Post by lightmerxi | 2024-07-23 07:54:35

Hey, question, if I wanted to setup an action where once the user asks a question (not word for word) but similar, it would open up an image in unity. Any idea if this is possible? Or should I look into doing it without convai? Please let me know your opinions. Would be great if the solution you come up with works 10/10 times.

Reply by k3kalinix | 2024-07-23 21:47:36

<@&1163218322200989806>

Reply by enormousvampire | 2024-07-24 08:34:36

yeah, you can do this using actions from Convai. so let me paint you a scenario. Suppose you want to open an image. So make a new action called open image. Add it in the actions list. then any time you say to the NPC that show me the image or open the image or take me to the image it will give you the response for that particular action which was called open image. Once you get that action you can map it to your desired behaviour. All you need to do is just write the function body. What you want to do when you receive that action. <@1023671043287699568> can you link our action video so he has a proper idea of how to add a new action and write the methods, and it gets called automatically when we receive actions from our server

Reply by k3kalinix | 2024-07-24 08:36:56

Action Video: https://youtu.be/rjZ7VdZhoTU?si=0wcUhqMaWQx9NN46
Documentation: Adding Actions to your Character | Documentation

Embedded Content:
Make 3D AI Characters Act on Your Command | Scene Aware Characters …
In this video, we’ll guide you on helping your Convai-powered AI NPCs navigate complex verbal instructions and convert them into natural animations within the Unity Engine. Enhance your virtual world and game development by giving your 3D avatars in Unity the ability to perform intelligent actions with ease, perceive their surroundings, and conv…
Link: https://www.youtube.com/watch?v=rjZ7VdZhoTU


Adding Actions to your Character | API Docs
Follow these instructions to enable actions for your Convai-powered characters.
Link: Adding Actions to your Character | Documentation

Reply by lightmerxi | 2024-07-24 09:07:22

Thank you :))

This conversation happened on the Convai Discord Server, so this post will be closed.