Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Web Messaging and message.message.body

    Posted 10-25-2021 12:22
    Edited by Sébastien Arpin 10-25-2021 12:30
    Hi,

    For some reason when I'm using the function message.message.body into the web messaging inbound flow. It only shows the first message the customer sends.

    If for example, the conversation is:

    -Customer "Hello"
    -System Send Respond "Hi, how can I help you"
    -Customer "Yes I need help"

    The message.message.body string will only provide "Hello" and not the last entry of the customer "Yes I need help"

    Is there a way to capture the latest message.message.body value?

    Thanks

    ------------------------------
    Sébastien Arpin
    Quovim C3 (9264-2354 Quebec Inc.)
    ------------------------------


  • 2.  RE: Web Messaging and message.message.body

    Posted 10-27-2021 22:14
    I think that may be stateful.  You could try using the conversationId and a data action to get the entire transcript.  Also, you could keep an array of each message coming in.  If I was doing it, I would just send it to a bot and let the bot supply the transcript as context.  That keeps it in the bot as well so you don't have to use wait tools or get timeouts.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Web Messaging and message.message.body

    Posted 03-22-2022 11:13
    Hi @Robert Wakefield-Carl,

    I am facing the similar issue as Sebastien did. What do you mean by "stateful"?​ When I use data action to get the latest message, it always gives me the first message they sent, like the example above, it will tell me "Hello" is the message it gathered. How do I make it update the conversation and grab the latest one?

    I hope that made sense.

    Thank you!


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources