Skip to Content
GuidesDevelopersResources
Webhooks

Receive Botello events by webhook

Get notified in real time when a lead is created, a visitor asks for a human or an order is attributed to the assistant.

On requestThe Botello team turns this feature on for your workspace. Contact us to get it.
Plans
All plans
Roles
Owner, Admin
In the admin
Integrations › Webhooks

A webhook is a web address (URL) on your system. Botello sends it a JSON POST request every time an event happens: a new lead, a conversation handed over to the team, an order attributed to the assistant. This lets you feed your CRM, your ticketing tool or a Zapier, Make or n8n scenario, with nothing to copy by hand.

Best for

Sending every new lead to your CRM, alerting your team on Slack when a visitor asks for a human, counting the sales attributed to the assistant in your analytics tool.

Before you start

  • Webhooks are enabled by the Botello team for your workspace. If the Webhooks card does not appear in Integrations, write to support@botello.ch.
  • You are an Owner or Admin of the workspace.
  • You need a public HTTPS URL that accepts a POST request and responds in under 10 seconds. http:// addresses, localhost and private network addresses are rejected.
  • To try it without writing any code, first create your sandbox: it receives webhooks and checks their signature for you.

Create a webhook

Open the webhooks

In the left menu, open Integrations. On the Webhooks card, click Configure.

The Webhooks panel with no webhook: the Add a webhook button, then the Use with Zapier, Make or n8n help

Fill in the form

Click Add a webhook. Enter the Destination URL (https), tick the Events sent, and adjust the other fields if needed (see Settings). Click Create.

The top of the creation form: destination URL, description and event list, with lead.created and conversation.handoff_requested ticked by default

Copy the signing secret

After creation, Botello shows the webhook secret, which starts with whsec_. Copy it into your server configuration: it is used to verify the signature of every delivery. You can show it again later with Show signing secret, in the webhook menu.

Keep the secret on the server

Never put it in a web page, an email or a chat. If it has leaked, use Revoke immediately (see Rotate the secret without downtime).

Send a test

In the webhook menu, click Send a test event. Your endpoint receives a webhook.test event. A message tells you the HTTP status code returned by your server, and the delivery appears in the Delivery log.

Settings

SettingWhat it doesTip
Destination URL (https)The address that receives the events. HTTPS required, public addresses only.With Zapier, Make or n8n, paste the URL provided by the tool.
Description (optional)A name to help you find your way (200 characters at most).“CRM”, “Sales team Slack”…
Events sentThe event types sent to this address. At least one. Ticked by default: lead.created and conversation.handoff_requested.Events marked “one call per message, high volume” (message.received, products.recommended, contact.updated) generate a lot of deliveries. Only tick them if you need them.
ChannelsLimits deliveries to events from one channel: Website, WhatsApp, Instagram, Messenger. None ticked = all channels.Events without a channel (a lead, an API action, a closed conversation) are always sent.
Include personal dataOn by default. When off, names, emails, phone numbers and message texts are replaced with null. Identifiers are kept.Turn it off if your receiver does not need this data (data minimisation, Swiss FADP and GDPR). Details per event are in the catalog.
Headers sentUp to 5 headers added to every delivery, for example the key your tool expects. Tick Secret for a sensitive value: it is encrypted and never shown again.Reserved names are rejected: Host, Content-Type, User-Agent, Cookie, webhook-…, X-Botello-….

A workspace can have 10 webhooks at most.

Secret headers are tied to the domain

If you change the URL to an address on another domain, Botello refuses to save until you enter the secret header values again. This is intentional: someone who edits the URL cannot redirect your key to their own server.

What Botello sends

Each delivery is a POST request whose body is a JSON envelope that always has the same shape:

Delivery body
{
  "id": "evt_3f9a0c1d2e4b4c5d8e7f6a5b4c3d2e1f",
  "type": "lead.created",
  "apiVersion": "2026-10-07",
  "createdAt": "2026-10-07T09:30:00.000Z",
  "workspaceId": "8f4c1b7e-1111-4a2b-9c3d-000000000001",
  "data": {
    "lead": {
      "id": "8f4c1b7e-5555-4a2b-9c3d-000000000005",
      "name": "Jeanne Exemple",
      "email": "jeanne@example.com",
      "phone": "+41790000000",
      "source": "handoff",
      "chatbotId": "8f4c1b7e-2222-4a2b-9c3d-000000000002",
      "visitorId": null,
      "createdAt": "2026-10-07T09:30:00.000Z"
    }
  }
}

