Skip to main content
A webhook sends an HTTP POST to your URL when something happens in a conversation. Use it to feed your CRM or helpdesk, or a Make, n8n or Zapier flow. Webhooks are available on the Scale plan and above.

Set up a webhook

  1. Select your chatbot and open Sales Automation.
  2. Under External integration (Webhook), enter the Destination webhook URL.
  3. Enter a Signing secret: a long random string that only you and the receiver know.
  4. Click Save integration.
The same two fields are also in Customizer, under Outgoing Webhooks, where Generate Secret creates a secret for you. Both places change the same settings. The webhook works whether Sales Automation is on or off.
Always set a signing secret. Without one, webhooks arrive without the x-customergpt-signature header, so nothing proves that a request came from CustomerGPT.
The URL must be publicly reachable on the standard port, 443 for HTTPS or 80 for HTTP. Use HTTPS so the payload is encrypted in transit. CustomerGPT doesn’t send webhooks to localhost or private network addresses, and doesn’t follow redirects.

Events

The request

timestamp is in milliseconds. Fields the visitor hasn’t given are sent as "N/A".

Payload by event

Verify the signature

x-customergpt-signature is the hex-encoded HMAC-SHA256 of the raw request body, keyed with your signing secret. A chatbot without a signing secret sends its webhooks without this header, and the example below refuses them with 401. Compute the signature over the body exactly as received, before parsing the JSON:

Delivery and retries

  • CustomerGPT waits up to 10 seconds for your response. Any 2xx status counts as delivered.
  • Any other status, or a timeout, is retried. The delay starts at 30 seconds and doubles after each failure, up to an hour. After 8 attempts, the delivery is marked failed.
  • Because of retries, the same event can arrive more than once. Use eventId to skip duplicates.
  • Sales Automation → Recent deliveries shows the status and number of attempts for each delivery. Click Retry on a failed delivery, or Retry all failed, to send it again with a fresh set of attempts once your endpoint is fixed.