Skip to main content
Intellixent sends a POST request to your configured webhook URL when a chat conversation ends — whether via WhatsApp or your web widget. The payload includes the full transcript, extracted variables, and customer details.

Setup

Enable this webhook using the API:
POST https://portal.intellixent.ai/api/assistants/{assistantId}/enable-conversation-ended-webhook
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "webhook_url": "https://your-server.com/webhook/conversation-ended"
}
To disable it:
POST https://portal.intellixent.ai/api/assistants/{assistantId}/disable-conversation-ended-webhook
Authorization: Bearer YOUR_API_KEY

Retry behavior

If your endpoint returns a non-2xx status, Intellixent retries automatically:
AttemptDelay
1st retry30 seconds
2nd retry60 seconds
3rd retry120 seconds
After 3 failed attempts, the delivery is marked as failed.

Payload fields

conversation_id
string
UUID of the conversation.
assistant_id
string
UUID of the assistant that handled the conversation.
type
string
Conversation channel: widget or whatsapp.
message_count
integer
Total number of messages exchanged.
status
string
Always ended for this webhook.
extracted_variables
object
Variables extracted by the AI from your post-call schema configuration.
input_variables
object
Variables passed to the assistant at conversation start (e.g., pre-chat form fields).
transcript
array
Array of message objects with role (assistant or user) and content fields.
formatted_transcript
string
Human-readable transcript with AI: and Customer: prefixes.
customer_phone
string
Customer phone number. Available for WhatsApp; null for widget.
customer_name
string
Customer name from pre-chat form data, or null.
sender
object
WhatsApp sender info. Only present for WhatsApp conversations; null for widget.
created_at
string
ISO 8601 timestamp when the conversation started.
ended_at
string
ISO 8601 timestamp when the conversation ended.

Example payloads

{
  "conversation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "assistant_id": "f9e8d7c6-b5a4-3210-fedc-ba9876543210",
  "type": "widget",
  "message_count": 8,
  "status": "ended",
  "extracted_variables": {
    "status": true,
    "summary": "Customer asked about pricing and was interested in the Pro plan"
  },
  "input_variables": { "name": "John Doe", "email": "john@example.com" },
  "transcript": [
    { "role": "assistant", "content": "Hi! How can I help you today?" },
    { "role": "user", "content": "What are your pricing plans?" }
  ],
  "formatted_transcript": "AI: Hi! How can I help you today?\nCustomer: What are your pricing plans?",
  "customer_phone": null,
  "customer_name": "John Doe",
  "sender": null,
  "created_at": "2026-02-23T09:30:00+01:00",
  "ended_at": "2026-02-23T10:00:00+01:00"
}