We’re building a custom screen pop service for our CXone digital channel. The requirement is sub-second latency when a new message arrives.
I’ve been polling /api/v2/conversations to get the real-time state, but the payload is missing some historical context we need for the pop. So I tried hitting /api/v2/analytics/conversations to grab the full history. The analytics endpoint returns the data, but it’s lagging by about 10-15 seconds. That’s too slow for a screen pop.
Here’s the flow:
- Webhook fires for new message.
- Call
/api/v2/conversations/{id}. Returns basic metadata. No history. - Call
/api/v2/analytics/conversations. Returns history but stale.
Is there a way to force the analytics warehouse to update faster? Or am I supposed to stitch these two together? I’ve tried increasing the polling rate, but it feels like a hack. The docs say analytics is for reporting, but I can’t find a real-time history endpoint.
Any ideas on how to get the full conversation context without waiting for the analytics batch?
GET /api/v2/analytics/conversations?dateFrom=...
Returns 200 but the data is old.