Configure Webhook

To configure webhooks, open the Developer page from the sidebar and select the Webhooks tab. Here, you can view your existing webhooks or create a new one.

You can set up more than one webhook on an agent, each with its own endpoint and its own set of events — for example, one that notifies your CRM when a lead converts, and another that posts every message to an internal service. How many you can add depends on your plan.

If no webhook is set up yet, click Add webhook to open the configuration screen. Once you have at least one, the Add webhook button sits at the top right of the list.

Webhook Configuration

Fill Webhook Details

Fill in the webhook details:

  • Endpoint URL: Paste the full web address where you want notifications sent. It must start with https://. We send a POST request with a JSON payload to this URL.
  • Events (Triggers): Select the specific events that should trigger a notification. You can choose one or multiple triggers:
    • First Message: Triggered when a lead sends their very first message.
    • On Converted: Triggered specifically when a lead is marked as "Converted".
    • On Warm: Triggered when a lead is marked as "Warm".
    • On Hot: Triggered when a lead is marked as "Hot".
    • Every Message: Triggered everytime a lead message.
    • Custom: Define your own specific condition using a Custom Trigger Prompt. When selected, you'll see a text area to describe exactly when the webhook should fire (e.g., "When a lead shares its contact information").

Each webhook has its own custom trigger condition, so two webhooks can fire on completely different conditions.

Webhook Configuration

Save the Webhook

  • Click Create webhook to activate it. Your webhook will start receiving notifications for the selected events.

Once saved, you are returned to the Webhooks tab, where each webhook appears as its own card showing its status, endpoint URL, and selected events. Click a card at any time to edit that webhook.

Webhook List

Managing an Existing Webhook

On each webhook card, open the ⋮ menu on the right for these options:

  • Sample Payload: Opens a side panel showing the JSON format of the data that will be sent to that webhook. You can copy it from there.
  • Test Webhook: Sends a test event to that webhook's URL so you can verify your integration.
  • Remove Webhook: Deletes that webhook. You’ll be asked to confirm before it’s removed. The other webhooks on the agent are left untouched.

Important: Removing a webhook cannot be undone.

How Many Webhooks You Can Add

Your plan sets how many webhooks each agent can have. Once you reach that number the Add webhook button is disabled, and the list shows how many you have used. Remove one you no longer need, or upgrade your plan, to add another.

How Multiple Webhooks Fire

Every webhook is evaluated on its own, and all of the ones whose events match are delivered at the same time:

  • Two webhooks listening for the same event both receive it — one is not "first".
  • Each webhook sends at most one request per conversation update, even if several of its selected events match at once.
  • A failure on one webhook does not stop the others. Each is retried on its own.

What the Webhook Request Looks Like

When a trigger fires, TailorTalk sends an HTTP POST request to your endpoint URL with a JSON body.

Headers

Key Value
Content-Type application/json
User-Agent TailorTalk-Webhook/1.0
X-Webhook-Version v1
X-Webhook-Timestamp Unix epoch seconds when the request was sent (e.g. 1754236805)

Payload Structure

Every payload uses the same envelope, regardless of which trigger fired:

Field Description
webhook_trigger Which trigger fired — first_message, on_warm, on_hot, on_converted, every_message, or custom
event_type Always lead
event_version Always v1
occurred_at ISO 8601 timestamp in your agent's timezone
data The full lead object — contact details, status, chat summary, chat history, bookings and payments, plus any custom attributes you have configured on your agent

Because the fields inside data depend on your own agent setup, use Sample Payload from a webhook card's ⋮ menu to see the exact JSON your endpoint will receive.

Responding to a Webhook

  • Reply with 200, 201, or 204 to acknowledge the event.
  • If your endpoint is unreachable or returns a 5xx error, we try again a few times, waiting a little longer before each retry. Make sure your endpoint responds quickly.
  • A 400, 401, 403, 404, or 422 response is treated as a permanent failure and is not retried.
XLinkedIn