Cognigy webhook payload mapping for CXone dynamic routing

Trying to wire up a Cognigy bot to route calls dynamically in CXone based on intent. The webhook hits our Node.js endpoint, which then calls the CXone /api/v2/routing/queues/{queueId}/members endpoint to update capacity. The issue is the payload Cognigy sends doesn’t match what I expect for the intent field. It’s nesting the NLU data deep inside context. I’m trying to extract the top confidence intent and map it to a specific CXone queue ID.

Here’s the snippet I’m using to parse the incoming webhook:

const intent = req.body.context.nlu.topIntent;
const queueMap = {
 'billing': 'queue-123',
 'support': 'queue-456'
};
const targetQueue = queueMap[intent];

When intent is undefined, the lookup fails. The debug log shows req.body.context exists, but nlu is null. I checked the CXone docs for the webhook event structure, but that’s for outbound events. Does Cognigy send a standard NICE NLU payload or something custom? If I can’t get the intent reliably, the dynamic routing breaks. I’m stuck on where to look for the actual intent value in the request body.