The content of data for each type is described in the event catalog.

Prop

Type

Each request also carries these headers:

HeaderContent
Content-Typeapplication/json
User-AgentBotello-Webhooks/2.0
X-Botello-EventThe event type, for example lead.created
X-Botello-Event-IdThe event identifier (evt_…), same as id in the body
X-Botello-DeliveryThe identifier of this specific delivery (changes on every manual resend)
X-Botello-Timestamp, X-Botello-SignatureThe signature in Botello format
webhook-id, webhook-timestamp, webhook-signatureThe same signature in Standard Webhooks format

Plus your own headers (Headers sent). Botello’s headers always take precedence over yours.

Ignore fields you don’t recognise

Within a given apiVersion, Botello adds fields but never renames or removes them. A breaking change will come with a new apiVersion value.

Delivery and retries

  • Respond with a 2xx code in under 10 seconds. Do any long processing after responding, for example in a queue.
  • Any other code, a timeout or a network error counts as a failure. Botello then retries up to 6 times: after 1 min, 5 min, 30 min, 2 h, 6 h and 12 h, ±20 %. In total, an event is attempted 7 times at most.
  • If you respond 429 or 503 with a Retry-After header (in seconds or as an HTTP date), Botello waits that long if it is later than the next scheduled attempt, up to 6 h.
  • If you respond 410 Gone, the webhook is disabled immediately: you are saying the address no longer exists.
  • After at least 15 consecutive failures and no success for 24 h, the webhook is disabled automatically. Pending deliveries are marked as failed. Workspace admins are notified in the app.
  • The same event can arrive twice (retry, manual resend). Deduplicate with id or the webhook-id header.
  • Arrival order is not guaranteed, especially after a retry. Sort with createdAt.

Test events (Send a test event) are never retried and do not count towards automatic disabling.

Rotate the secret without downtime

In the webhook menu:

  • Regenerate secret creates a new secret. For 24 hours, every delivery is signed with the old and the new secret: the header contains two signatures separated by a space. Update your server during that time and nothing is lost. The “Rotation in progress” line shows until when the old secret still signs.
  • Revoke immediately replaces the secret with no overlap. Only use it if the secret has leaked: your server will reject deliveries until it has the new one.

A second regeneration during the 24-hour overlap is refused. Wait until it ends, or revoke immediately.

Delivery log

The Delivery log keeps the last 100 deliveries of each webhook, for 30 days at most: date, event, status (Pending, Delivered, Failed), HTTP code, number of attempts. You can:

  • filter by status;
  • open a delivery to see the exact content sent;
  • click Resend to send one specific delivery again;
  • click Resend failures to retry the failed deliveries of the last 7 days (100 at most). The webhook must be active.

A resend keeps the same event id: your system can recognise the duplicate.

Examples

Troubleshooting

What you seeLikely causeFix
The Webhooks card does not appearDeveloper tools are not enabled for your workspace, or your role is not AdminWrite to support@botello.ch
“The URL must start with https://”http:// URLUse an HTTPS address
The URL is rejected even though it is HTTPSIt points to a private address or does not resolveUse a public address, reachable from the Internet
Signature always invalidThe signature is computed on JSON that was parsed and re-encodedCompute it on the raw request body
Signature invalid “now and then”Your server clock is offSync the time (NTP): the tolerance is 5 minutes
Disabled statusToo many failures for more than 24 h, or your server responded 410Fix the server, click Enable, then Resend failures
Saving is refused after a URL changeThe domain changed and the webhook has secret headersEnter their values again
Nothing arrivesEvent not ticked, or Channels filter too strictCheck Events sent and Channels, then send a test
The name, email fields are nullInclude personal data is offTurn it on if your receiver needs it

Frequently asked questions

Learn more

Was this page helpful?
Checked against the product on 14 November 2026 Suggest a fix

On this page