Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

Web messenger chat - Getting URL

  Thread closed by the administrator, not accepting new replies.
  • 1.  Web messenger chat - Getting URL

    Posted 03-04-2023 06:00
    No replies, thread closed.

    Hello all

    We are putting in a Chat Bot for our website, the purpose of this chat bot as a first phase is to ask a number of questions to the user and finally create a lead into salesforce. 

    All is working as expected; however, we want to capture the URL and UTM, is this possible to do? I have been looking and testing with no luck

    Thank you.


    #DigitalChannels

    ------------------------------
    Richard
    ------------------------------


  • 2.  RE: Web messenger chat - Getting URL

    Posted 03-05-2023 11:29
    No replies, thread closed.

    You could use the Database Plugin to send in which URL the customer is on, this would require the customer to send a message for it to update tho.

    https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/SDKCommandsEvents/databasePlugin#database-set

    It could also be fetched from Predictive Engagement, although that become expensive if you have a lot of traffic for just getting the URL.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



  • 3.  RE: Web messenger chat - Getting URL

    Posted 03-06-2023 12:26
    No replies, thread closed.

    Predictive Engagement is the way to go here, there is a small - tiny even, cost per visitor, but it easily gives you the current page URL among many other data points and features.



    ------------------------------
    Brad Murlin
    Zillow, Inc.
    ------------------------------



  • 4.  RE: Web messenger chat - Getting URL

    Posted 03-06-2023 16:26
    No replies, thread closed.

    Thanks all, 

    Is it possible to send the Predictive Engagement details into the Digital Bot Flow architect? and have the lead created from there using the data action we have in place already? 



    ------------------------------
    Richard
    ------------------------------



  • 5.  RE: Web messenger chat - Getting URL

    Posted 03-06-2023 16:38
    No replies, thread closed.

    Oh - I am doing this today, with PE snagging the URL and after the bot collects the relevant info the lead details and URL are fed to another system via data action.



    ------------------------------
    Brad Murlin
    Zillow, Inc.
    ------------------------------



  • 6.  RE: Web messenger chat - Getting URL

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

    Thanks for that, I got it to work via action maps > architect using a workflow flow with using the data actions to get the UTM tag. 

    is it possible to do the same via Inbound message flow? 



    ------------------------------
    Richard
    ------------------------------



  • 7.  RE: Web messenger chat - Getting URL

    Posted 03-13-2023 15:20
    No replies, thread closed.

    Within the Inbound Message Flow you can use the built-in action 'Get Journey Session' which will bring back a whole bunch of info about the user, one of which is the page URL.



    ------------------------------
    Brad Murlin
    Zillow, Inc.
    ------------------------------



  • 8.  RE: Web messenger chat - Getting URL

    Posted 05-10-2023 22:58
    No replies, thread closed.

    Hi Brad

    Could you expand on the flow a little bit as im trying to do the same but not having much luck

    Do you do any type of data table lookup to identify the URL and then pass that onto the relevant queue?

    Thanks

    David



    ------------------------------
    David Ragon
    Ethan Global Pty Ltd (t/a Ethan)
    ------------------------------



  • 9.  RE: Web messenger chat - Getting URL

    Posted 05-11-2023 00:02
    No replies, thread closed.

    Hi David, 

    Not sure if this will help you, the way we got it to work is via a data action (this was after the help from Brad)

    In the Digital bot flow we ran the following Data action


    API used was /api/v2/journey/sessions/{sessionId}

    This data action gave us all the info we needed. There is no Data table look up on our end for this flow. 



    ------------------------------
    Richard
    ------------------------------



  • 10.  RE: Web messenger chat - Getting URL

    Posted 05-11-2023 19:29
    No replies, thread closed.

    Hi richard

    Thanks for the info , assume this is a custom dat action you have added?

    If so would you be able to share what the contract looks like 

    Thanks

    David



    ------------------------------
    David Ragon
    Ethan Global Pty Ltd (t/a Ethan)
    ------------------------------



  • 11.  RE: Web messenger chat - Getting URL

    Posted 05-11-2023 19:49
    No replies, thread closed.

    Hi David, 

    Yes its custom data action, as we only needed the UTM tag the following is what i have

    Input Contract:

    {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }


    Output Contract:

    {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }


    Request: 
    {
      "requestUrlTemplate": "/api/v2/journey/sessions/${input.sessionId}",
      "requestType": "GET",
      "headers": {},
      "requestTemplate": "${input.rawRequest}"
    }


    Response: 

    {
      "translationMap": {
        "url": "$.lastPage.url"
      },
      "translationMapDefaults": {
        "url": "[]"
      },
      "successTemplate": "{\n   \"url\": ${url}\n}"
    }


    Hope this helps? 



    ------------------------------
    Richard
    ------------------------------