Back to Integration

Guide to Outgoing Webhooks for System Integration


Outgoing Webhooks allow ABC Sales Bot to send real-time notifications to your external systems whenever specific events occur. This feature is essential for businesses that need to keep data synchronized across multiple platforms, such as a CRM, an inventory management system, or a custom analytics dashboard.


Instead of constantly polling our API for changes (which is inefficient), you can subscribe to events. When an event happens, like a lead being created or updated, we instantly push the relevant data to a URL you provide.


Key Use Cases


  • Real-time CRM Sync: instantly create or update a contact in your CRM (e.g., Salesforce, HubSpot) the moment a lead is created or modified in ABC Sales Bot
  • Automated Fulfillment & Operations: trigger a process in your internal system, such as assigning a new lead to a regional sales team or starting a welcome sequence in your marketing platform
  • Centralized Data Warehousing: push all lead and conversation data to a centralized analytics platform (like Google BigQuery or a custom dashboard) for advanced reporting
  • Custom Notifications: send tailored notifications to team communication platforms like Slack or Microsoft Teams when important events happen, like a lead being escalated



How to Configure an Outgoing Webhook


Setting up a webhook is a straightforward process.


  1. Navigate to the Outgoing Webhooks tab from the main menu
  2. Click the Create Webhook button
  3. A configuration window will appear, fill in the details below
  4. Click Create Webhook to save and activate it

Configuration fields:


  • Webhook URL (Required): the most important field. Enter the unique URL of your external system that is set up to receive incoming data.
  • Event Types: select the specific events you want to subscribe to. You can subscribe to a single event or all of them.
  • Custom Headers (Optional): add static header values to your webhook requests, useful for authentication or routing on your server.
  • Max Retries: the number of times we will try to resend the event if your service is down or returns an error. The retries use an exponential backoff strategy to avoid overwhelming your system.
  • Max Concurrency: the number of concurrent webhooks we can send at one time. The default is usually sufficient for most use cases.

Key event types include:


  • leads_created
  • leads_updated
  • lead_tag_added
  • leads_deleted
  • leads_escalation_requested
  • conversation_created

You can create multiple webhooks, for instance, if you want to send different events to different systems.


💡
Setting this up for the first time? Use an online testing service like webhook.site. It gives you a temporary URL that displays any data it receives, so you can inspect the payload and confirm the connection works before building your own endpoint.



Filter outgoing webhooks by lead tag


In Outgoing Webhooks, create or edit a webhook. Tag added to a lead is available in the event picker.


To filter lead events, set Only leads with these tags. Choose up to 20 tags. A lead only needs to match one. Leave the field empty to receive events without a tag restriction. Events without a lead are not filtered.


Security: Verifying Payloads with the Secret Key


To ensure that the requests your server receives are genuinely from ABC Sales Bot, we sign each webhook payload.


Viewing the Secret Key


  1. On the Outgoing Webhooks page, click the three-dot menu next to your webhook and select Edit
  2. Click Show Secret Key
  3. This key is unique to your webhook. You must use this key on your server to verify the signature of the incoming payload

Verification Logic


We include a cryptographic signature in the header of each request. Your server can use the shared secret key to recalculate the signature from the request body. If the signatures match, you can be certain the request is authentic and has not been tampered with.


Regenerating a Key


If you believe your key has been compromised, you can regenerate it at any time. Remember to update the key on your server after regenerating it.




Understanding the Payload


When an event is triggered, we send a POST request to your URL with a JSON body. The payload always contains:


  • event_type: the name of the event that occurred (e.g., leads_updated)
  • event_data: event-specific metadata, including the company identifier; do not assume company_id is a top-level field
  • The relevant object data: for leads_created and leads_updated this is the entire lead object; for leads_deleted we only send the lead_id, as the full object no longer exists

Assigned users on a lead


When a delivery includes a lead object, lead.assigned_users contains the assignees as an array of objects with id and name, sorted by user ID. For example: {"lead":{"assigned_users":[{"id":90,"name":"Sarah"}]}}. This is a partial example of the new field, not the full delivery envelope. Email addresses are not included.


Assignees are read when the delivery is built, so the list can reflect a later assignment rather than the state at the original event. Retries resend the stored payload; they do not refresh the assignee list. The array is [] when no assignees are returned; a failed lookup also sends [] rather than withholding the event. Do not use an empty array alone as proof that a lead is unassigned. Existing integrations can ignore this additive field.


conversation_created message_source


For conversation_created events, the payload may include an optional message_source field.


This field helps your integration understand where the conversation message came from, such as an AI Employee reply, a staff reply, a scheduled message, a native app reply, a social comment, or an AI turn where no customer-facing reply was sent.


Example:


  • event_type: conversation_created
  • event_data.company_id: 67890
  • event_data.lead_id: 12345
  • event_data.conversation_id: 98765
  • conversation.message_source: ai_agent

Possible values:


  • ai_agent: reply generated by an AI Employee
  • human_agent: reply sent by a human agent from ABC Sales AI
  • whatsapp_business_app: reply echoed from WhatsApp Business App
  • instagram_app: reply echoed from Instagram
  • facebook_messenger_app: reply echoed from Facebook Messenger
  • scheduled_message: message sent by an automation or scheduled message
  • facebook_comment: message from a Facebook comment
  • instagram_comment: message from an Instagram comment
  • ai_manager: message sent by AI Manager on a user's instruction
  • ai_silent: AI checked the conversation but did not send a customer-facing reply for this event
  • ai_reply_failed: the AI Employee turn failed without sending a customer-facing reply; this is different from intentionally staying silent

Notes:


  • message_source is optional and may be omitted for older records or messages where the source is not recorded.
  • Existing webhook integrations continue to work if they ignore this field.
  • Do not treat ai_silent as a failed or blank reply. It means no customer-facing message was sent for that AI turn.



Tag-added events and lead-tag filters


Subscribe to lead_tag_added when your integration needs to react to a lead gaining a tag. The delivery contains event_type, event_data, lead and tags_added. The event_data object identifies company_id, lead_id and tag_names. Reapplying a tag already attached to a lead is not a new tag addition. This is not a tag-removal event.


When creating or updating a subscription through the Webhook Subscriptions API, lead_tag_filter can restrict delivery to leads carrying at least one of the listed tags. Matching is case-insensitive, with a maximum of 20 entries. For example, {"lead_tag_filter":["VIP","Interested"]} matches either tag, not necessarily both.


  • On creation, omit the filter or send [] to receive events for every lead.
  • On update, omitting it preserves the current filter; sending [] clears it.
  • The filter controls delivery, not access permissions. It checks tags carried by the lead when the delivery is built, not only the newly added tags.
  • You can configure the tag filter in the Outgoing Webhooks web interface or through the Webhook Subscriptions API.

For conversation_created, distinguish ai_reply_failed from ai_silent. Do not treat either marker as a message delivered to the customer, and do not automatically resend solely because a marker arrived.


Troubleshooting: The Webhook Log


To diagnose any issues with your webhook delivery, a detailed log is available for each endpoint.


  1. Click on a configured webhook from the main list
  2. This opens the Webhook Log view, which shows a history of all events sent to that URL

For each event, you can see:


  • Status: a green check for success or a red warning for failure
  • Attempts: the number of retries made
  • Request Duration: how long your system took to respond. This is useful for identifying slow performance or timeouts on your end
  • View Details: click this to inspect the exact Request Payload we sent and the Response Body (and status code) we received from your server. This is invaluable for debugging as it shows you precisely what went wrong if an error occurred

Related feature

API & Webhooks

Explore on the Features page

Still need help?

Our support team is ready to assist you.

Contact Support