I’ve got a setup where NICE Cognigy sends a webhook to a CXone Data Action. The goal is to route the call based on the intent score.
The JSON coming from Cognigy looks like this:
{
"intent": "billing_query",
"confidence": 0.92,
"entity": "monthly_statement"
}
In the CXone Data Action, I’m trying to map this to a variable routingIntent. I set the Data Action to POST to the webhook URL.
The problem is the expression in the Architect flow. I’m using ${system.DataActionResponse.result.routingIntent} but it comes back as null. I know the Data Action succeeded because the status is 200.
Am I missing a step in the Data Action configuration? Do I need to wrap the result in a specific JSON structure for the expression to pick it up? I’ve tried ${system.DataActionResponse.result} directly but that just dumps the whole object.
Here is the Data Action mapping I’m using:
- Key:
routingIntent - Value:
{{intent}}
It feels like the expression syntax is off. Any ideas?