Help Needed with Customizing Chat Appearance and Automated User Greetings

Original Discord Post by marcelsterk | 2024-09-16 19:45:52

Hi everyone, I’m new to Convai and I’m trying to figure out a few things. I’ve searched the documentation and other posts, but I can’t seem to find what I need.

  1. Where can I change the look and feel of the chat, such as making the text smaller or adjusting the colors? Also, I’m curious about how to change the initial greeting text. For example, I want to remove the audio input option and indicate that only text input is allowed.

  2. Where can I find more information on how to make the chatbot automatically welcome users to the environment? I haven’t been able to find this either.

Thanks!

Reply by mighty_brute | 2024-09-17 06:19:22

Hello <@454014247559495683>,

You can customize the chat widget by editing the Chat_WB blueprint in the Convai content directory, where all the widget-related elements are available for modification.

To set up a welcome behavior for your AI character, you can use Narrative Design. I’ll share a link to the documentation to help you set up Narrative Design in Unreal Engine.

Doc link : Narrative Design - Google Docs

Embedded Content:
Narrative Design
This is a simple demo about how to use Narrative Design in Unreal Engine. Below, you can see a simple Narrative Design consisting of 2 triggers: “On Player approach it” and “Reached Monument,” and 3 sections: “Welcome,” “Escort Player to Monument,” and “Speak about the Monument.” For this…
Link: Narrative Design - Google Docs

Reply by marcelsterk | 2024-09-18 06:50:35

Thank you so much for your help! I wanted to provide a bit more context for what I’m trying to achieve (I’ve followed the narrative design tutorials, but I’m unsure how to connect this with Unreal Engine 5.3):

The scenario involves a user entering through a door. The Convai bot walks from a nearby location towards a target point near the entry (I’ve managed to create this part). The bot welcomes the user by triggering the first section ID. Then, the user interacts with the bot, which offers a tour. When the user agrees, the bot registers this and walks toward the first object or target point in the space. As the bot moves, the next section ID is triggered, which says, “Let’s start with object 1.” Upon reaching the target, the bot registers this and proceeds to the next section ID, where it explains the object to the user. The bot then asks if the user has any questions. If there are none, it continues with next section ID, “Let’s move on to the next object, object 2.” This process should repeat for two more objects, after which the tour ends, and the bot stands still, firing off the remaining section IDs.

Reply by marcelsterk | 2024-09-18 06:50:37

Based on this scenario, I have a few additional questions:

  1. How and where should I set up the blueprints to make the character start walking toward a target point that I set within the Unreal environment when a specific trigger ID or section ID occurs?

  2. How do I set up recognition in Convai and Unreal Engine to detect when the bot has reached a specific target location and trigger the next section?

  3. This is important: How can I remove the delay for the bot to start talking? I’ve set up the collision box, but it still takes around 5 to 6 seconds for the bot to begin speaking after the collision is triggered. Is this related to my internet connection? I have good internet!

  4. How can I add a “Good morning,” “Good afternoon,” or “Good evening” to the bot’s dialogue, based on the user’s local time?

  5. I’m encountering errors when baking this into a Windows game. Any advice on how to resolve this?

  6. What should I keep in mind when using this environment for pixel streaming? I plan to host it on Vagon Streams and want to ensure the bot responds quickly and correctly

Reply by marcelsterk | 2024-09-18 14:03:49

Apologies if tagging is not appropriate!

Reply by k3kalinix | 2024-09-18 14:13:29

You don’t need to tag.

Reply by marcelsterk | 2024-09-18 14:31:29

Removed it

Reply by marcelsterk | 2024-09-20 08:35:26

There is a brief update in the quesion I prepared. As some of it is fixed.

Reply by marcelsterk | 2024-09-20 08:35:45

  1. How and where should I set up the blueprints to make the character start walking toward a target point that I set within the Unreal environment when a specific trigger ID or section ID occurs?

  2. How do I set up recognition in Convai and Unreal Engine to detect when the bot has reached a specific target location and trigger the next section?

  3. This is important: How can I remove the delay for the bot to start talking? I’ve set up the collision box, but it still takes around 5 to 6 seconds for the bot to begin speaking after the collision is triggered. Is this related to my internet connection? I have good internet!

  4. How can I add a “Good morning,” “Good afternoon,” or “Good evening” to the bot’s dialogue, based on the user’s local time?

Reply by k3kalinix | 2024-09-20 08:35:47

Reply by k3kalinix | 2024-09-20 08:35:49

Reply by k3kalinix | 2024-09-20 08:35:51

Reply by k3kalinix | 2024-09-20 08:35:53

Reply by k3kalinix | 2024-09-20 08:35:55

Reply by k3kalinix | 2024-09-20 08:35:57

Reply by marcelsterk | 2024-09-20 08:36:32

Thanks for removing them. Can you help me K3?

Reply by k3kalinix | 2024-09-20 08:55:16

Hello <@454014247559495683>,

I’m not a Unreal Engine developer but I can give you some ideas.

2- You can trigger some things by putting a Trigger Collider at the point where the character will arrive.

3- Unfortunately, you can’t start a conversation without delay. But 6 seconds is not normal. It should be around 3 seconds. If you share your Session ID, my teammates can check it.

4- You check the user’s time and you can implement it using the Invoke Speech Function. Documentation

Embedded Content:
Event-Aware Convai Characters | API Docs
This document explains how to make characters respond to events happening in their surroundings with a small example.
Link: Event-Aware Convai Characters | Documentation

Reply by marcelsterk | 2024-09-20 09:41:41

<@1023671043287699568> how to get a session ID? To add clarifying the question. It happens when I start my unreal environment and I have set the convai bot to start the conversation by welcoming the user.

Reply by marcelsterk | 2024-09-20 10:58:17

Actually I found a document Brute shared very useful. Which makes my point 2 no longer needed. Given the document you provided it is only point 3.

Replying to marcelsterk’s Message

Reply by marcelsterk | 2024-09-20 09:41:41
<@1023671043287699568> how to get a session ID? To add clarifying the question. It happens when I start my unreal environment and I have set the convai bot to start the conversation by welcoming the user.

Reply by k3kalinix | 2024-09-20 11:01:39

You can get it on convai.com