I am implementing web bot and I want to set the name of user at starting in flow xo default values @User Name. How can I do this?
Can I set User Name in web bot?
@himanshuteotia. The username, first name and last name etc are attributes that are always available in the metadata.
I want to know how do I set them because for web version we don’t have user name. So what I want to do here is get the name from the user and set it into the User Name.
You can create your own Attribute to store a user’s name. To get the information from them you’ll need to Ask a Question.
Actually, I don’t want to create my attribute as I’m using the same flow for messenger and for web. So I just want to set the value of User Name field if the platform is web.
Since username isn’t available on Web Messenger you may want to stick with using an attribute for both so that if Facebook Messenger is used their username from the bot can be set as the value of your custom username attribute but if they’re using web messenger then you set it to your own value.
You could have two set attribute actions that are filtered on the bot name or bot platform.