Legacy Dev Forum Posts

 View Only

Sign Up

Push Participant Data at Messaging initialisation

  • 1.  Push Participant Data at Messaging initialisation

    Posted 06-05-2025 18:36

    Paul_HOGIE | 2023-05-15 08:49:14 UTC | #1

    Hi all Is there a way to pass custom participant data along with the out of box deployment of the Web Messenger? I would like pass some data when the conversation starts such as customer CRM ID, the URL of the page where the session has been initiating,...

    Many thanks for your answer regards Paul


    msassoon | 2023-05-15 08:59:25 UTC | #2

    Yes, use the Database plugin on the page just after calling the Messenger snippet https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/SDKCommandsEvents/databasePlugin

    So, for example, you could do this:

    Genesys("command", "Database.set", { messaging: { customAttributes: { CRMID: "12334", currentlocation: window.location.href, browser_language: navigator.language } } });

    You can get anything from the page that can be found and pass it. The key names will be participant data keys that you can use in a Get Participant Data block in Architect


    Paul_HOGIE | 2023-05-15 10:51:29 UTC | #3

    Great, exactly what I'm looking for many thanks for the quick answer


    system | 2023-06-14 10:51:32 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 19910