- Transfer Node
- REST API request:
Create outbound calls via API request
Send an HTTP POST request to the Voice API to generate an outbound call. When the call is answered, Voice invokes the specified webhook to manage the call. You authorize the request with a Bearer token. This token contains an API key value.API base URL
The API base URL is the endpoint used to access the Cognigy Voice API.The following table lists the base URLs for different environments.
Request
Basic configuration request
The basic configuration provides details on initiating and managing calls, enabling the system to connect the caller and callee. It also includes call duration, handling of unanswered calls, and the attachment of relevant metadata.- cURL
- JSON
Advanced configuration request
The advanced configuration provides a range of features to enhance call handling and management. It includes notifications, interaction hooks, header manipulation, and transcription capabilities. The following example enables the Answering Machine Detection feature with theamd parameter.
It also uses the actionHook parameter to send events to Webhook.
The timeout parameter defines a maximum ringing time. If nobody answers within this time, Voice stops calling (see the NO_ANSWER event).
The tag parameter sends custom information about the user, such as a custom object, and the headers parameter sends custom headers.
- cURL
- JSON
Response
The server responds with HTTP201 and provides the session identifier (sid) of the outbound call session and the call identifier (callid) of the INVITE.
Use cases
You can create outbound calls for different use cases, for example:Transfer calls
The voice agent orchestrates a transfer (outbound call) to the call center. Sequence of interactions:- A user initiates an inbound call.
- Voice passes the call to the voice agent.
- The voice agent initiates a transfer to the call center via Voice.
- The call center receives the transferred call.
Make follow-up calls
The voice agent triggers an outbound call to the user for follow-up purposes, for example, to provide additional troubleshooting steps, offer a resolution to the user’s issue, or follow up on their satisfaction with the support received. Sequence of interactions:- A user provides information during an inbound call to the voice agent.
- The voice agent triggers an outbound call to the user via a third-party service and Voice.
- The user receives the outbound call initiated by the voice agent.