NPC's not respecting player name

Original Discord Post by vr_jay | 2024-09-09 18:23:48

My NPC’s are not respecting the player name set in the ConvaiPlayerDataSO. If I ask them who I am or what my name is, they do not have any idea. I do have a ConvaiPlayerDataHandler in my scene that references the DataSO in the resources folder. Using Unity. Thanks for any help!

Reply by k3kalinix | 2024-09-09 19:50:21

Hello <@279268394749001728>,

Reply by k3kalinix | 2024-09-09 19:53:46

Please select your character at convai.com, then change it in the Character name section.

Images:

Reply by vr_jay | 2024-09-09 19:57:33

Thanks for the response. I was wondering about setting a user name for the NPC’s to reference the user by. Is there any way to do that without a prompt? The character name works for me, but I am wondering about player name. Player Data Container | Documentation

Embedded Content:
Player Data Container | API Docs
All the information that Convai SDK needs from the player to work properly
Link: Player Data Container | Documentation

Reply by k3kalinix | 2024-09-09 20:00:34

Oh sorry, I misread it.

Reply by k3kalinix | 2024-09-09 20:02:16

This Player Name is for visual purposes only. It appears in the ChatUI.

Reply by k3kalinix | 2024-09-09 20:06:10

Embedded Content:
Character API | API Docs
All the relevant APIs needed to create your own intelligent AI characters with Convai.
Link: Character Base API | Documentation

Reply by k3kalinix | 2024-09-09 20:07:27

You can change the character’s backstory in runtime for this case.

Reply by vr_jay | 2024-09-09 20:08:04

If I update a character using the character API, does that change it for that instance, or does it change it for every subsequent use?

Reply by k3kalinix | 2024-09-09 20:09:12

All your characters that use this character ID will be affected.

Reply by vr_jay | 2024-09-09 20:13:37

If I use the character API to make a change during Player 1’s session on their device, would Player 2 also see that change when they engage with the same character on a separate device?

Reply by k3kalinix | 2024-09-09 20:14:37

Yes

Reply by vr_jay | 2024-09-09 20:16:31

Is there any way to make changes on the character that are only for that session?

Reply by k3kalinix | 2024-09-09 20:25:08

For now, no.

Reply by vr_jay | 2024-09-09 20:25:29

Any plans for that? And thanks for answering my questions.

Reply by k3kalinix | 2024-09-09 20:27:15

No, but I can add it as a Feature Request. If you would like to prioritize, you can contact our sales team via this link to discuss Partnership plans.

Calendy Link: Calendly - Convai Team

Embedded Content:
Let’s chat! - Convai Team
Sign up for a friendly conversation where we can discuss your use case and answer your questions. For technical help, please join our Discord channel. We’d love to explore how Convai can help you achieve your goals.
Link: Calendly - Convai Team

Reply by vr_jay | 2024-09-09 20:32:12

Ok. Thanks again for the help.

Reply by vr_jay | 2024-09-09 20:32:55

And it would be great if you can add it as a feature request. Thanks!

Reply by k3kalinix | 2024-09-09 20:37:32

Sure.

Reply by drippingfist | 2024-10-07 03:34:10

Quick question to clarify this. Is there no way to SET the player’s name? We will have 2 concurrent sessions and the players enter their name on a keyboard at the start of the game. Can’t that be passed as a variable into the character’s chat? We’re using Unity.