Is it possible to reliably trigger a ServiceNow incident creation via a Genesys Cloud Data Action immediately following a SIP REFER transfer completion event?
Background
Our environment utilizes Genesys Cloud CX (version 2024-02) with a hybrid telephony setup. We are attempting to automate the creation of a ServiceNow ticket when a specific type of SIP REFER transfer occurs within our SIP trunk configuration. The workflow involves an initial inbound call, a manual transfer by the agent using the SIP REFER method to an external number, and subsequent logging in ServiceNow. We have configured a Conversation Trigger in Genesys Cloud to detect the conversation:transfer event with the direction set to outbound and method set to REFER. This trigger invokes a Data Action configured to send a POST request to our ServiceNow REST API endpoint (/api/now/table/incident). The payload includes the interaction ID, caller phone number, and the transferred-to destination.
Issue
The Data Action consistently fails with a 408 Request Timeout or occasionally a 504 Gateway Timeout from the ServiceNow side, despite the ServiceNow API being responsive to direct curl tests. The Genesys Cloud logs indicate that the webhook request is initiated but does not receive a response within the 30-second hard limit enforced by the platform. Interestingly, if we switch the trigger to a simple conversation:end event after the call has fully terminated, the Data Action succeeds 95% of the time. However, this introduces a delay of up to 2 minutes in ticket creation, which is unacceptable for our SLA requirements. We need the ticket to be created at the moment the transfer is executed, not when the call ends.
Troubleshooting
- Verified the ServiceNow endpoint latency; it averages 200ms under normal load.
- Checked the Genesys Cloud Data Action configuration;
Content-Typeis set toapplication/json, and authentication headers are correctly injected via secure variables. - Tested the SIP REFER flow manually; the transfer completes successfully within Genesys Cloud, but the downstream webhook fails.
- Reviewed the Genesys Cloud documentation on Conversation Triggers, which states that
conversation:transferevents are fired asynchronously. Could the asynchronous nature of the SIP REFER completion event cause the Genesys Cloud infrastructure to drop the webhook request before the external service can respond? - Attempted to add a retry mechanism in the Data Action, but the platform does not support retries for synchronous webhook calls.
Has anyone successfully implemented real-time ServiceNow ticket creation triggered by SIP REFER events? Are there specific headers or payload structures required to ensure the Genesys Cloud platform waits for the response, or is this a fundamental limitation of the conversation:transfer trigger?