We’ve got a Data Action in CXone Studio that calls our internal Node.js webhook. The webhook responds with a 200 OK and the JSON body looks perfect.
Here’s the response payload:
{
"statusCode": 200,
"body": {
"agentId": "12345",
"status": "available"
}
}```
In the Data Action configuration, I'm mapping the success output to `$.body.agentId`. But when I debug the flow, the variable comes back as `undefined`.
I've tried:
- `$.agentId`
- `$.body["agentId"]`
- `$.data.agentId`
Nothing works. The error log just says `Output mapping failed: undefined`. Is the CXone parser stripping the outer `body` wrapper? Or is there a specific JSONPath syntax I'm missing for nested objects in webhook responses?
GET /api/v2/dataactions
The action ID is `da-12345`. Any ideas?