Firstname, lastname in chat bot

Hi all,

I wanted to know how I can read the values of first name, last name entered by user in chat bot widget and use them inside callflow blocks.

Hello,

To retrieve the attributes set by the customer in the Chat Registration Form (chat widget v2), you can use a "Get Participant Data" action in your Architect flow.
And use:
context.firstName to access your firstName
context.lastName to access your lastName
context.customerId to access your customerId
-> append "context." in front of the name you use on widgets/client side.

Regards,

Thank you, but how can I call Get Participant Data in Genesys intelligent automation? I tried to display variable context.firstName in callflow messages but it returns null.

Sorry - my answer was to get that information from the Architect Chat flow.

Unfortunately, I don't have experience/knowledge on the bots with Genesys Dialog Engine.
But I am not sure the participant data (including context.firstName, context.lastName, ...) is available from the Genesys Dialog Engine at this time.

You could also raise your question in the Genesys Cloud Community. Some may be able to confirm if it is possible or not at this time (as the community is focused on use/configuration of the platform - while this forum is on API & SDKs).

Regards,

thanks a lot for your help

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.