Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Generic Chat Notif Data Action setup

    Posted 15 days ago
    Edited by Robert Niblock 10 days ago

    Hi all,

    With the recent Speech & Text analytic trigger release, I've been looking at a way to have a message go to a Group when a specific phrase is mentioned.  However I'm having some troubles with getting the data action setup.

    Every time I go to test it, I get: "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"HTTP 404 Not Found","code":"not found","status":404}".  

    I believe everything I have configured is correct, just wanting to verify if that webhook for chat notifications is still active, or if I could get any advice on what I should do next?


    #PlatformAPI
    #Triggers

    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------



  • 2.  RE: Generic Chat Notif Data Action setup

    Posted 14 days ago
    Edited by Tristen Schwarzenberger 14 days ago

    Hey Robert,

    That's the API I am also seeing in the developer center. In the request body template, if you change the syntax to:


    {
    "message": "${input.message}",
    "metadata": "${input.metadata}"
    }


    Does that resolve it?



    ------------------------------
    Tristen Schwarzenberger
    IT Engineer
    GCP
    ------------------------------



  • 3.  RE: Generic Chat Notif Data Action setup

    Posted 14 days ago
    Edited by Robert Niblock 10 days ago

    Hey Tristan,

    I've also attempted with this format above and still get that same error.

    This is the message from the Execute part;



    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------



  • 4.  RE: Generic Chat Notif Data Action setup
    Best Answer

    Posted 13 days ago

    Hi Robert,

    Generic Webhooks have a different endpoint compared to most Genesys APIs. If you look at your webhook in the UI, you should see that it starts with "apps" instead of "api". I believe this is what is causing the 404.

    To get around this, I believe you will need to use a "Web Services Data Actions" and provide the full URL of the webhook.

    I strongly encourage you to delete the webhook you shared in this post and create a new one.

    As a heads up, generic webhooks are still supported but we'll be moving to the new "Webhooks for Events" integration in the future as mentioned in https://help.mypurecloud.com/announcements/deprecation-removal-of-webhooks-integration-for-chat-notification/. We'll have some additional documentation available to aid in this migration.



    ------------------------------
    Justin Keller
    Senior Software Engineer, Test
    ------------------------------



  • 5.  RE: Generic Chat Notif Data Action setup

    Posted 10 days ago

    Thanks Justin,

    I saw this message the other day and removed the webhook as suggested.

    I managed to finally get it working.  I'll do some further research the new Webhooks for Events.  At this stage I'm just playing around with what's possible.



    ------------------------------
    Robert Niblock
    Contact Centre Technology Analyst
    ------------------------------