Session handover in Studio is failing silently when passing to a Cognigy voicebot. The call connects fine, but the bot receives empty context. I’m using the standard GetRESTProxy to push data to the NICE CXone orchestration endpoint before the handover. The POST returns a 200 OK, so I assumed the payload landed. But the bot logs show null for every custom attribute. Here’s the snippet:
ASSIGN restProxy = GetRESTProxy("CognigyHandover")
ASSIGN payload = {"accountId": "my-account-id", "sessionId": CurrentSession.ID, "customData": {"queueName": CurrentQueue.Name}}
ASSIGN response = restProxy.Post("/api/v2/bots/handover", payload)
IF response.StatusCode == 200 THEN
TransferTo("Cognigy Bot Flow")
ENDIF
I’ve checked the network trace and the request hits the endpoint. The issue seems to be that the TransferTo action triggers before the async API call completes, or maybe the handover service doesn’t wait for the external POST. Anyone else hit this with Cognigy integrations? It’s driving me crazy.