Skip to main content
Webhooks documentation light mode
Webhooks documentation dark mode

Overview

When configuring a Pearl, you can set up webhooks to receive real-time notifications at key moments of the call lifecycle. The webhooks available to you depend on whether your Pearl is configured for Inbound or Outbound activity.

Inbound Pearl

Access to the Call Webhook only.

Outbound Pearl

Access to both the Call Webhook and the Lead Webhook.
The Call Webhook payload is identical whether it originates from an Inbound or Outbound Pearl. The Lead Webhook is exclusive to Outbound campaigns, as leads are a concept specific to outbound call management.
Use webhooks only when an external tool needs event notifications. For actual automations tied to how a call ended, rely on Post-Call Actions instead.

Webhook Types

Call Webhook

Triggered at the start and end of every call. Available for both Inbound and Outbound Pearls.

Lead Webhook

Triggered every time a lead changes status. Available for Outbound Pearls only.

Webhook Version

Select the version that matches your Pearl configuration. V2 is the recommended version and is selected by default.
In V2, all JSON payload keys use camelCase (e.g. pearlId, phoneNumber, collectedData).

Call Webhook Payload

The Call Webhook is triggered at the start and at the end of every call. It provides comprehensive data about the call, including its outcome, duration, transcript, and any information collected during the conversation.
Available for both Inbound and Outbound Pearls.

Payload Fields

Conversation Statuses

The definition of Success and NotSuccessful is configured at the Pearl level. Refer to the Create a Pearl page for more details.

Call Statuses

Transcript Message

Each entry in the transcript array represents a single message in the conversation.

Collected Info

Each entry in the collectedInfo array represents a variable captured during the call.

Sentiment Values

Example Payload


Lead Webhook Payload

The Lead Webhook is triggered every time a lead changes status - at the beginning and at the end of a call. It contains all relevant information about the lead and its current state.
Available for Outbound Pearls only.

Payload Fields

callData vs collectedData

Lead Statuses

The definition of Success and NotSuccessful is set at the Pearl level. Refer to the Create a Pearl page for details.

Example Payload


Differences Between V1 and V2


Setting Up Webhooks

You can configure webhook URLs directly in your Pearl or outbound campaign settings.
1

Open Your Campaign Settings

Navigate to the Pearl or outbound campaign you want to configure and open its settings panel.
2

Locate the Webhook Section

Scroll to the Webhooks section in the configuration form.
Webhook settings on light mode
Webhook settings on dark mode
3

Turn Webhooks On

Toggle the Webhooks setting to On. Webhooks are off by default, and the URL fields only appear once it’s enabled.
4

Enter Your Webhook URLs

Provide the endpoint URLs for the webhooks you want to receive. Your server must respond with an HTTP 200 OK to acknowledge receipt.
  • Call Webhook - available for Inbound and Outbound Pearls.
  • Lead Webhook - available for Outbound Pearls only.
5

Authenticate Your Webhooks (Optional)

For each webhook (Call and Lead), you can attach a Credential so NLPearl.AI authenticates its requests to your endpoint:
  1. Enable the Credentials toggle under the webhook URL.
  2. Select an existing Token, or create one with Add New (use Edit to update an existing one).
The selected credential is sent with every webhook delivery, letting your server verify the request genuinely originates from NLPearl.AI. Available for both Inbound (Call Webhook) and Outbound (Call + Lead Webhook) Pearls.
Credentials work the same way as in the API Node. A token created here can be reused across your webhooks.
Make sure your webhook endpoint is publicly accessible and responds within a reasonable timeout. NLPearl.AI does not retry failed webhook deliveries by default.

Outbound Campaigns

Learn how to create and configure outbound campaigns, including webhook setup.

API Reference – Get Calls

Explore the full call object structure returned by the API.