Building a flow where Architect calls a Cognigy endpoint to fetch a user profile token. The endpoint returns a valid JSON payload, but the Data Action fails to parse it into the output variables.
Payload looks like this:
{
"success": true,
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiry": 3600
}
}
Mapping is set to data.token for the output variable profileToken. Getting a generic parsing error in the debug logs. Studio doesn’t auto-parse nested JSON bodies by default. You’ll need to handle that manually in the snippet.
Wrap the body in JSON.parse() immediately after the call.
Access properties directly via dot notation on the parsed object.
Anyone else hit this with Cognigy integrations? Is there a workaround in the Data Action config itself?