Legacy Dev Forum Posts

 View Only

Sign Up

Interaction Widget - Passing Custom Field into URL

  • 1.  Interaction Widget - Passing Custom Field into URL

    Posted 06-05-2025 19:22

    jwalsh1 | 2021-12-08 02:27:53 UTC | #1

    Hi there,

    I'm trying to create an interaction widget that actually passes data from one of our customfields straight into the URL (which controls what is searched in my application). Essentially to get the user to the data needed based on a 'reason for calling' custom field in the chat.

    I can get the custom field data showing in the interaction details, but i can't seem to then pass this straight into the URL to have it auto run. I note from the URL Interpolation pages you can pass through 'Conversation ID' etc, but is it only limited to these variables???

    I've tried using 'get participant data' in the chat script architect to declare the variable but it still doesn't seem to work.

    Any help would be much appreciated!


    Jerome.Saint-Marc | 2021-12-08 09:01:55 UTC | #2

    Hello,

    The tokens, listed in the URL Interpolation page are the only supported variables: pcLangTag, pcEnvironment and pcConversationId (for Interaction Widget integrations).

    If you need to retrieve conversation information, you would have to create a small javascript code in your page that authenticates and gets an access token from Genesys Cloud, and then leverages Platform API to retrieve information about the conversation. E.g. with GET /api/v2/conversations/{conversationId} Something similar to what I described in "Case 2: Create a single landing page" of this other post

    Regarding chat media more specifically, there is also a tutorial on Agent Chat Assistant and a blueprint as well showing the use of Platform API.

    Regards,


    system | 2022-01-08 08:57:42 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 12879