{ "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 plans 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": "I have a question about your service." }, { "role": "assistant", "content": "Of course! I'd be happy to help. What would you like to know?" }, { "role": "user", "content": "What are your pricing plans?" } ], "formatted_transcript": "AI: Hi! How can I help you today?\nCustomer: I have a question about your service.\nAI: Of course! I'd be happy to help. What would you like to know?\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"}
{ "conversation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "assistant_id": "f9e8d7c6-b5a4-3210-fedc-ba9876543210", "type": "whatsapp", "message_count": 12, "status": "ended", "extracted_variables": { "status": true, "summary": "Customer scheduled an appointment for next week" }, "input_variables": {}, "transcript": [ { "role": "user", "content": "Hello, I'd like to book an appointment" }, { "role": "assistant", "content": "Hi! I'd be happy to help you book an appointment. What date works best for you?" } ], "formatted_transcript": "Customer: Hello, I'd like to book an appointment\nAI: Hi! I'd be happy to help you book an appointment. What date works best for you?", "customer_phone": "+1234567890", "customer_name": null, "sender": { "phone_number": "+19876543210", "display_name": "My Business" }, "created_at": "2026-02-23T14:00:00+01:00", "ended_at": "2026-02-23T14:25:00+01:00"}
Webhooks
Conversation Ended Webhook
Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data
{ "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 plans 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": "I have a question about your service." }, { "role": "assistant", "content": "Of course! I'd be happy to help. What would you like to know?" }, { "role": "user", "content": "What are your pricing plans?" } ], "formatted_transcript": "AI: Hi! How can I help you today?\nCustomer: I have a question about your service.\nAI: Of course! I'd be happy to help. What would you like to know?\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"}
{ "conversation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "assistant_id": "f9e8d7c6-b5a4-3210-fedc-ba9876543210", "type": "whatsapp", "message_count": 12, "status": "ended", "extracted_variables": { "status": true, "summary": "Customer scheduled an appointment for next week" }, "input_variables": {}, "transcript": [ { "role": "user", "content": "Hello, I'd like to book an appointment" }, { "role": "assistant", "content": "Hi! I'd be happy to help you book an appointment. What date works best for you?" } ], "formatted_transcript": "Customer: Hello, I'd like to book an appointment\nAI: Hi! I'd be happy to help you book an appointment. What date works best for you?", "customer_phone": "+1234567890", "customer_name": null, "sender": { "phone_number": "+19876543210", "display_name": "My Business" }, "created_at": "2026-02-23T14:00:00+01:00", "ended_at": "2026-02-23T14:25:00+01:00"}
The Conversation Ended Webhook is automatically sent to your specified webhook URL after a chat conversation (WhatsApp or Web Widget) ends. This webhook contains the full transcript, extracted variables, customer information, and sender details.
Provide your webhook URL where notifications will be sent
Optionally configure post-call variables on your assistant to extract structured data from conversations
Request Format
The webhook is sent as a POST request to your configured URL with the following JSON payload:
Payload Structure
string
Unique identifier (UUID) of the conversation
string
Unique identifier (UUID) of the assistant that handled the conversation
string
The type of conversation. Possible values: widget, whatsapp
integer
Total number of messages exchanged in the conversation
string
Status of the conversation. Value: ended
object
Variables extracted by AI based on your assistant’s post-call schema configuration
Show Example extracted variables
boolean
Whether the conversation objective was achieved
string
Conversation summary
string|number|boolean
Any custom variables you defined in the assistant configuration
object
Variables that were passed to the assistant at the start of the conversation (e.g., from pre-chat form fields or automation flows)
array
Array of message objects representing the full conversation
Show Message properties
string
The sender role: assistant or user
string
The message content
string
Human-readable formatted transcript with AI: and Customer: prefixes
string
Customer phone number (available for WhatsApp conversations, null for widget conversations)
string
Customer name if provided (e.g., from pre-chat form), or null
object
WhatsApp sender information (only present for WhatsApp conversations, null for widget)
Show Sender properties
string
The WhatsApp sender phone number
string
The WhatsApp sender display name
string
ISO 8601 timestamp when the conversation started (in the user’s configured timezone)
string
ISO 8601 timestamp when the conversation ended (in the user’s configured timezone)
{ "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 plans 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": "I have a question about your service." }, { "role": "assistant", "content": "Of course! I'd be happy to help. What would you like to know?" }, { "role": "user", "content": "What are your pricing plans?" } ], "formatted_transcript": "AI: Hi! How can I help you today?\nCustomer: I have a question about your service.\nAI: Of course! I'd be happy to help. What would you like to know?\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"}
{ "conversation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "assistant_id": "f9e8d7c6-b5a4-3210-fedc-ba9876543210", "type": "whatsapp", "message_count": 12, "status": "ended", "extracted_variables": { "status": true, "summary": "Customer scheduled an appointment for next week" }, "input_variables": {}, "transcript": [ { "role": "user", "content": "Hello, I'd like to book an appointment" }, { "role": "assistant", "content": "Hi! I'd be happy to help you book an appointment. What date works best for you?" } ], "formatted_transcript": "Customer: Hello, I'd like to book an appointment\nAI: Hi! I'd be happy to help you book an appointment. What date works best for you?", "customer_phone": "+1234567890", "customer_name": null, "sender": { "phone_number": "+19876543210", "display_name": "My Business" }, "created_at": "2026-02-23T14:00:00+01:00", "ended_at": "2026-02-23T14:25:00+01:00"}
Retry Behavior
If your webhook endpoint returns a non-2xx status code or the request fails, the system will retry:
Attempt
Delay
1st retry
30 seconds
2nd retry
60 seconds
3rd retry
120 seconds
After 3 failed attempts, the webhook delivery is marked as failed and no further retries are attempted.
Important Notes
The conversation_id and assistant_id are UUIDs, not integer IDs
The sender field is only populated for WhatsApp conversations — it will be null for web widget conversations
The customer_phone is only available for WhatsApp conversations
The customer_name comes from pre-chat form data or conversation context
Timestamps use the user’s configured timezone (ISO 8601 format)
The extracted_variables are populated from your assistant’s post-call schema evaluation
The input_variables contain data from pre-chat forms (web widget) or automation flows
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Aiplocalls","colors":{"primary":"#06df4b","light":"#06df4b","dark":"#65fe50"},"favicon":"https://mintcdn.com/aiployees/rBUrtDuuZAFlKDQw/favicon.png?fit=max\u0026auto=format\u0026n=rBUrtDuuZAFlKDQw\u0026q=85\u0026s=e9ebaee2fe07915e0201ecd6450b8b64","logo":{"light":"https://mintcdn.com/aiployees/3FOzBJ8Q00Sw5bs2/resources/logo/light.png?fit=max\u0026auto=format\u0026n=3FOzBJ8Q00Sw5bs2\u0026q=85\u0026s=4d32650a4d4f842f31ed7fb21c04a457","dark":"https://mintcdn.com/aiployees/3FOzBJ8Q00Sw5bs2/resources/logo/dark.png?fit=max\u0026auto=format\u0026n=3FOzBJ8Q00Sw5bs2\u0026q=85\u0026s=41ea785a431575e9ea86bb8afd61bbff"},"api":{"mdx":{"server":"https://call.aiployees.com/api/","auth":{"method":"bearer","name":null}}},"navbar":{"links":[{"label":"Начало","href":"https://aiplocalls.com"},{"label":"Поддръжка","href":"support@aiployees.com"}],"primary":{"type":"button","label":"Табло","href":"https://call.aiployees.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/aiployees"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aiployees","hasAudioNarration":false,"actualSubdomain":"aiployees","customDomains":["docs.aiployees.com"],"gitSource":{"type":"github","owner":"humanaizr","repo":"aiplocalls-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b1e29ffae5051c3ff1cd"},"entitlements":{},"buildId":"6afe5551657074bcb69e9df4","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Ръководство за платформата","count":239},{"language":"default","tag":"API справочник","count":68},{"language":"default","tag":"AI Assistants Overview","count":20},{"language":"default","tag":"Преглед на AI асистенти","count":20},{"language":"default","tag":"Assistants","count":16},{"language":"default","tag":"Асистенти","count":16},{"language":"default","tag":"Отстраняване на проблеми и ЧЗВ","count":12},{"language":"default","tag":"Troubleshooting \u0026 FAQs","count":12},{"language":"default","tag":"Knowledgebases","count":10},{"language":"default","tag":"WhatsApp","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/webhooks/conversation-ended-webhook","slug":"/api-reference/webhooks/conversation-ended-webhook","pageMetadata":{"title":"Conversation Ended Webhook","icon":"webhook","description":"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data","href":"/api-reference/webhooks/conversation-ended-webhook"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Conversation Ended Webhook is automatically sent to your specified webhook URL after a chat conversation (WhatsApp or Web Widget) ends. This webhook contains the full transcript, extracted variables, customer information, and sender details.`}),`\n`,_jsx(Heading,{level:`2`,id:`webhook-configuration`,children:`Webhook Configuration`}),`\n`,_jsx(_components.p,{children:`To enable conversation ended webhooks:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(_components.a,{href:`/api-reference/assistants/enable-conversation-ended-webhook`,children:`Enable Conversation Ended Webhook`}),` API endpoint`]}),`\n`,_jsx(_components.li,{children:`Provide your webhook URL where notifications will be sent`}),`\n`,_jsx(_components.li,{children:`Optionally configure post-call variables on your assistant to extract structured data from conversations`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-format`,children:`Request Format`}),`\n`,_jsx(_components.p,{children:`The webhook is sent as a POST request to your configured URL with the following JSON payload:`}),`\n`,_jsx(Heading,{level:`3`,id:`payload-structure`,children:`Payload Structure`}),`\n`,_jsx(ResponseField,{name:`conversation_id`,type:`string`,id:`param-conversation-id`,children:_jsx(_components.p,{children:`Unique identifier (UUID) of the conversation`})}),`\n`,_jsx(ResponseField,{name:`assistant_id`,type:`string`,id:`param-assistant-id`,children:_jsx(_components.p,{children:`Unique identifier (UUID) of the assistant that handled the conversation`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of conversation. Possible values: `,_jsx(_components.code,{children:`widget`}),`, `,_jsx(_components.code,{children:`whatsapp`})]})}),`\n`,_jsx(ResponseField,{name:`message_count`,type:`integer`,id:`param-message-count`,children:_jsx(_components.p,{children:`Total number of messages exchanged in the conversation`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Status of the conversation. Value: `,_jsx(_components.code,{children:`ended`})]})}),`\n`,_jsxs(ResponseField,{name:`extracted_variables`,type:`object`,id:`param-extracted-variables`,children:[_jsx(_components.p,{children:`Variables extracted by AI based on your assistant’s post-call schema configuration`}),_jsxs(Expandable,{title:`Example extracted variables`,children:[_jsx(ResponseField,{name:`status`,type:`boolean`,id:`param-status-1`,children:_jsx(_components.p,{children:`Whether the conversation objective was achieved`})}),_jsx(ResponseField,{name:`summary`,type:`string`,id:`param-summary`,children:_jsx(_components.p,{children:`Conversation summary`})}),_jsx(ResponseField,{name:`custom_variable`,type:`string|number|boolean`,id:`param-custom-variable`,children:_jsx(_components.p,{children:`Any custom variables you defined in the assistant configuration`})})]})]}),`\n`,_jsx(ResponseField,{name:`input_variables`,type:`object`,id:`param-input-variables`,children:_jsx(_components.p,{children:`Variables that were passed to the assistant at the start of the conversation (e.g., from pre-chat form fields or automation flows)`})}),`\n`,_jsxs(ResponseField,{name:`transcript`,type:`array`,id:`param-transcript`,children:[_jsx(_components.p,{children:`Array of message objects representing the full conversation`}),_jsxs(Expandable,{title:`Message properties`,children:[_jsx(ResponseField,{name:`role`,type:`string`,id:`param-role`,children:_jsxs(_components.p,{children:[`The sender role: `,_jsx(_components.code,{children:`assistant`}),` or `,_jsx(_components.code,{children:`user`})]})}),_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content`,children:_jsx(_components.p,{children:`The message content`})})]})]}),`\n`,_jsx(ResponseField,{name:`formatted_transcript`,type:`string`,id:`param-formatted-transcript`,children:_jsxs(_components.p,{children:[`Human-readable formatted transcript with `,_jsx(_components.code,{children:`AI:`}),` and `,_jsx(_components.code,{children:`Customer:`}),` prefixes`]})}),`\n`,_jsx(ResponseField,{name:`customer_phone`,type:`string`,id:`param-customer-phone`,children:_jsxs(_components.p,{children:[`Customer phone number (available for WhatsApp conversations, `,_jsx(_components.code,{children:`null`}),` for widget conversations)`]})}),`\n`,_jsx(ResponseField,{name:`customer_name`,type:`string`,id:`param-customer-name`,children:_jsxs(_components.p,{children:[`Customer name if provided (e.g., from pre-chat form), or `,_jsx(_components.code,{children:`null`})]})}),`\n`,_jsxs(ResponseField,{name:`sender`,type:`object`,id:`param-sender`,children:[_jsxs(_components.p,{children:[`WhatsApp sender information (only present for WhatsApp conversations, `,_jsx(_components.code,{children:`null`}),` for widget)`]}),_jsxs(Expandable,{title:`Sender properties`,children:[_jsx(ResponseField,{name:`phone_number`,type:`string`,id:`param-phone-number`,children:_jsx(_components.p,{children:`The WhatsApp sender phone number`})}),_jsx(ResponseField,{name:`display_name`,type:`string`,id:`param-display-name`,children:_jsx(_components.p,{children:`The WhatsApp sender display name`})})]})]}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the conversation started (in the user’s configured timezone)`})}),`\n`,_jsx(ResponseField,{name:`ended_at`,type:`string`,id:`param-ended-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the conversation ended (in the user’s configured timezone)`})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`retry-behavior`,children:`Retry Behavior`}),`\n`,_jsx(_components.p,{children:`If your webhook endpoint returns a non-2xx status code or the request fails, the system will retry:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Attempt`}),_jsx(_components.th,{children:`Delay`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1st retry`}),_jsx(_components.td,{children:`30 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`2nd retry`}),_jsx(_components.td,{children:`60 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3rd retry`}),_jsx(_components.td,{children:`120 seconds`})]})]})]}),`\n`,_jsx(_components.p,{children:`After 3 failed attempts, the webhook delivery is marked as failed and no further retries are attempted.`}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`conversation_id`}),` and `,_jsx(_components.code,{children:`assistant_id`}),` are UUIDs, not integer IDs`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`sender`}),` field is only populated for WhatsApp conversations — it will be `,_jsx(_components.code,{children:`null`}),` for web widget conversations`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`customer_phone`}),` is only available for WhatsApp conversations`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`customer_name`}),` comes from pre-chat form data or conversation context`]}),`\n`,_jsx(_components.li,{children:`Timestamps use the user’s configured timezone (ISO 8601 format)`}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`extracted_variables`}),` are populated from your assistant’s post-call schema evaluation`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`input_variables`}),` contain data from pre-chat forms (web widget) or automation flows`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Conversation Ended Webhook","icon":"webhook","description":"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data","href":"/api-reference/webhooks/conversation-ended-webhook"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Conversation Ended Webhook is automatically sent to your specified webhook URL after a chat conversation (WhatsApp or Web Widget) ends. This webhook contains the full transcript, extracted variables, customer information, and sender details.`}),`\n`,_jsx(Heading,{level:`2`,id:`webhook-configuration`,children:`Webhook Configuration`}),`\n`,_jsx(_components.p,{children:`To enable conversation ended webhooks:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(_components.a,{href:`/api-reference/assistants/enable-conversation-ended-webhook`,children:`Enable Conversation Ended Webhook`}),` API endpoint`]}),`\n`,_jsx(_components.li,{children:`Provide your webhook URL where notifications will be sent`}),`\n`,_jsx(_components.li,{children:`Optionally configure post-call variables on your assistant to extract structured data from conversations`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-format`,children:`Request Format`}),`\n`,_jsx(_components.p,{children:`The webhook is sent as a POST request to your configured URL with the following JSON payload:`}),`\n`,_jsx(Heading,{level:`3`,id:`payload-structure`,children:`Payload Structure`}),`\n`,_jsx(ResponseField,{name:`conversation_id`,type:`string`,id:`param-conversation-id`,children:_jsx(_components.p,{children:`Unique identifier (UUID) of the conversation`})}),`\n`,_jsx(ResponseField,{name:`assistant_id`,type:`string`,id:`param-assistant-id`,children:_jsx(_components.p,{children:`Unique identifier (UUID) of the assistant that handled the conversation`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of conversation. Possible values: `,_jsx(_components.code,{children:`widget`}),`, `,_jsx(_components.code,{children:`whatsapp`})]})}),`\n`,_jsx(ResponseField,{name:`message_count`,type:`integer`,id:`param-message-count`,children:_jsx(_components.p,{children:`Total number of messages exchanged in the conversation`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Status of the conversation. Value: `,_jsx(_components.code,{children:`ended`})]})}),`\n`,_jsxs(ResponseField,{name:`extracted_variables`,type:`object`,id:`param-extracted-variables`,children:[_jsx(_components.p,{children:`Variables extracted by AI based on your assistant’s post-call schema configuration`}),_jsxs(Expandable,{title:`Example extracted variables`,children:[_jsx(ResponseField,{name:`status`,type:`boolean`,id:`param-status-1`,children:_jsx(_components.p,{children:`Whether the conversation objective was achieved`})}),_jsx(ResponseField,{name:`summary`,type:`string`,id:`param-summary`,children:_jsx(_components.p,{children:`Conversation summary`})}),_jsx(ResponseField,{name:`custom_variable`,type:`string|number|boolean`,id:`param-custom-variable`,children:_jsx(_components.p,{children:`Any custom variables you defined in the assistant configuration`})})]})]}),`\n`,_jsx(ResponseField,{name:`input_variables`,type:`object`,id:`param-input-variables`,children:_jsx(_components.p,{children:`Variables that were passed to the assistant at the start of the conversation (e.g., from pre-chat form fields or automation flows)`})}),`\n`,_jsxs(ResponseField,{name:`transcript`,type:`array`,id:`param-transcript`,children:[_jsx(_components.p,{children:`Array of message objects representing the full conversation`}),_jsxs(Expandable,{title:`Message properties`,children:[_jsx(ResponseField,{name:`role`,type:`string`,id:`param-role`,children:_jsxs(_components.p,{children:[`The sender role: `,_jsx(_components.code,{children:`assistant`}),` or `,_jsx(_components.code,{children:`user`})]})}),_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content`,children:_jsx(_components.p,{children:`The message content`})})]})]}),`\n`,_jsx(ResponseField,{name:`formatted_transcript`,type:`string`,id:`param-formatted-transcript`,children:_jsxs(_components.p,{children:[`Human-readable formatted transcript with `,_jsx(_components.code,{children:`AI:`}),` and `,_jsx(_components.code,{children:`Customer:`}),` prefixes`]})}),`\n`,_jsx(ResponseField,{name:`customer_phone`,type:`string`,id:`param-customer-phone`,children:_jsxs(_components.p,{children:[`Customer phone number (available for WhatsApp conversations, `,_jsx(_components.code,{children:`null`}),` for widget conversations)`]})}),`\n`,_jsx(ResponseField,{name:`customer_name`,type:`string`,id:`param-customer-name`,children:_jsxs(_components.p,{children:[`Customer name if provided (e.g., from pre-chat form), or `,_jsx(_components.code,{children:`null`})]})}),`\n`,_jsxs(ResponseField,{name:`sender`,type:`object`,id:`param-sender`,children:[_jsxs(_components.p,{children:[`WhatsApp sender information (only present for WhatsApp conversations, `,_jsx(_components.code,{children:`null`}),` for widget)`]}),_jsxs(Expandable,{title:`Sender properties`,children:[_jsx(ResponseField,{name:`phone_number`,type:`string`,id:`param-phone-number`,children:_jsx(_components.p,{children:`The WhatsApp sender phone number`})}),_jsx(ResponseField,{name:`display_name`,type:`string`,id:`param-display-name`,children:_jsx(_components.p,{children:`The WhatsApp sender display name`})})]})]}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the conversation started (in the user’s configured timezone)`})}),`\n`,_jsx(ResponseField,{name:`ended_at`,type:`string`,id:`param-ended-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the conversation ended (in the user’s configured timezone)`})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Conversation Ended Webhook Payload`,numberOfLines:`39`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`39`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversation_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"assistant_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f9e8d7c6-b5a4-3210-fedc-ba9876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"widget\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ended\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extracted_variables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer asked about pricing plans and was interested in the Pro plan\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_variables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"john@example.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transcript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hi! How can I help you today?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I have a question about your service.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Of course! I'd be happy to help. What would you like to know?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What are your pricing plans?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"formatted_transcript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AI: Hi! How can I help you today?`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Customer: I have a question about your service.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`AI: Of course! I'd be happy to help. What would you like to know?`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Customer: What are your pricing plans?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sender\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-02-23T09:30:00+01:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ended_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-02-23T10:00:00+01:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`WhatsApp Conversation Ended Webhook`,numberOfLines:`31`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`31`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversation_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b2c3d4e5-f6a7-8901-bcde-f12345678901\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"assistant_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f9e8d7c6-b5a4-3210-fedc-ba9876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whatsapp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ended\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extracted_variables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer scheduled an appointment for next week\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_variables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transcript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, I'd like to book an appointment\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hi! I'd be happy to help you book an appointment. What date works best for you?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"formatted_transcript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer: Hello, I'd like to book an appointment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`AI: Hi! I'd be happy to help you book an appointment. What date works best for you?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sender\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+19876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"My Business\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-02-23T14:00:00+01:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ended_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-02-23T14:25:00+01:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`retry-behavior`,children:`Retry Behavior`}),`\n`,_jsx(_components.p,{children:`If your webhook endpoint returns a non-2xx status code or the request fails, the system will retry:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Attempt`}),_jsx(_components.th,{children:`Delay`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1st retry`}),_jsx(_components.td,{children:`30 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`2nd retry`}),_jsx(_components.td,{children:`60 seconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3rd retry`}),_jsx(_components.td,{children:`120 seconds`})]})]})]}),`\n`,_jsx(_components.p,{children:`After 3 failed attempts, the webhook delivery is marked as failed and no further retries are attempted.`}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`conversation_id`}),` and `,_jsx(_components.code,{children:`assistant_id`}),` are UUIDs, not integer IDs`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`sender`}),` field is only populated for WhatsApp conversations — it will be `,_jsx(_components.code,{children:`null`}),` for web widget conversations`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`customer_phone`}),` is only available for WhatsApp conversations`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`customer_name`}),` comes from pre-chat form data or conversation context`]}),`\n`,_jsx(_components.li,{children:`Timestamps use the user’s configured timezone (ISO 8601 format)`}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`extracted_variables`}),` are populated from your assistant’s post-call schema evaluation`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`input_variables`}),` contain data from pre-chat forms (web widget) or automation flows`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Conversation Ended Webhook","icon":"webhook","description":"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data","href":"/api-reference/webhooks/conversation-ended-webhook"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Webhook Configuration","slug":"webhook-configuration","depth":2,"children":[]},{"title":"Request Format","slug":"request-format","depth":2,"children":[{"title":"Payload Structure","slug":"payload-structure","depth":3,"children":[]}]},{"title":"Retry Behavior","slug":"retry-behavior","depth":2,"children":[]},{"title":"Important Notes","slug":"important-notes","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Conversation Ended Webhook Payload","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"39\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"conversation_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"assistant_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"f9e8d7c6-b5a4-3210-fedc-ba9876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"widget\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ended\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"extracted_variables\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"summary\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer asked about pricing plans and was interested in the Pro plan\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"input_variables\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"John Doe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"john@example.com\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transcript\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hi! How can I help you today?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"I have a question about your service.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Of course! I'd be happy to help. What would you like to know?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"What are your pricing plans?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"formatted_transcript\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AI: Hi! How can I help you today?\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Customer: I have a question about your service.\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">AI: Of course! I'd be happy to help. What would you like to know?\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Customer: What are your pricing plans?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer_phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"John Doe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sender\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-02-23T09:30:00+01:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ended_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-02-23T10:00:00+01:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"WhatsApp Conversation Ended Webhook","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"31\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"conversation_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"b2c3d4e5-f6a7-8901-bcde-f12345678901\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"assistant_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"f9e8d7c6-b5a4-3210-fedc-ba9876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"whatsapp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ended\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"extracted_variables\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"summary\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer scheduled an appointment for next week\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"input_variables\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transcript\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello, I'd like to book an appointment\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hi! I'd be happy to help you book an appointment. What date works best for you?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"formatted_transcript\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer: Hello, I'd like to book an appointment\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">AI: Hi! I'd be happy to help you book an appointment. What date works best for you?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer_phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sender\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"phone_number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+19876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"display_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"My Business\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-02-23T14:00:00+01:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ended_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-02-23T14:25:00+01:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"aiployees","siteName":"Aiplocalls","title":"Conversation Ended Webhook - Aiplocalls","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-29T05:34:43.097Z","originalFileLocation":"api-reference/webhooks/conversation-ended-webhook.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aiplocalls\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Conversation Ended Webhook - Aiplocalls\">\u003cmeta data-mint-head property=\"og:description\" content=\"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aiplocalls\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aiployees.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Conversation+Ended+Webhook\u0026amp;description=Webhook+sent+after+a+chat+conversation+ends+containing+transcript%2C+extracted+variables%2C+and+customer+data\u0026amp;theme=e19cb624cb1c919c7b4dcf4e\u0026amp;signature=5be59cc8f2aa1fc91b74e2ed892de1881dafd1124fe81e5f3e29d011a876d5a5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Conversation Ended Webhook - Aiplocalls\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aiployees.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Conversation+Ended+Webhook\u0026amp;description=Webhook+sent+after+a+chat+conversation+ends+containing+transcript%2C+extracted+variables%2C+and+customer+data\u0026amp;theme=e19cb624cb1c919c7b4dcf4e\u0026amp;signature=5be59cc8f2aa1fc91b74e2ed892de1881dafd1124fe81e5f3e29d011a876d5a5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aiployees/oVIH8DBIOd5bJNKE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aiplocalls\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#06df4b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/conversation-ended-webhook.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aiployees.com/#organization\",\"name\":\"Aiplocalls\",\"url\":\"https://docs.aiployees.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aiployees/3FOzBJ8Q00Sw5bs2/resources/logo/light.png?fit=max\u0026auto=format\u0026n=3FOzBJ8Q00Sw5bs2\u0026q=85\u0026s=4d32650a4d4f842f31ed7fb21c04a457\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aiployees.com#website\",\"name\":\"Aiplocalls\",\"url\":\"https://docs.aiployees.com\",\"publisher\":{\"@id\":\"https://docs.aiployees.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook#webpage\",\"url\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook\",\"name\":\"Conversation Ended Webhook\",\"description\":\"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\",\"dateModified\":\"2026-03-29T05:34:43.097Z\",\"isPartOf\":{\"@id\":\"https://docs.aiployees.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhooks\",\"item\":\"https://docs.aiployees.com/api-reference/webhooks/post-call-webhook\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conversation Ended Webhook\",\"item\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook#article\",\"headline\":\"Conversation Ended Webhook\",\"name\":\"Conversation Ended Webhook\",\"description\":\"Webhook sent after a chat conversation ends containing transcript, extracted variables, and customer data\",\"url\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiployees.com/api-reference/webhooks/conversation-ended-webhook#webpage\"},\"dateModified\":\"2026-03-29T05:34:43.097Z\",\"publisher\":{\"@id\":\"https://docs.aiployees.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aiployees.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aiplocalls\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aiplocalls\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhooks/conversation-ended-webhook.md","siteName":"Aiplocalls","nav":{"global":null,"anchors":[{"anchor":"Ръководство за платформата","icon":"book","groups":[{"group":"Въведение","pages":[{"title":"Какво е Aiplocalls?","icon":"circle-question","href":"/bg/introduction/what-is-platform"},{"title":"Как работи (Кратък преглед)","icon":"diagram-project","href":"/bg/introduction/how-it-works"},{"title":"Ключова терминология","icon":"book","href":"/bg/introduction/key-terminology"}]},{"group":"Начало","pages":[{"title":"Основни концепции","icon":"lightbulb","href":"/bg/getting-started/core-concepts"},{"title":"Разбиране на минутите за разговори и фактурирането","icon":"credit-card","href":"/bg/getting-started/understanding-billing"}]},{"group":"Преглед на AI асистенти","pages":[{"title":"Какво е AI Асистент?","icon":"robot","href":"/bg/ai-assistants/what-is-ai-assistant"},{"group":"Създаване и редактиране на AI асистент","icon":"robot","pages":[{"title":"Общи настройки","icon":"gear","href":"/bg/ai-assistants/settings/general"},{"title":"Prompt \u0026 Tools","icon":"wrench","href":"/bg/ai-assistants/settings/prompt-and-tools"},{"title":"Действия След Повикване","icon":"webhook","href":"/bg/ai-assistants/settings/post-call-actions"}]},{"title":"Режими на Асистента","icon":"wave-pulse","href":"/bg/ai-assistants/assistant-modes"},{"title":"Най-добри практики за асистенти","icon":"sliders","href":"/bg/ai-assistants/assistant-configuration"},{"title":"Системни Prompt-ове","icon":"brain","href":"/bg/ai-assistants/system-prompt"},{"title":"AI Редактор на подсказки","icon":"sparkles","href":"/bg/ai-assistants/ai-prompt-editor"},{"title":"Flow Builder","icon":"share-nodes","href":"/bg/ai-assistants/flow-builder"},{"title":"Първоначално съобщение и аудио","icon":"message-dots","href":"/bg/ai-assistants/initial-message"},{"title":"Инструменти и функции","icon":"screwdriver-wrench","href":"/bg/ai-assistants/tools-and-functions"},{"title":"Персонализирани Mid-Call Tools","icon":"code-branch","href":"/bg/ai-assistants/custom-tools"},{"title":"Избор на глас и клониране на глас","icon":"microphone","href":"/bg/ai-assistants/voice-selection"},{"title":"Запълващо аудио","icon":"volume","href":"/bg/ai-assistants/filler-audio"},{"title":"Cal.com Насрочване на Срещи","icon":"calendar-days","href":"/bg/ai-assistants/cal-com-scheduling"},{"title":"Насрочване на срещи чрез Calendly","icon":"calendar-days","href":"/bg/ai-assistants/calendly-scheduling"},{"title":"GoHighLevel Планиране на Срещи","icon":"calendar-plus","href":"/bg/ai-assistants/gohighlevel-scheduling"},{"title":"Тестване на Вашия Асистент","icon":"vial","href":"/bg/ai-assistants/testing"},{"title":"Test Chat Interface","icon":"comment-dots","href":"/bg/ai-assistants/test-chat"},{"title":"Web Widget","icon":"code","href":"/bg/ai-assistants/web-widget"}]},{"group":"Кампании","icon":"bullhorn","pages":[{"title":"Преглед на кампаниите","icon":"bullhorn","href":"/bg/campaigns/index"},{"title":"Създаване на кампания","icon":"plus","href":"/bg/campaigns/creating-campaigns"}]},{"group":"Потенциални клиенти","icon":"users","pages":[{"title":"Преглед на потенциалните клиенти","icon":"users","href":"/bg/leads/index"},{"title":"Управление на потенциални клиенти","icon":"user-gear","href":"/bg/leads/managing-leads"},{"title":"Импортиране на потенциални клиенти","icon":"file-import","href":"/bg/leads/importing-leads"}]},{"group":"Персонализирани табла","icon":"chart-line","pages":[{"title":"Персонализирани Табла","icon":"chart-line","href":"/bg/custom-dashboards/overview"},{"title":"Конфигуриране на Widget-и","icon":"sliders","href":"/bg/custom-dashboards/widget-types"}]},{"group":"Разговори","icon":"messages","pages":[{"title":"Преглед на разговорите","icon":"messages","href":"/bg/conversations/overview"},{"title":"Преглед и Управление на Разговори","icon":"list-check","href":"/bg/conversations/viewing-and-managing"}]},{"group":"WhatsApp Business","icon":"whatsapp","pages":[{"title":"WhatsApp Business Интеграция","icon":"whatsapp","href":"/bg/whatsapp/overview"},{"title":"WhatsApp Senders","icon":"phone","href":"/bg/whatsapp/senders"},{"title":"Шаблони за съобщения","icon":"file-lines","href":"/bg/whatsapp/templates"},{"title":"WhatsApp разговори","icon":"messages","href":"/bg/whatsapp/conversations"},{"title":"WhatsApp Автоматизация","icon":"bolt","href":"/bg/whatsapp/automation"}]},{"group":"Телефонни номера","pages":[{"title":"Типове телефонни номера","icon":"phone","href":"/bg/phone-numbers/types"},{"title":"Закупуване и управление на номера","icon":"phone-plus","href":"/bg/phone-numbers/purchasing-and-managing"},{"title":"Цени и региони","icon":"money-bill","href":"/bg/phone-numbers/pricing-and-regions"},{"title":"SMS Възможности","icon":"message-sms","href":"/bg/phone-numbers/sms-capabilities"},{"title":"Присвояване на номера на асистенти","icon":"link","href":"/bg/phone-numbers/assigning-to-assistants"}]},{"group":"Входящи обаждания","pages":[{"title":"Преглед на входящи обаждания","icon":"phone-arrow-down-left","href":"/bg/inbound-calls/overview"},{"title":"Осигуряване и управление на телефонни номера","icon":"phone-plus","href":"/bg/inbound-calls/provisioning"},{"title":"Конфигуриране на Входящия Асистент","icon":"sliders","href":"/bg/inbound-calls/configuring"},{"title":"Данни от входящи обаждания","icon":"chart-line","href":"/bg/inbound-calls/insights"}]},{"group":"Изходящи обаждания","pages":[{"title":"Преглед на изходящите повиквания","icon":"phone-arrow-up-right","href":"/bg/outbound-calls/overview"},{"title":"Създаване и управление на кампании","icon":"bullhorn","href":"/bg/outbound-calls/campaigns"},{"title":"Caller ID \u0026 Обработка","icon":"id-card","href":"/bg/outbound-calls/caller-id"},{"title":"Обработка на гласова поща","icon":"voicemail","href":"/bg/outbound-calls/voicemail-handling"},{"title":"Скриптове и подканвания за продажби или събиране на дългове","icon":"file-lines","href":"/bg/outbound-calls/scripts-and-prompts"},{"title":"Масово/Паралелно Набиране","icon":"phone-volume","href":"/bg/outbound-calls/mass-dialing"}]},{"group":"AI промптинг и дизайн на разговори","pages":[{"title":"Основи на писането на промпти","icon":"pen-nib","href":"/bg/conversation-design/prompt-basics"},{"title":"Бази от знания","icon":"database","href":"/bg/conversation-design/knowledge-bases"},{"title":"Управление на прекъсванията и чувствителността към речта","icon":"hand","href":"/bg/conversation-design/interruptions"},{"title":"Поддръжка на езици и акценти","icon":"language","href":"/bg/conversation-design/language-support"}]},{"group":"Автоматизация и интеграции","pages":[{"title":"Преглед на Автоматизацията без код","icon":"wand-magic-sparkles","href":"/bg/automation/overview"},{"title":"Webhook \u0026 API","icon":"code","href":"/bg/automation/webhook-api"},{"title":"Интеграции на телефонни системи","icon":"phone-office","href":"/bg/provisioning/phone-system-integrations"}]},{"group":"Разходи и ценообразуване","pages":[{"title":"Преглед на разходите","icon":"dollar-sign","href":"/bg/pricing/overview"},{"title":"Разбивка на цените","icon":"calculator","href":"/bg/pricing/usage-based"},{"title":"Наемане на номера и международни тарифи","icon":"globe","href":"/bg/pricing/number-rentals"}]},{"group":"Осигуряване на номера","pages":[{"title":"Поддържани държави","icon":"globe","href":"/bg/provisioning/supported-countries"},{"title":"Управление на вашите номера","icon":"list-check","href":"/bg/provisioning/managing-numbers"},{"group":"SIP тръкинг","icon":"phone-volume","pages":[{"title":"Преглед","href":"/bg/provisioning/sip-trunking/sip-integration"},{"title":"Twilio Интеграция","href":"/bg/provisioning/sip-trunking/twilio"},{"title":"Zadarma Интеграция","href":"/bg/provisioning/sip-trunking/zadarma"},{"title":"DIDLogic Интеграция","href":"/bg/provisioning/sip-trunking/didlogic"}]}]},{"group":"Настройки","pages":[{"title":"Съхранение на данни","icon":"clock-rotate-left","href":"/bg/settings/data-retention"}]},{"group":"Отстраняване на проблеми и ЧЗВ","pages":[{"title":"Проблеми с поведението на AI","icon":"robot","href":"/bg/troubleshooting/ai-behavior"},{"title":"Фактуриране и кредити","icon":"money-bill","href":"/bg/troubleshooting/billing"},{"title":"Cal.com Проблеми","icon":"calendar-days","href":"/bg/troubleshooting/cal-com"},{"title":"Проблеми с Calendly","icon":"calendar-days","href":"/bg/troubleshooting/calendly"},{"title":"Проблеми с качеството на обажданията","icon":"phone","href":"/bg/troubleshooting/call-quality"},{"title":"Проблеми с кампании","icon":"wrench","href":"/bg/troubleshooting/campaigns"},{"title":"Проблеми с GoHighLevel","icon":"calendar-days","href":"/bg/troubleshooting/gohighlevel"},{"title":"Проблеми с потенциални клиенти","icon":"user-gear","href":"/bg/troubleshooting/leads"},{"title":"Проблеми с SIP интеграция","icon":"phone-volume","href":"/bg/troubleshooting/sip-integration"},{"title":"Проблеми с глас и отговор","icon":"microphone","href":"/bg/troubleshooting/voice-problems"},{"title":"Проблеми с уеб джаджата","icon":"code","href":"/bg/troubleshooting/web-widget"},{"title":"WhatsApp Отстраняване на неизправности","icon":"circle-question","href":"/bg/troubleshooting/whatsapp"}]},{"group":"Getting Started","pages":[{"title":"Core Concepts","icon":"lightbulb","href":"/getting-started/core-concepts"},{"title":"Understanding Call Minutes \u0026 Billing","icon":"credit-card","href":"/getting-started/understanding-billing"}]},{"group":"AI Assistants Overview","pages":[{"title":"What is an AI Assistant?","icon":"robot","href":"/ai-assistants/what-is-ai-assistant"},{"group":"Creating and Editing an AI Assistant","icon":"robot","pages":[{"title":"General Settings","icon":"gear","href":"/ai-assistants/settings/general"},{"title":"Prompt \u0026 Tools","icon":"wrench","href":"/ai-assistants/settings/prompt-and-tools"},{"title":"Post-call Actions","icon":"webhook","href":"/ai-assistants/settings/post-call-actions"}]},{"title":"Assistant Modes","icon":"wave-pulse","href":"/ai-assistants/assistant-modes"},{"title":"Assistant best practices","icon":"sliders","href":"/ai-assistants/assistant-configuration"},{"title":"System Prompts","icon":"brain","href":"/ai-assistants/system-prompt"},{"title":"AI Prompt Editor","icon":"sparkles","href":"/ai-assistants/ai-prompt-editor"},{"title":"Flow Builder","icon":"share-nodes","href":"/ai-assistants/flow-builder"},{"title":"Initial Message \u0026 Audio","icon":"message-dots","href":"/ai-assistants/initial-message"},{"title":"Tools \u0026 Functions","icon":"screwdriver-wrench","href":"/ai-assistants/tools-and-functions"},{"title":"Custom Mid-Call Tools","icon":"code-branch","href":"/ai-assistants/custom-tools"},{"title":"Voice Selection \u0026 Voice Cloning","icon":"microphone","href":"/ai-assistants/voice-selection"},{"title":"Filler Audio","icon":"volume","href":"/ai-assistants/filler-audio"},{"title":"Cal.com Appointment Scheduling","icon":"calendar-days","href":"/ai-assistants/cal-com-scheduling"},{"title":"Calendly Appointment Scheduling","icon":"calendar-days","href":"/ai-assistants/calendly-scheduling"},{"title":"GoHighLevel Appointment Scheduling","icon":"calendar-plus","href":"/ai-assistants/gohighlevel-scheduling"},{"title":"Testing Your Assistant","icon":"vial","href":"/ai-assistants/testing"},{"title":"Test Chat Interface","icon":"comment-dots","href":"/ai-assistants/test-chat"},{"title":"Web Widget","icon":"code","href":"/ai-assistants/web-widget"}]},{"group":"Campaigns","icon":"bullhorn","pages":[{"title":"Campaigns Overview","icon":"bullhorn","href":"/campaigns/index"},{"title":"Creating a Campaign","icon":"plus","href":"/campaigns/creating-campaigns"}]},{"group":"Leads","icon":"users","pages":[{"title":"Leads Overview","icon":"users","href":"/leads/index"},{"title":"Managing Leads","icon":"user-gear","href":"/leads/managing-leads"},{"title":"Importing Leads","icon":"file-import","href":"/leads/importing-leads"}]},{"group":"Custom Dashboards","icon":"chart-line","pages":[{"title":"Custom Dashboards","icon":"chart-line","href":"/custom-dashboards/overview"},{"title":"Widget Configuration","icon":"sliders","href":"/custom-dashboards/widget-types"}]},{"group":"Conversations","icon":"messages","pages":[{"title":"Conversations Overview","icon":"messages","href":"/conversations/overview"},{"title":"Viewing \u0026 Managing Conversations","icon":"list-check","href":"/conversations/viewing-and-managing"}]},{"group":"WhatsApp Business","icon":"whatsapp","pages":[{"title":"WhatsApp Business Integration","icon":"whatsapp","href":"/whatsapp/overview"},{"title":"WhatsApp Senders","icon":"phone","href":"/whatsapp/senders"},{"title":"Message Templates","icon":"file-lines","href":"/whatsapp/templates"},{"title":"WhatsApp Conversations","icon":"messages","href":"/whatsapp/conversations"},{"title":"WhatsApp Automation","icon":"bolt","href":"/whatsapp/automation"}]},{"group":"Phone Numbers","pages":[{"title":"Types of Phone Numbers","icon":"phone","href":"/phone-numbers/types"},{"title":"Purchasing \u0026 Managing Numbers","icon":"phone-plus","href":"/phone-numbers/purchasing-and-managing"},{"title":"Pricing \u0026 Regions","icon":"money-bill","href":"/phone-numbers/pricing-and-regions"},{"title":"SMS Capabilities","icon":"message-sms","href":"/phone-numbers/sms-capabilities"},{"title":"Assigning Numbers to Assistants","icon":"link","href":"/phone-numbers/assigning-to-assistants"}]},{"group":"Inbound Calls","pages":[{"title":"Inbound Calls Overview","icon":"phone-arrow-down-left","href":"/inbound-calls/overview"},{"title":"Provisioning \u0026 Managing Phone Numbers","icon":"phone-plus","href":"/inbound-calls/provisioning"},{"title":"Configuring the Inbound Assistant","icon":"sliders","href":"/inbound-calls/configuring"},{"title":"Inbound Call Insights","icon":"chart-line","href":"/inbound-calls/insights"}]},{"group":"Outbound Calls","pages":[{"title":"Outbound Calls Overview","icon":"phone-arrow-up-right","href":"/outbound-calls/overview"},{"title":"Creating \u0026 Managing Campaigns","icon":"bullhorn","href":"/outbound-calls/campaigns"},{"title":"Caller ID \u0026 Handling","icon":"id-card","href":"/outbound-calls/caller-id"},{"title":"Voicemail Handling","icon":"voicemail","href":"/outbound-calls/voicemail-handling"},{"title":"Scripts \u0026 Prompts for Sales or Collections","icon":"file-lines","href":"/outbound-calls/scripts-and-prompts"},{"title":"Mass/Parallel Dialing","icon":"phone-volume","href":"/outbound-calls/mass-dialing"}]},{"group":"AI Prompting \u0026 Conversation Design","pages":[{"title":"Prompt Writing Basics","icon":"pen-nib","href":"/conversation-design/prompt-basics"},{"title":"Knowledge Bases","icon":"database","href":"/conversation-design/knowledge-bases"},{"title":"Handling Interruptions \u0026 Speech Sensitivity","icon":"hand","href":"/conversation-design/interruptions"},{"title":"Language \u0026 Accent Support","icon":"language","href":"/conversation-design/language-support"}]},{"group":"Automation \u0026 Integrations","pages":[{"title":"Overview of No-Code Automation","icon":"wand-magic-sparkles","href":"/automation/overview"},{"title":"Webhook \u0026 API","icon":"code","href":"/automation/webhook-api"},{"title":"Phone System Integrations","icon":"phone-office","href":"/provisioning/phone-system-integrations"}]},{"group":"Costs \u0026 Pricing","pages":[{"title":"Cost Overview","icon":"dollar-sign","href":"/pricing/overview"},{"title":"Pricing Breakdown","icon":"calculator","href":"/pricing/usage-based"},{"title":"Number Rentals \u0026 International Rates","icon":"globe","href":"/pricing/number-rentals"}]},{"group":"Number Provisioning","pages":[{"title":"Supported Countries","icon":"globe","href":"/provisioning/supported-countries"},{"title":"Managing Your Numbers","icon":"list-check","href":"/provisioning/managing-numbers"},{"group":"SIP trunking","icon":"phone-volume","pages":[{"title":"Overview","href":"/provisioning/sip-trunking/sip-integration"},{"title":"Twilio Integration","href":"/provisioning/sip-trunking/twilio"},{"title":"Zadarma Integration","href":"/provisioning/sip-trunking/zadarma"},{"title":"DIDLogic Integration","href":"/provisioning/sip-trunking/didlogic"}]}]},{"group":"Settings","pages":[{"title":"Data Retention","icon":"clock-rotate-left","href":"/settings/data-retention"}]},{"group":"Troubleshooting \u0026 FAQs","pages":[{"title":"AI Behavior Issues","icon":"robot","href":"/troubleshooting/ai-behavior"},{"title":"Billing \u0026 Credits","icon":"money-bill","href":"/troubleshooting/billing"},{"title":"Cal.com Issues","icon":"calendar-days","href":"/troubleshooting/cal-com"},{"title":"Calendly Issues","icon":"calendar-days","href":"/troubleshooting/calendly"},{"title":"Call Quality Issues","icon":"phone","href":"/troubleshooting/call-quality"},{"title":"Campaign Issues","icon":"wrench","href":"/troubleshooting/campaigns"},{"title":"GoHighLevel Issues","icon":"calendar-days","href":"/troubleshooting/gohighlevel"},{"title":"Leads Issues","icon":"user-gear","href":"/troubleshooting/leads"},{"title":"SIP Integration Issues","icon":"phone-volume","href":"/troubleshooting/sip-integration"},{"title":"Voice \u0026 Response Issues","icon":"microphone","href":"/troubleshooting/voice-problems"},{"title":"Web Widget Issues","icon":"code","href":"/troubleshooting/web-widget"},{"title":"WhatsApp Troubleshooting","icon":"circle-question","href":"/troubleshooting/whatsapp"}]},{"group":"API Reference","pages":[{"title":"Introduction","icon":"book-open","href":"/api-reference/introduction"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Get current user","api":"GET /user/me","href":"/api-reference/user/me"}]},{"group":"Assistants","pages":[{"title":"List assistants","api":"GET /user/assistants/get","href":"/api-reference/assistants/get-assistants"},{"title":"Get outbound assistants","api":"GET /user/assistants/outbound","href":"/api-reference/assistants/get-outbound-assistants"},{"title":"Create assistant","api":"POST /user/assistant","href":"/api-reference/assistants/create-assistant"},{"title":"Update assistant","api":"PUT /user/assistant/{id}","href":"/api-reference/assistants/update-assistant"},{"title":"Delete assistant","api":"DELETE /user/assistant/{id}","href":"/api-reference/assistants/delete-assistant"},{"title":"Enable assistant inbound webhook","api":"POST /user/assistants/enable-inbound-webhook","href":"/api-reference/assistants/enable-inbound-webhook"},{"title":"Disable assistant inbound webhook","api":"POST /user/assistants/disable-inbound-webhook","href":"/api-reference/assistants/disable-inbound-webhook"},{"title":"Enable conversation ended webhook","api":"POST /user/assistants/enable-conversation-ended-webhook","href":"/api-reference/assistants/enable-conversation-ended-webhook"},{"title":"Disable conversation ended webhook","api":"POST /user/assistants/disable-conversation-ended-webhook","href":"/api-reference/assistants/disable-conversation-ended-webhook"},{"title":"Disable assistant webhook","api":"POST /user/assistants/disable-webhook","href":"/api-reference/assistants/disable-webhook"},{"title":"Get available languages","api":"GET /user/assistants/languages","href":"/api-reference/assistants/get-languages"},{"title":"Get available voices","api":"GET /user/assistants/voices","href":"/api-reference/assistants/get-voices"},{"title":"Get available models","api":"GET /user/assistants/models","href":"/api-reference/assistants/get-models"},{"title":"Get synthesizer providers","api":"GET /user/assistants/synthesizer-providers","href":"/api-reference/assistants/get-synthesizer-providers"},{"title":"Get transcriber providers","api":"GET /user/assistants/transcriber-providers","href":"/api-reference/assistants/get-transcriber-providers"},{"title":"Get available phone numbers","api":"GET /user/assistants/phone-numbers","href":"/api-reference/assistants/get-phone-numbers"}]},{"group":"Calls","pages":[{"title":"List calls","api":"GET /user/calls","href":"/api-reference/calls/get-calls"},{"title":"Get call","api":"GET /user/calls/{id}","href":"/api-reference/calls/get-call"},{"title":"Make a phone call","api":"POST /user/make_call","href":"/api-reference/calls/make-phone-call"},{"title":"Delete call","api":"DELETE /user/calls/{call}","href":"/api-reference/calls/delete-call"}]},{"group":"Conversations","pages":[{"title":"List Conversations","api":"GET /user/conversations","href":"/api-reference/conversations/list-conversations"},{"title":"Create Conversation","api":"POST /conversations","href":"/api-reference/conversations/create-conversation"},{"title":"Get Conversation","api":"GET /conversations/{uuid}","href":"/api-reference/conversations/get-conversation"},{"title":"Send Message","api":"POST /conversations/{uuid}/messages","href":"/api-reference/conversations/send-message"}]},{"group":"AI","pages":[{"title":"Generate AI Reply","api":"POST /user/ai/generate-reply","href":"/api-reference/ai/generate-reply"}]},{"group":"Mid Call Tools","pages":[{"title":"List mid call tools","api":"GET /user/tools","href":"/api-reference/mid-call-tools/get-tools"},{"title":"Get mid call tool","api":"GET /user/tools/{id}","href":"/api-reference/mid-call-tools/get-tool"},{"title":"Create mid call tool","api":"POST /user/tools","href":"/api-reference/mid-call-tools/create-tool"},{"title":"Update mid call tool","api":"PUT /user/tools/{id}","href":"/api-reference/mid-call-tools/update-tool"},{"title":"Delete mid call tool","api":"DELETE /user/tools/{id}","href":"/api-reference/mid-call-tools/delete-tool"}]},{"group":"Leads","pages":[{"title":"List leads","api":"GET /user/leads","href":"/api-reference/leads/get-lead"},{"title":"Create lead","api":"POST /user/lead","href":"/api-reference/leads/create"},{"title":"Update Lead","api":"PUT /user/leads/{id}","href":"/api-reference/leads/update-lead"},{"title":"Delete lead","api":"DELETE /user/leads/{id}","href":"/api-reference/leads/delete"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","api":"GET /user/campaigns","href":"/api-reference/campaigns/get-campaigns"},{"title":"Create campaign","api":"POST /user/campaign","href":"/api-reference/campaigns/create-campaign"},{"title":"Update campaign status","api":"POST /user/campaigns/update-status","href":"/api-reference/campaigns/update-status"}]},{"group":"Phone Numbers","pages":[{"title":"Get all phone numbers","api":"GET /user/phone-numbers/all","href":"/api-reference/phone-numbers/get-phone-numbers"},{"title":"Search available phone numbers","api":"GET /user/phone-numbers/search","href":"/api-reference/phone-numbers/search-phone-numbers"},{"title":"Purchase phone number","api":"POST /user/phone-numbers/purchase","href":"/api-reference/phone-numbers/purchase-phone-number"},{"title":"Release phone number","api":"DELETE /user/phone-numbers/{id}","href":"/api-reference/phone-numbers/release-phone-number"}]},{"group":"Knowledgebases","pages":[{"title":"Get knowledgebases","api":"GET /user/knowledgebases","href":"/api-reference/knowledgebases/get-knowledgebases"},{"title":"Get knowledgebase","api":"GET /user/knowledgebases/{id}","href":"/api-reference/knowledgebases/get-knowledgebase"},{"title":"Create knowledgebase","api":"POST /user/knowledgebases","href":"/api-reference/knowledgebases/create-knowledgebase"},{"title":"Update knowledgebase","api":"PUT /user/knowledgebases/{id}","href":"/api-reference/knowledgebases/update-knowledgebase"},{"title":"Delete knowledgebase","api":"DELETE /user/knowledgebases/{id}","href":"/api-reference/knowledgebases/delete-knowledgebase"},{"title":"Get documents","api":"GET /user/knowledgebases/{knowledgebaseId}/documents","href":"/api-reference/knowledgebases/get-documents"},{"title":"Get document","api":"GET /user/knowledgebases/{knowledgebaseId}/documents/{documentId}","href":"/api-reference/knowledgebases/get-document"},{"title":"Create document","api":"POST /user/knowledgebases/{knowledgebaseId}/documents","href":"/api-reference/knowledgebases/create-document"},{"title":"Update document","api":"PUT /user/knowledgebases/{knowledgebaseId}/documents/{documentId}","href":"/api-reference/knowledgebases/update-document"},{"title":"Delete document","api":"DELETE /user/knowledgebases/{knowledgebaseId}/documents/{documentId}","href":"/api-reference/knowledgebases/delete-document"}]},{"group":"SMS","pages":[{"title":"Send SMS","api":"POST /user/sms","href":"/api-reference/sms/send-sms"}]},{"group":"WhatsApp","pages":[{"title":"Get WhatsApp Senders","api":"GET /user/whatsapp/senders","href":"/api-reference/whatsapp/get-senders"},{"title":"Get Templates","api":"GET /user/whatsapp/senders/{senderId}/templates","href":"/api-reference/whatsapp/get-templates"},{"title":"Send Template Message","api":"POST /user/whatsapp/send","href":"/api-reference/whatsapp/send-template"},{"title":"Send Freeform Message","api":"POST /user/whatsapp/send-freeform","href":"/api-reference/whatsapp/send-freeform"},{"title":"Get Session Status","api":"GET /user/whatsapp/session-status","href":"/api-reference/whatsapp/session-status"}]},{"group":"Webhooks","pages":[{"title":"Post-Call Webhook","icon":"webhook","description":"Webhook sent after a call is completed containing extracted variables and call data","href":"/api-reference/webhooks/post-call-webhook"},{"title":"Conversation Ended Webhook","icon":"webhook","href":"/api-reference/webhooks/conversation-ended-webhook"}]},{"group":"API Keys","pages":[{"title":"Create API key","api":"POST /user/api-keys","description":"Generate a new API key for the authenticated user","href":"/api-reference/authentication/create-api-key"},{"title":"List API keys","api":"GET /user/api-keys","href":"/api-reference/authentication/list-api-keys"},{"title":"Delete API key","api":"DELETE /user/api-keys/{id}","href":"/api-reference/authentication/delete-api-key"}]},{"group":"No-Code Automation platform","pages":[{"title":"Introduction","href":"/automation-platform/introduction"},{"title":"Building Flows","icon":"hammer","href":"/automation-platform/building-flows"},{"title":"Passing Data","icon":"wand-sparkles","href":"/automation-platform/passing-data"},{"title":"Publishing Flows","icon":"bolt","href":"/automation-platform/publishing-flows"},{"title":"Debugging Runs","icon":"bug","href":"/automation-platform/debugging-runs"},{"title":"Version History","icon":"clock","href":"/automation-platform/versioning"},{"title":"Technical limits","icon":"ban","href":"/automation-platform/known-limits"}]},{"group":"Calls Related","pages":[{"title":"Aiplocalls Tool","icon":"phone","href":"/automation-platform/calls-related/platform-tool"},{"title":"Common Integrations","icon":"puzzle-piece","href":"/automation-platform/calls-related/common-integrations"},{"title":"Sending SMS","icon":"message-sms","href":"/automation-platform/calls-related/sms-capabilities"}]},{"group":"Platform updates","pages":[{"title":"Product Updates","icon":"scroll","href":"/releases/index"}]}]},{"anchor":"Автоматизация без код","icon":"wand-magic-sparkles","color":{"light":"#6c63ff","dark":"#6c63ff"},"pages":[{"title":"Автоматизация без код","href":"/bg/automation-platform/introduction"}]},{"anchor":"API справочник","icon":"code","color":{"light":"#1c51fc","dark":"#1c51fc"},"pages":[{"title":"API справочник","href":"/bg/api-reference/introduction"}]},{"anchor":"Актуализации","icon":"scroll","color":{"light":"#ffbb00","dark":"#ffbb00"},"pages":[{"title":"Актуализации","href":"/bg/releases"}]},{"anchor":"English","icon":"globe","color":{"light":"#888888","dark":"#888888"},"pages":[{"title":"English","href":"/introduction/what-is-platform"}]}]},"basePath":"","title":"Conversation Ended Webhook - Aiplocalls","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["2b790eda92"],"chunks":["ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","utils-D0Za9LU_.js","utils-BS41p-Nj.js","isEqual-Cnvzqd4L.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","snippetPresets-alIv9Yoc.js","style-to-object-BY3JEAdk.js","use-playground-group-access-c3bgmn-x.js","cloneDeep-4e5CS5ZI.js","v4-DIgz8zy6.js"]}