Getting a 400 Bad Request when trying to map the Cognigy webhook response to a CXone variable. The flow hangs at the Set Variable action because the JSON path is returning null.
We are routing calls based on intent confidence. The webhook hits a CXone flow. In the Set Variable action, I’m using this expression:
$webhookResponse.body.data.intent.score
But the actual payload from Cognigy looks like this:
{
"requestId": "1234",
"data": {
"intent": "billing_query",
"confidence": 0.85
}
}
The property is confidence, not score. Even after updating the expression to $webhookResponse.body.data.confidence, the flow still fails to parse the float. It seems to treat it as a string or fails validation entirely.
Tried wrapping it in parseFloat() in a but that throws a syntax error in the expression builder. How do I correctly map a decimal confidence score from a custom webhook payload to a CXone numeric variable for downstream routing?