Skip to content
Kaizena FlowDocs
Search

Search the docs

conversation.ended

Support conversation ended: a support conversation ended: by the customer, a person, or when it went quiet.

  • Topic: conversation.ended, in the Kaizena-Webhook-Topic header and the body's topic

  • Sent to: Your own endpoints, and apps

  • About: the conversation, under data.conversation

  • Payload version: 1

Payload

FieldTypeDescription
idstring (uuid)The delivery's id: the same when a delivery is sent again, so a receiver can do it once.
topic"conversation.ended"
version1The payload's version; a change to a shape raises it.
storeobject
store.slugstring
store.namestring
created_atstring (date-time)When the event happened.
dataobject
data.conversationobject
data.conversation.idstring (uuid)
data.conversation.sourceone of site, email, formThe site's chat, an email to the desk, or the site's email form.
data.conversation.statusone of open, ended
data.conversation.handlerone of ai, queue, humanWho had it last: the AI, the queue for a person, or a person.
data.conversation.ended_byone of customer, agent, timeout, system or null
data.conversation.ratingone of good, bad or nullThe customer's rating. Never the comment they wrote.
data.conversation.escalationstring or nullWhy a person had to answer, as the AI named it when it handed over.
data.conversation.customer_idstring (uuid) or nullThe signed-in customer, when there was one.
data.conversation.marketstring or null
data.conversation.localestring
data.conversation.messagesintegerHow many messages it holds.
data.conversation.created_atstring (date-time)
data.conversation.first_answer_atstring (date-time) or nullWhen a person first answered.
data.conversation.ended_atstring (date-time) or null
data.conversation.admin_urlstringWhere it is in the store's admin; empty in a sample.

Example

{
  "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
  "topic": "conversation.ended",
  "version": 1,
  "store": {
    "slug": "your-store",
    "name": "Example"
  },
  "created_at": "2026-11-03T09:30:00Z",
  "data": {
    "conversation": {
      "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
      "source": "site",
      "status": "ended",
      "handler": "ai",
      "ended_by": "customer",
      "rating": "good",
      "escalation": "example",
      "customer_id": "0af2dcd1-60e1-45c6-9774-425ae857a555",
      "market": "NO",
      "locale": "nb",
      "messages": 1,
      "created_at": "2026-11-03T09:30:00Z",
      "first_answer_at": "2026-11-03T09:30:00Z",
      "ended_at": "2026-11-03T09:30:00Z",
      "admin_url": "https://kaizenaflow.com/admin/your-store"
    }
  }
}

Every value is an example of its type, not a real store's.

Signature and retries

Each delivery carries the headers every topic has and is signed: check the signature before you trust it. One not answered with a 2xx status is tried again.

Made from the API contract, version 1.57This page as Markdown

Was this page helpful?