Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 14:31
    No replies, thread closed.

    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.
    ------------------------------


  • 2.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 14:46
    No replies, thread closed.

    Hi,

    you can use the database.set command to set custom attributes

    Cheers



    ------------------------------
    Muhammad Zubair Awan
    ------------------------------



  • 3.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 14:53
    No replies, thread closed.

    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.
    ------------------------------



  • 4.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 15:11
    No replies, thread closed.

    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
    ------------------------------



  • 5.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 16:19
    No replies, thread closed.

    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.
    ------------------------------



  • 6.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-08-2023 16:55
    No replies, thread closed.

    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. 

    Perhaps give it some time to see if other members have different suggestions. 



    ------------------------------
    Muhammad Zubair Awan
    ------------------------------



  • 7.  RE: Web Messenger Integration - Passing custom data into a web message from external source

    Posted 03-10-2023 12:33
    No replies, thread closed.

    Hi - Indeed Database.set command is very convenient to use here, for "pushing" data into the Web Messaging interaction, we have also posted an example.

    An alternative would be to use Authenticated Web Messaging: if your Auth provider is exposing an OpenID Connect interface, then Web Messaging can integrate directly into OIDC endpoints and retrieve the unique identifiers from the Auth providers, which are then made available within Architect Flow, and could be used within Data Actions to "pull" data from your backend.



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------