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.
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.
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
callStartedevent, 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
webphoneSummaryevent sends the call outcome, its type, call timing and the agent’s notes to the CRM. AI transcription is sent separately in theaiTranscriptionSummaryevent when available.
For example, with "Use routes" enabled:
The "callStarted" event payload will be sent to https://example.com/webhook/callStarted
The "callRinging" event payload will be sent to https://example.com/webhook/callRinging
And so on.
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
Click the
Add Webhookbutton to add a connectorEnter your endpoint URL in the
Webhook URLfieldIf needed, configure the connector options described below
if several webhooks added, specify order by dragging connectors over the page
Click the
Savebutton 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:
If "Use routes" is disabled, all payloads will be sent to the specified URL (e.g. https://example.com/webhook). The
eventTypeparameter with event name will be added to the payload in that case.If "Use routes" is enabled, payloads for different events would be sent to separate endpoints, e.g.
The "callStarted" event payload will be sent to https://example.com/webhook/callStarted
The "callRinging" event payload will be sent to https://example.com/webhook/callRinging
And so on.
"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
Use Exclude webhook events to choose which call events a connector should not receive.
The webphoneSummary payload includes the outcome in
goaland its type ingoalType(positive,neutralornegative) when available.It is not possible to send test payloads

