I’m integrating Convai Narrative Design into my Unreal Engine 5 project for an AI character. Here’s the specific task I want to implement:
The AI character should respond when the user says something like “I want to change the theme” or “Can you change the theme?” with:
“I have these themes: Theme Red, Theme Green, and Theme Purple. Which one would you like to activate?”
When the user chooses a theme (for example, “Theme Red”, “Theme Green”, or “Theme Purple”), the AI should respond exactly with:
“Activating Theme Red”
“Activating Theme Green”
“Activating Theme Purple”
The AI must use verbatim responses (no generative variation) using Convai’s syntax.
Help me set up this flow in Narrative Design, i dont know the triggers correctly.
For this character, he currently always says: “Hello! It’s your first day in the office today, right? Are you ready for an on-ground tour of the facility?”
However, I would like to change this behavior.
This is not a game – I am creating an interactive AI character designed to engage with users naturally. The character should converse normally and dynamically, rather than repeating the same scripted line every time.
The character should only mention ambient lighting or his ability to change the ambient theme if the user specifically inquires about ambient lighting or asks about his abilities. At that point, he can mention that he can change the ambient theme as part of his features.
How can I set up a trigger to achieve this behavior?
To achieve the behavior you’re aiming for, you’ll want to carefully revise your character’s Description to reflect the desired interaction style. Make sure to avoid overly scripted language and instead focus on outlining natural conversational traits and conditional responses. You can review Sample Characters in the dashboard to see examples of effective descriptions.
Additionally, in Narrative Design, ensure your Decisions are clearly and unambiguously written. The NPC should only transition to specific responses like discussing ambient lighting when explicitly asked about it.
It’s common to iterate using a trial-and-error process, so test frequently and refine both your character’s description and narrative design as needed.