Is it possible to configure a Genesys Cloud webhook to trigger on a specific queue SLA breach and format the payload for Slack?
I am using the Python SDK to manage webhooks via PUT /api/v2/webhooks/webhooks/{webhookId}. I want the event to be routing:queue:abandonedcall but filter by SLA.
The current JSON payload sends raw data. I need to map queue.name and sla.percent to Slack’s blocks structure. How do I achieve this transformation in the webhook config?
The official documentation states that the Genesys Cloud webhook engine does not support server-side JSON transformation. You cannot map fields directly in the POST /api/v2/webhooks/webhooks configuration. The raw payload from routing:queue:abandonedcall includes queue.name and sla.percent, but you must format these into Slack’s blocks structure in your receiving endpoint.
I handle this with an async FastAPI proxy using httpx. Here is the transformation logic: