Skip to main content

Brightcall Dialer API

Learn more about Brightcall Webhooks

You can find webhook examples on Swagger (here ↗️):
​

There are different events for each call, such as "callStarted", "callRinging", "callAnswered", "callEnded", and "webphoneSummary". The "webphoneSummary" event is sent after a call outcome is submitted by the agent or set automatically. Event-specific endpoints are used when "Use routes" is enabled; otherwise, events are sent to the same URL.
​

Click to get a summary of each event.

  • callStarted: Sent when a call is initiated, with CRM data shown to the agent.

  • callRinging: Sent when the phone is ringing, with CRM data shown to the agent.

  • callAnswered: Sent when the call is answered.

  • callEnded: Sent when the call ends, and call data is sent to the CRM.

  • webphoneSummary: Sends call outcome details after the outcome is submitted by the agent or set automatically. It may not be sent if no outcome is submitted.

Click to get a a detailed description of each event.

1. callStarted

  • Description: This event is triggered when a call is initiated by an agent or when an incoming call starts.

  • When it is Sent: The event is sent at the very beginning of a call, before the call starts ringing. It indicates that a connection attempt is being made to either an internal or external number.

  • Data: CRM data can be sent to the agent at this point to provide important context about the caller, such as the customer’s name, account information, or previous interactions. This helps the agent be prepared for the call.

2. callRinging

  • Description: This event is triggered when the agent’s phone rings.

  • When it is Sent: The event is sent during the ringing phase of the call, before it is answered.

  • Data: Similar to the callStarted event, you can send relevant CRM data such as caller details, recent interactions, or any important notes to the agent while the phone is ringing.

3. callAnswered

  • Description: This event is triggered when a call is answered by either the agent (in the case of inbound calls) or the customer (for outbound calls).

  • When it is Sent: The event is sent immediately after the call is connected.

4. callEnded

  • Description: This event is triggered when the call is completed and the line is disconnected.

  • When it is Sent: The event is sent as soon as the call is terminated by either the agent or the customer.

  • Data: Instead of receiving data, this event usually sends call details to the CRM. Information such as call duration, caller ID, or another call data is typically logged at this stage for reporting or future reference.

5. webphoneSummary

  • Description: This event sends the call outcome submitted by the agent or set automatically, such as a voicemail or no-answer outcome.

  • When it is Sent: The event is sent when the call outcome is submitted after the call ends, either by the agent or automatically. It may not be sent if no outcome is submitted.

  • Data: The webphoneSummary event sends the call outcome, its type, call timing and the agent’s notes to the CRM. AI transcription is sent separately in the aiTranscriptionSummary event when available.

For example, with "Use routes" enabled:

When responding to the "callStarted" and "callRinging" webhook events, you can send some data from your side that will be shown to the agents. The response should match the "WebhookPayloadCallStartResponse" or "WebhookPayloadCallRingingResponse" scheme that is available on Swagger.
Here's an example of a response:

{
"success": true,
"contact": {
"id": "1",
"crmType": "CRM",
"phoneNumber": "1234567890",
"callId": "1111111111.11111",
"fields": [
{
"title": "CRM Lead URL",
"value": "https://crm-link",
"isWebsite": true
},
{
"title": "Email",
"value": "[email protected]"
},
{
"title": "Name",
"value": "John Doe"
}
]
}
}

How to set up ?

In order to set the webhook URL, you need to log into the Brightcall Dashboard and open that page↗.

It is possible to set up several webhooks. In that case, the payload would be sent to all of them.

Adding a new webhook

  1. Click the Add Webhook button to add a connector

  2. Enter your endpoint URL in the Webhook URL field

  3. If needed, configure the connector options described below

  4. if several webhooks added, specify order by dragging connectors over the page

  5. Click the Save button on a bottom of the page

Elements of the connector

"Webhook On/Off" switch — when set to off, no information would be sent to the specified endpoint.

"Webhook URL" field — endpoint URL to receive data.

"Additional data as json string" field — if specified, this information would be added to the payload.

"Use routes" checkbox - please read the description carefully:

"Is post format" checkbox — specified if the payload would be sent in POST or GET format. It is strongly recommended to enable this feature

"Send SMS events" checkbox — if enabled, webhook would be also send for SMS events

"Remove" button — deletes the connector.

"Add Webhook" button — adds a new connector.

Restrictions

  1. Use Exclude webhook events to choose which call events a connector should not receive.

  2. The webphoneSummary payload includes the outcome in goal and its type in goalType (positive, neutral or negative) when available.

  3. It is not possible to send test payloads

Did this answer your question?