Webhooks overview

API Docs by APIMATIC
Webhooks

Webhooks overview
#

Introduction
#

Webhooks facilitate real-time communication between websites or applications by allowing one application to send HTTP requests, including payload data, to another application when a predefined event or trigger occurs.

With the Voiso Webhooks feature, developers can subscribe to call events, offering numerous advantages for custom integrations and automated tasks:

  • Real-time updates: Receive instant notifications or data updates when specific call events occur.
  • Simplified integration: Transmit data between applications seamlessly without continuous polling.
  • Efficient resource usage: Data is only sent when an event occurs, reducing unnecessary network traffic and server load.
  • Automation: Streamline workflows and enhance overall efficiency in application development and management.

Voiso webhook structure
#

Voiso webhooks employ the POST method with the HTTP request protocol when sending payloads. Payloads are structured as follows:

ParameterDescriptionData type
nameThe name of the web hook.String
eventOne of the supported Voiso contact center events. Refer to Supported events.String
entityThe name of the contact center entity associated with the webhook payload. Entities include: xxString
timestampThe timestamp indicating when the event triggering the webhook occurred.Datetime
keyEach webhook should have a unique contact center key or user-defined token. This key is used by the external system to validate the authenticity of the webhook.Datetime
payloadThe payload data contained within the webhook. The structure and content of the payload vary depending on the specific event and object involved. It can be a simple or nested structure, accommodating different scenarios.Simple or nested structure

Example:

    "name": "user_created",
    "event": "inbound.call.hangup"
    "entity": "user",
    "timestamp": 2024-06-19T14:30:13+0000,
    "key": "fiv39qu4eh8H83e4dieEw44"
    "payload": 
        {
          "id": 28982,
          "name": "Nurul Rahman",
          "email": "n.rahman@mail.com",
          "sip_account": "n.rahman@contactcenter.voiso.com",
          "role_name": "agent",
          "extension": 1234,
          "caller_id": 2594,
          "timezone": "Malaysian Standard Time",
          "webrtc_ringtone": "null",
          "team": ["shift_manager", "quality_management"],
          "supervisor_in_teams": ["quality_management"],
          "skills": ["mandarin", "malay", "product_query", "billing"],
          "queues": [first_line"],
          "employee_id": 13113
        }

Webhook response
#

When coding your response to the webhook, note that Voiso expects an HTTP 200 status code to indicate a successful operation. If no response is received, Voiso assumes that the request timed out or an error occurred.

Supported events
#

The Webhooks feature supports the following call events:

EventDescriptionWebhook
inbound.call.answeredAn agent answers an inbound call.Call notify
inbound.call.hangupAn inbound call ends.Call outcome logging
dialer.call.answeredAn agent is connected to a Dialer call answered by a contact.Call notify
dialer.call.hangupA Dialer call ends.Call outcome logging
outbound.call.answeredA contact answers an outbound call.Call notify
outbound.call.hangupAn outbound call ends.Call outcome logging

The Webhooks page
#

Use the Webhooks page to create and manage your webhooks. Refer to Webhooks in the Voiso Documentation Portal for more information.

Call Notify
#

As an administrator, you can subscribe to Call Notify. Call Notify is triggered when a call is answered.

Screen pop contact records
#

The Call Notify webhook enables you to automate sending either a GET or POST method to your CRM to request that the contact information for the current inbound or outbound Dialer call be displayed in the CRM browser window.

The Call Notify webhook initiates when a conversation starts. For outbound calls, this is when the contact answers. For inbound calls, this is when the call is connected to an agent.

Call Outcome Logging
#

As an administrator, you can subscribe to Call Outcome Logging. Call Outcome Logging is triggered when a call is answered.

Send call information to your CRM
#

The Call Outcome Logging webhook is triggered automatically and can be used to log the call details to your application.

The Call Outcome Logging webhook enables you to automate sending information to your CRM (POST) after an agent wraps up a call.