We’re hitting a wall with a Genesys Cloud Data Action that queries NICE Cognigy for profile tokens. The request goes out fine, but the response parsing fails immediately. We get a 200 OK from Cognigy, so the API call itself isn’t broken. The issue is on the Genesys side when it tries to map the JSON payload to the Data Action output schema.
Here’s the response body we’re seeing:
{
"statusCode": 200,
"body": {
"token": "abc123xyz",
"expiresIn": 3600,
"scope": "profile:read"
}
}
The Data Action fails with a generic parsing error. I’ve tried wrapping the body in a try-catch block in the Architect expression, but that doesn’t help because the error happens before the expression runs. The schema expects a flat object, but Cognigy wraps it in a body key. Is there a way to tell the Data Action to look inside the body field without writing a custom webhook? We’ve been staring at the JSON mapper for hours and it keeps rejecting the nested structure.