Hello Chris,
If you're using the Database.set function to add participant data, then this is sent with the first message the customer sends after it was executed.
To send this again if the customer starts a new chat, depends on what features you're using.
If you're using the Disconnect feature, you could probably listen for the conversation ended event, and in that case set the variables again.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
------------------------------
Original Message:
Sent: 12-22-2023 08:39
From: Chris Peddie
Subject: Refresh/Update/Renew Web Message Attributes from WebSite
I've implemented a Web Message flow, where user attributes are passed from the snippet scripts into the flow using a Get Participant Data block. This works fine upon first connection, however, if the user ends the chat and restarts a new conversation, the 2nd chat doesn't pull the attributes through and they remain blank.
Is there a method or event I can use that will allow this data to update or refresh for each conversation with the user?
Another use for this would be an example would be to check if the user is logged into the webpage, if not the attribute is set as "IsUserLoggedIn:False" which the digital bot would then ask the user to Log in. This would update the attribute to "IsUserLoggedIn:True" but within the message flow, the Get Participant Data remains with the first value presented. Again, is there a method or event that I could use to update this data within my flow?
Thanks
#DigitalChannels
------------------------------
Chris Peddie
Sabio Ltd
------------------------------