Trying to pull user profile data from NICE Cognigy inside a Genesys Cloud Data Action. The docs say to use the GetRESTProxy method to hit our internal endpoint that wraps the Cognigy API. We’ve got the auth sorted, but the response payload is killing the JSON mapper in Architect.
Here’s the snippet I’m using in the Data Action:
{
"method": "GET",
"url": "https://our-internal-proxy.com/api/cognigy/profile/${user.id}",
"headers": {
"Authorization": "Bearer ${auth.token}"
}
}
The response comes back fine in Postman, but Architect throws a JSON parse error when it tries to map the fields. The payload looks like this:
{
"data": {
"profile": {
"name": "John Doe",
"lastOrderDate": null
}
}
}
I’ve tried casting the output to string first, then parsing it, but it still fails. The docs mention that the mapper is strict about nested objects and null values. If the structure doesn’t match the expected schema exactly, it bails out. Anyone else hit this wall when integrating with external chatbot platforms? Just need to know if there’s a way to force the parser to ignore the null or wrap the object differently.