Web Messenger SDK

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

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.

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