Thanks for the additional details. I believe in this case you will need to use the database.set method (suggested earlier) to set the attributes from web site.
Original Message:
Sent: 03-08-2023 16:19
From: Michael Rana
Subject: Web Messenger Integration - Passing custom data into a web message from external source
Here is the use case:
We have members login to our internal secure portal site. Once they log in, the portal session has access to these internal data elements (Member ID, DOB) on page load. These secure portal pages are also where we will host the messenger widget for users to interact with.
What we'd like to do is pass in these custom attributes (MemberID, DOB) to the messenger flow instance for the given interaction, so that we can use these data elements to drive an in-flow data action call to our internal mule service that can return additional data from our core system which we then use to drive things like Salesforce Account pop behavior, queue switching inflow, etc.
For this latter piece (the data action call to our internal service), we already have this built. But now we need to find a way to actually get the Member ID and DOB from our portal session into the Genesys flow for the given interaction to be able to make use of them.
------------------------------
Michael Rana
Capital District Physicians Health Plan, Inc.
Original Message:
Sent: 03-08-2023 15:11
From: Muhammad Zubair Awan
Subject: Web Messenger Integration - Passing custom data into a web message from external source
yes the suggested command is used from hosting site to pass the information.
are you able to elaborate on how are you obtain the MemberID and DOB etc. Are you collecting this information as input from customer during the chat or retrieving this information via Data Action?
------------------------------
Muhammad Zubair Awan
Original Message:
Sent: 03-08-2023 14:53
From: Michael Rana
Subject: Web Messenger Integration - Passing custom data into a web message from external source
Would this be used if we want to pass in data from the hosting site session into a given interaction invoked within that session from the messenger widget? Is there not an endpoint we can POST to for a given web messenger conversation like there is for webchat?
------------------------------
Michael Rana
Capital District Physicians Health Plan, Inc.
Original Message:
Sent: 03-08-2023 14:46
From: Muhammad Zubair Awan
Subject: Web Messenger Integration - Passing custom data into a web message from external source
Hi,
you can use the database.set command to set custom attributes
Cheers
------------------------------
Muhammad Zubair Awan
Original Message:
Sent: 03-08-2023 14:31
From: Michael Rana
Subject: Web Messenger Integration - Passing custom data into a web message from external source
Hi,
We are embedding/hosting a web messenger deployment on our internal portal. We'd like to be able to pass custom data into the give message interaction (i.e. MemberID and DOB), so that we can utilize this data within the associated messenger flow to drive things like screenpops, participant data setting, etc.
The API Explorer only lists one endpoint for web messenger, and only one command (GET /api/v2/webmessaging/messages).
What is the appropriate endpoint for posting a payload with custom data into the given web messenger interaction?
Thanks,
Mike
#Integrations
------------------------------
Michael Rana
Capital District Physicians Health Plan, Inc.
------------------------------