Skip to content
Clovieby deleguj AI

Integrations

Webhooks: event after a conversation

Notify your system when a conversation ends: the contract, HMAC signature, retries and duplicates.

Clovie can notify your system about every conversation that ends. Typical uses: creating a card in your CRM, starting a workflow in n8n or Make, adding a row to a spreadsheet.

As of: 2026-10-18.

Setup

  1. Dashboard → Integrations → Conversation end webhook.
  2. Paste the address of your endpoint and save.
  3. Copy the signing secret. We show it only once. You use it to verify that a request really comes from us.

The address must point to a server reachable from the internet. The dashboard won't accept a local address, an internal network address or a name that isn't in DNS. We don't follow redirects: a 3xx response counts as a failed attempt, so enter the final address (for example https:// if your server redirects from http://).

You set the webhook per assistant: each one can send somewhere else. The Active / Paused switch lets you turn it off temporarily without losing the configuration, and New secret rotates the signing key.

What you'll receive

POST <your URL>
X-Clovie-Event: conversation.ended
X-Clovie-Delivery: <delivery uuid>
X-Clovie-Signature: sha256=<HMAC-SHA256 of the request body>

The body contains: the IDs of the organization, the assistant and the conversation, the start and end time, the reason the conversation ended and a summary: the number of messages, the number of assistant replies and whether there was a booking or a handoff of the conversation to a person.

The end reason is one of three values:

Value Meaning
visitor_closed The visitor closed the chat
consultant_closed An agent closed the conversation
inactive_timeout 24 hours passed without activity

The payload contains no message content or personal data. This is a design decision, not an oversight: a webhook usually goes to a third-party system, and sending transcripts of customer conversations there would create obligations under the GDPR that can't be undone. You can get the conversation content from the dashboard or through the API, deliberately.

Verifying the signature

Compute HMAC-SHA256 of the raw request body using your secret and compare it with the X-Clovie-Signature header. Computing it from parsed and re-serialized JSON gives a different result: the key order and whitespace must match.

Reject requests whose signature doesn't match.

Retries and duplicates

If your endpoint doesn't respond with success, we retry five times with increasing intervals: immediately, after a minute, after 5 minutes, after 30 minutes and after 2 hours. The timeout for a single attempt is 10 seconds.

There's one delivery per conversation, but with retries the same body can arrive more than once, for example when your server processed the request but the response didn't make it back in time. Filter out duplicates by X-Clovie-Delivery, and make the operation on your side idempotent.

Respond quickly: accept the event, return 200 and process it asynchronously. Heavy work done during the request ends with a timeout and an unnecessary retry.