flat-fuchsia
flat-fuchsia16mo ago

user name in the transcripts

I use user_name as a variable. I made all the integrations accordingly. But now it only shows "test user" in the transcripts. How can I make user_name? Please help someone who doesn't know how to code. Why are these basic things so difficult? I tried many chatbots. yes voiceflow is good. But even some simple things that should be easy are very complicated.
4 Replies
Tico | Voiceflow Assistant
To display a custom user name in the transcripts instead of "test user", you need to create and set a variable in your Voiceflow project. Here's a step-by-step guide on how to do this: 1. Create a variable: In your Voiceflow project, navigate to the 'Variables' tab on the left-hand side. Click on 'Create Variable' and name it user_name. This will be the variable that will hold the custom user name. 2. Set the variable: You can set the user_name variable with a value from your chatbot's event payload. To do this, you'll need to use a 'Code' step in your Voiceflow project. In the 'Code' step, you can write a simple JavaScript code to set the user_name variable. Here's an example:
variables.user_name = event.payload.username;
variables.user_name = event.payload.username;
In this code, event.payload.username is the user name from your chatbot's event payload. This value will be assigned to the user_name variable. 3. Use the variable: Now that you've set the user_name variable, you can use it in your Voiceflow project. For example, you can use it in a 'Speak' step to personalize the chatbot's responses. Please note that the user_name variable needs to be created and set before it's used in your Voiceflow project. Also, the variable's value will only persist for the duration of the user's session. As for why these tasks might seem complicated, it's because Voiceflow is a powerful tool that offers a lot of flexibility and customization options. This can make some tasks seem more complex than they are in simpler chatbot platforms. However, once you get the hang of it, you'll find that Voiceflow allows you to create more sophisticated and personalized chatbot experiences. For more information, you can refer to the Voiceflow documentation here and here.
wise-white
wise-white16mo ago
👋 Hey, @Muzo. Did you manage to figure it out? I'm having the same issue.
flat-fuchsia
flat-fuchsiaOP16mo ago
no i couldn't ((( Unfortunately, I cannot find answers to any of my questions. I did not receive any support. Voiceflow team don't care
rival-black
rival-black16mo ago
Don't be unfair. Tico is saying something. The solution is not important )) It says something

Did you find this page helpful?