Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Web Messenger SDK

    Posted 06-05-2025 18:37

    Peter_Stoltenberg | 2023-12-15 01:12:14 UTC | #1

    Hello,

    I am trying to integrate Genesys Cloud Messenger with a marketing platform. The marketing platform has endpoints that are not api endpoints: they're designed to take a form post from the end user.. This means there isn't a JSON body, instead, it's application/x-www-form-urlencoded or multipart/form-data data posted to the endpoint via a form post on a web page.

    However, in this scenario, we're collecting the information from the customer in the Genesys Digital Bot Flow, only at a certain point in the customer journey. But I still want to be able to "post" this data back to their form endpoint.

    I was hoping to subscribe to the database.updated event, but that only seems to be updated when i post attributes from the client side.

    any one have any other suggestions (besides creating a web service to POST to?) on how I might transfer the collected data from the DBF over to the marketing platform?

    Thanks Peter


    Tim_McQueen | 2023-12-19 22:36:00 UTC | #2

    A Form endpoint and a REST endpoint are identical except for the MIME type that they want to handle. By default, a Genesys Cloud action will POST with the Content-Type header set to "application/json" and will expect to have valid JSON data in the body. What you need to do is set the Content-Type header to "application/x-www-form-urlencoded" then pass the data in the format "key=value&key=value". The response can be anything as long as the HTTP Status Code is 20x.


    system | 2024-01-18 22:36:55 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 23725