How can I get my NPC to read a specific text or play a specific audio?

Original Discord Post by macarena_72879 | 2024-09-17 08:48:25

Hello! I’m new to Convai, and I see that it works perfectly when the player talks to the NPC. However, I would like to pass a specific text to the NPC (or audio) and have it automatically read it, without waiting for the player to speak. I can’t seem to find a way to do this, and I’m not sure if it’s possible or if it makes sense to use Convai for this. Thanks!

Reply by k3kalinix | 2024-09-17 14:44:07

Hello <@1212357990707888128>,

Reply by k3kalinix | 2024-09-17 14:44:41

Welcome to Convai Community!

Reply by k3kalinix | 2024-09-17 14:46:35

Yes, you can do this using our Narrative Design Feature.

Documentation:

Playlist:

Unity Narrative Design Documentation

Embedded Content:
Narrative Design | API Docs
Master narrative design with Convai’s character creator tool. Create engaging AI-driven stories.
Link: Narrative Design | Documentation


Narrative Design - Narration Design Flow
Link: https://www.youtube.com/watch?v=C0JdmBTmZ9g

Adding Narrative Design to your Character | API Docs
Follow this guide to incorporate Narrative Design into your Convai-powered characters. Follow this step-by-step tutorial, open your project, and let’s begin!
Link: Adding Narrative Design to your Character | Documentation

Reply by macarena_72879 | 2024-09-17 15:04:19

Thank you!! I’m almost there… this is the design flow of my narrative (it’s simple… I’m just trying things out), but it’s not working the way I really want. When I click Play in the unity editor, nothing happens. I have to approach the character and click on him so that he starts talking automatically.

Is there something that should change? Or does it only work like this in the Unity editor? Or is there a better phrase for this specific case that I can say to the AI? Many thanks for everything! Your Asset is wonderful!

Images:

Reply by k3kalinix | 2024-09-17 15:05:04

Did you check our Unity Narrative Design Documentation?

Reply by k3kalinix | 2024-09-17 15:05:53

In the message section, add what you want the character to say.

Reply by k3kalinix | 2024-09-17 15:06:08

Make sure to add Narrative Design Trigger Component

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