---
title: "Conversation Closed"
method: POST
path: "conversation.closed"
---

# Conversation Closed

`POST conversation.closed` (webhook)

When a new conversation takes plance, this webhook is triggered

## Payload

- WebhookBodyConversationClosedWebhook
  - `id` string, uuid, required
  - `object` string
  - `event` 'captured_form.created' | 'captured_form.updated' | 'conversation.closed' | 'conversation.updated', required
  - `created_at` string, date-time, required
  - `data` ConversationClosedWebhook, required
    - `conversation_id` string, uuid, required — The unique ID of the `Conversation`. Ex: 123e4567-e89b-12d3-a456-426614174000
    - `widget_id` string, uuid, required — The unique ID of the `Widget`. Ex: 123e4567-e89b-12d3-a456-426614174000
    - `assistant_id` string, uuid, required — The unique ID of the `Assistant`. Ex: 123e4567-e89b-12d3-a456-426614174000
    - `device_type` 'mobile' | 'native' | 'desktop' | 'tablet' | 'phone', required
    - `contact_id` string, uuid, required — The unique ID of the `Contact`. Ex: 123e4567-e89b-12d3-a456-426614174000
    - `chat_count` integer, required — Total count of messages exchanged
    - `transcript` ConversationChat[], required — Transcript of the conversation
      - `conversation_id` string, uuid, nullable
      - `sender_type` 'bot' | 'agent' | 'user' | 'tool', required
      - `message_type` 'voice' | 'text', required
      - `text` string, required
      - `voice_base64` string, nullable, required
      - `data_sources` object[], nullable, required
      - `id` string, uuid
      - `updated_at` string, date-time, nullable
      - `created_at` string, date-time, nullable
      - `char_count` integer, nullable
    - `attributes` object, required — Attributes of the conversation. Ex: {'to': '16501234567', 'from': '16507654321', 'call_direction': 'inbound'}

## Acknowledgement `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/insighto/apis/ragify.md) · [All operations](https://skmtc.net/insighto/apis/ragify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insighto/ragify/revisions/cdca56191be9/schema)
