Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Agentless SMS - Missing messengerType

    Posted 03-09-2020 16:35
    No replies, thread closed.
    I am new to working with PureCloud/Genesys. I have been tasked with setting up Agentless SMS via these instructions https://help.mypurecloud.com/articles/agentless-sms-notifications/
    From what I understand, this is a relatively new feature as of February.

    Everything went well until the Data Action step. I am using a POST request "/api/v2/conversations/messages/agentless"; using: fromAddress, toAddress, toAddressMessengerType, textBody

    my sms data action settings


    Testing in PureCloud Admin results in the error:
    REST call for action execute failed. Message:Request to backend service failed. Response from web service: {"message":"Bad request: Missing messengerType","code":"bad.request","status":400,"messageWithParams":"Bad request: {details}","messageParams":{"details":"Missing messengerType"},"contextId":" ... ","details":[],"errors":[]} [ ... ]

    Testing in Postman results in the same error:
    {
        "message""Value [] is not valid for field type [MessengerType]. Allowable values are: sms, facebook, twitter, line, whatsapp",
        "code""invalid.value",
        "status"400
    }


    I have "toAddressMessengerType" set to "sms" which is listed as one of the allowed values. Also, "fromAddress" is set to one of our provisioned SMS numbers in E.164 format.
    I did try adding "messengerType"="sms" as well, wondering if that was the correct field name, per the error message. No luck with that.

    Thank you in advance for any advice to guide me in the right direction.
    #Ask Me Anything (AMA)
    #PlatformAdministration
    #SystemAdministration
    #Unsure/Other

    ------------------------------
    Jeff Wolgast
    ------------------------------


  • 2.  RE: Agentless SMS - Missing messengerType
    Best Answer

    Posted 03-09-2020 16:58
    No replies, thread closed.
    You need to put those parameters inside the Input Contact, not as headers.  Look at some of the other PureCloud actions.

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



  • 3.  RE: Agentless SMS - Missing messengerType

    Posted 03-09-2020 17:57
    Edited by Matt Lawson 05-09-2022 09:31
    No replies, thread closed.
    Robert,

    Thank you for the quick response! That helped immensely! I started with moving everything into the Input, as you said, and had a successful text come to my phone.
    Then, while looking through the Operations, it finally 'clicked' how the information all ends up in the Body. So, I experimented a little with transforming some of my inputs and everything worked like I wanted.

    I will definitely look into some other actions as well to learn more, as this is not the final configuration of this action. At least it is something that works now!

    Thanks again!




    ------------------------------
    Jeff Wolgast
    ------------------------------