Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.
Вузол «Вебхук» спрацьовує після завершення дзвінка й надсилає HTTP-запит на адресу вашої системи. Стрілками він ні з чим не з’єднується — просто додайте його на полотно.
Налаштування
Поле
Що вписати
За замовчуванням
Увімкнено
Вимкнути, не видаляючи вузол
увімкнено
HTTP-метод
GET, POST, PUT, PATCH, DELETE
POST
URL ендпоінта
Адреса вашої системи
—
Автентифікація
Обліковий запис компанії (ключ, токен)
—
Додаткові заголовки
Якщо ваша система їх вимагає
—
Шаблон тіла запиту
JSON, який отримає ваша система
приклад нижче
Додавати call_disposition
Додати в тіло результат дзвінка
увімкнено
Відправляти, лише якщо заповнено
Шляхи до змінних через кому, наприклад gathered_context.result_type; якщо хоч одна порожня, запит не надсилається
Дані до розмови: колонки файлу, відповідь CRM, змінні компанії
{{initial_context.назва}}
Записане під час розмови: видобуті змінні, «Присвоїти змінні»
{{gathered_context.назва}}
ID дзвінка
{{workflow_run_id}}
Тривалість, с
{{cost_info.call_duration_seconds}}
Запис і текст розмови
{{recording_url}}, {{transcript_url}}
Окремі доріжки абонента й агента
{{user_recording_url}}, {{bot_recording_url}}
Числове поле без лапок: {{initial_context.id | int}}.
Щоб у CRM не потрапляли дзвінки без результату (недодзвони, автовідповідачі), впишіть у «Відправляти, лише якщо заповнено» змінну результату, наприклад gathered_context.result_type.
Якщо розмову передано іншому сценарію, вебхук надсилається один раз — від сценарію, на якому розмова закінчилась.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"UkrGSM Voice Agent","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/ukr-gsm/UKFAqoQ6DVhzYuDU/logo/light.png?fit=max\u0026auto=format\u0026n=UKFAqoQ6DVhzYuDU\u0026q=85\u0026s=dffb06fdb33ddf11fc4641788b33462b","dark":"https://mintcdn.com/ukr-gsm/UKFAqoQ6DVhzYuDU/logo/dark.png?fit=max\u0026auto=format\u0026n=UKFAqoQ6DVhzYuDU\u0026q=85\u0026s=bdf333b3aba766cd56cf9b0ce7b90fe9"},"favicon":"https://mintcdn.com/ukr-gsm/UKFAqoQ6DVhzYuDU/favicon.ico?fit=max\u0026auto=format\u0026n=UKFAqoQ6DVhzYuDU\u0026q=85\u0026s=8a2131e6e99a989399de9b0faef5cbbd","navbar":{"primary":{"type":"button","label":"Кабінет","href":"https://va.ukrgsm.com"}},"search":{"prompt":"Пошук: кампанії, змінні, переадресація..."},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ukr-gsm","hasAudioNarration":false,"actualSubdomain":"ukr-gsm","customDomains":["docs.ukrgsm.com"],"gitSource":{"type":"github","owner":"toplich","repo":"ukrgsm","deployBranch":"main","contentDirectory":"app/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b00b2ce059f25a54b0f2df3","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Інструкції","count":36},{"language":"default","tag":"Сценарій розмови","count":10},{"language":"default","tag":"Інструменти","count":9},{"language":"default","tag":"Кампанії","count":5},{"language":"default","tag":"Вузли","count":4},{"language":"default","tag":"Статистика","count":3},{"language":"default","tag":"Початок","count":3},{"language":"default","tag":"Зв'язок з вашою системою","count":3},{"language":"default","tag":"Голос","count":2},{"language":"default","tag":"Номери","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"site-roles","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"[data-search-button],.search-button,[aria-label*=\"search\"],[placeholder*=\"Search\"],button[data-testid*=\"search\"],.mintlify-search,.DocSearch-Button{background:rgba(22, 163, 74, 0.05)!important;border:3px solid #16A34A!important;box-shadow:0 0 0 2px rgba(22, 163, 74, 0.2), 0 4px 12px rgba(22, 163, 74, 0.15)!important;border-radius:10px!important;transition:all 0.3s ease!important;min-width:280px!important;padding:12px 16px!important}[data-search-button]:hover,.search-button:hover,[aria-label*=\"search\"]:hover,[placeholder*=\"Search\"]:hover,button[data-testid*=\"search\"]:hover,.mintlify-search:hover,.DocSearch-Button:hover{transform:translateY(-2px)!important;box-shadow:0 6px 20px rgba(22, 163, 74, 0.4)!important}[data-search-button] *,.search-button *,[aria-label*=\"search\"] *,[placeholder*=\"Search\"] *,button[data-testid*=\"search\"] *,.mintlify-search *,.DocSearch-Button *{color:#16A34A!important;font-weight:500!important}@keyframes search-pulse{0%{box-shadow:0 4px 12px rgba(22, 163, 74, 0.3)}50%{box-shadow:0 4px 12px rgba(22, 163, 74, 0.6)}100%{box-shadow:0 4px 12px rgba(22, 163, 74, 0.3)}}[data-search-button],.search-button,[aria-label*=\"search\"],[placeholder*=\"Search\"],button[data-testid*=\"search\"],.mintlify-search,.DocSearch-Button{animation:search-pulse 2s ease-in-out infinite!important}*{scrollbar-width:thin;scrollbar-color:#16A34A transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#16A34A;border-radius:4px}*::-webkit-scrollbar-thumb:hover{background:#15803D}"}]}
{"page":{"pagePath":"voice-agent/webhook","slug":"/voice-agent/webhook","pageMetadata":{"title":"Вебхук: результат у вашу систему","sidebarTitle":"Вебхук","description":"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.","href":"/voice-agent/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: \"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Вузол `,_jsx(_components.strong,{children:`«Вебхук»`}),` спрацьовує після завершення дзвінка й надсилає HTTP-запит на адресу вашої системи. Стрілками він ні з чим не з’єднується — просто додайте його на полотно.`]}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant A as Абонент\n participant P as Платформа\n participant C as Ваша CRM\n A->>P: розмова\n Note over P: дзвінок завершився\n P->>C: POST результат розмови\n C-->>P: 200 OK\n Note over P,C: не вдалося — повтор, до 5 спроб`}),`\n`,_jsx(Heading,{level:`2`,id:`налаштування`,children:`Налаштування`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Поле`}),_jsx(_components.th,{children:`Що вписати`}),_jsx(_components.th,{children:`За замовчуванням`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Увімкнено`})}),_jsx(_components.td,{children:`Вимкнути, не видаляючи вузол`}),_jsx(_components.td,{children:`увімкнено`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`HTTP-метод`})}),_jsx(_components.td,{children:`GET, POST, PUT, PATCH, DELETE`}),_jsx(_components.td,{children:`POST`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`URL ендпоінта`})}),_jsx(_components.td,{children:`Адреса вашої системи`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Автентифікація`})}),_jsx(_components.td,{children:`Обліковий запис компанії (ключ, токен)`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Додаткові заголовки`})}),_jsx(_components.td,{children:`Якщо ваша система їх вимагає`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Шаблон тіла запиту`})}),_jsx(_components.td,{children:`JSON, який отримає ваша система`}),_jsx(_components.td,{children:`приклад нижче`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Додавати call_disposition`})}),_jsx(_components.td,{children:`Додати в тіло результат дзвінка`}),_jsx(_components.td,{children:`увімкнено`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Відправляти, лише якщо заповнено`})}),_jsxs(_components.td,{children:[`Шляхи до змінних через кому, наприклад `,_jsx(_components.code,{children:`gathered_context.result_type`}),`; якщо хоч одна порожня, запит не надсилається`]}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`шаблон-тіла-запиту`,children:`Шаблон тіла запиту`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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:` \"call_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{workflow_run_id}}\"`}),_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:` \"client_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{initial_context.ext_customer_id}}\"`}),_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:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{gathered_context.result_type}}\"`}),_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:` \"promise_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{gathered_context.promise_date}}\"`}),_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:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{cost_info.call_duration_seconds}}\"`}),_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:` \"recording_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{recording_url}}\"`}),_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_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{{transcript_url}}\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Що підставити`}),_jsx(_components.th,{children:`Як писати`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Дані до розмови: колонки файлу, відповідь CRM, змінні компанії`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{{initial_context.назва}}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Записане під час розмови: видобуті змінні, «Присвоїти змінні»`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{{gathered_context.назва}}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ID дзвінка`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{{workflow_run_id}}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Тривалість, с`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{{cost_info.call_duration_seconds}}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Запис і текст розмови`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{{recording_url}}`}),`, `,_jsx(_components.code,{children:`{{transcript_url}}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Окремі доріжки абонента й агента`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{{user_recording_url}}`}),`, `,_jsx(_components.code,{children:`{{bot_recording_url}}`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Числове поле без лапок: `,_jsx(_components.code,{children:`{{initial_context.id | int}}`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Щоб у CRM не потрапляли дзвінки без результату (недодзвони, автовідповідачі), впишіть у `,_jsx(_components.strong,{children:`«Відправляти, лише якщо заповнено»`}),` змінну результату, наприклад `,_jsx(_components.code,{children:`gathered_context.result_type`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Якщо розмову `,_jsx(_components.a,{href:`/voice-agent/tools/agent-transfer`,children:`передано іншому сценарію`}),`, вебхук надсилається один раз — від сценарію, на якому розмова закінчилась.`]})})]})}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":"Вебхук: результат у вашу систему","sidebarTitle":"Вебхук","description":"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.","href":"/voice-agent/webhook"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Налаштування","slug":"налаштування","depth":2,"children":[]},{"title":"Шаблон тіла запиту","slug":"шаблон-тіла-запиту","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ukr-gsm","siteName":"UkrGSM Voice Agent","title":"Вебхук: результат у вашу систему - UkrGSM Voice Agent","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T18:57:39.616Z","originalFileLocation":"voice-agent/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=\"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\">\u003cmeta data-mint-head name=\"application-name\" content=\"UkrGSM Voice Agent\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_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/ukr-gsm/p9pSlSXgfsbe7R-U/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Вебхук: результат у вашу систему - UkrGSM Voice Agent\">\u003cmeta data-mint-head property=\"og:description\" content=\"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UkrGSM Voice Agent\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ukrgsm.com/voice-agent/webhook\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ukr-gsm.mintlify.site/_mintlify/api/og/v2?division=%D0%97%D0%B2%27%D1%8F%D0%B7%D0%BE%D0%BA+%D0%B7+%D0%B2%D0%B0%D1%88%D0%BE%D1%8E+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%BE%D1%8E\u0026amp;title=%D0%92%D0%B5%D0%B1%D1%85%D1%83%D0%BA%3A+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82+%D1%83+%D0%B2%D0%B0%D1%88%D1%83+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%83\u0026amp;description=%D0%9F%D1%96%D1%81%D0%BB%D1%8F+%D0%BA%D0%BE%D0%B6%D0%BD%D0%BE%D0%B3%D0%BE+%D0%B4%D0%B7%D0%B2%D1%96%D0%BD%D0%BA%D0%B0+%D0%BF%D0%BB%D0%B0%D1%82%D1%84%D0%BE%D1%80%D0%BC%D0%B0+%D0%BD%D0%B0%D0%B4%D1%81%D0%B8%D0%BB%D0%B0%D1%94+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82+%D1%80%D0%BE%D0%B7%D0%BC%D0%BE%D0%B2%D0%B8+%D1%83+%D0%B2%D0%B0%D1%88%D1%83+CRM%3A+%D1%89%D0%BE+%D0%BF%D0%BE%D0%BE%D0%B1%D1%96%D1%86%D1%8F%D0%B2+%D0%B0%D0%B1%D0%BE%D0%BD%D0%B5%D0%BD%D1%82%2C+%D1%82%D1%80%D0%B8%D0%B2%D0%B0%D0%BB%D1%96%D1%81%D1%82%D1%8C%2C+%D0%B7%D0%B0%D0%BF%D0%B8%D1%81+%D1%96+%D1%82%D0%B5%D0%BA%D1%81%D1%82+%D1%80%D0%BE%D0%B7%D0%BC%D0%BE%D0%B2%D0%B8.\u0026amp;theme=7919d887fcb1114b31b9963d\u0026amp;signature=6f09f7d8ac1ab4dc98c34185fcfc1302f8e4d4495b3959361226eb6b43e1df6b\">\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=\"Вебхук: результат у вашу систему - UkrGSM Voice Agent\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ukr-gsm.mintlify.site/_mintlify/api/og/v2?division=%D0%97%D0%B2%27%D1%8F%D0%B7%D0%BE%D0%BA+%D0%B7+%D0%B2%D0%B0%D1%88%D0%BE%D1%8E+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%BE%D1%8E\u0026amp;title=%D0%92%D0%B5%D0%B1%D1%85%D1%83%D0%BA%3A+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82+%D1%83+%D0%B2%D0%B0%D1%88%D1%83+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%83\u0026amp;description=%D0%9F%D1%96%D1%81%D0%BB%D1%8F+%D0%BA%D0%BE%D0%B6%D0%BD%D0%BE%D0%B3%D0%BE+%D0%B4%D0%B7%D0%B2%D1%96%D0%BD%D0%BA%D0%B0+%D0%BF%D0%BB%D0%B0%D1%82%D1%84%D0%BE%D1%80%D0%BC%D0%B0+%D0%BD%D0%B0%D0%B4%D1%81%D0%B8%D0%BB%D0%B0%D1%94+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82+%D1%80%D0%BE%D0%B7%D0%BC%D0%BE%D0%B2%D0%B8+%D1%83+%D0%B2%D0%B0%D1%88%D1%83+CRM%3A+%D1%89%D0%BE+%D0%BF%D0%BE%D0%BE%D0%B1%D1%96%D1%86%D1%8F%D0%B2+%D0%B0%D0%B1%D0%BE%D0%BD%D0%B5%D0%BD%D1%82%2C+%D1%82%D1%80%D0%B8%D0%B2%D0%B0%D0%BB%D1%96%D1%81%D1%82%D1%8C%2C+%D0%B7%D0%B0%D0%BF%D0%B8%D1%81+%D1%96+%D1%82%D0%B5%D0%BA%D1%81%D1%82+%D1%80%D0%BE%D0%B7%D0%BC%D0%BE%D0%B2%D0%B8.\u0026amp;theme=7919d887fcb1114b31b9963d\u0026amp;signature=6f09f7d8ac1ab4dc98c34185fcfc1302f8e4d4495b3959361226eb6b43e1df6b\">\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/ukr-gsm/p9pSlSXgfsbe7R-U/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UkrGSM Voice Agent\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ukrgsm.com/voice-agent/webhook\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/voice-agent/webhook.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ukrgsm.com/#organization\",\"name\":\"UkrGSM Voice Agent\",\"url\":\"https://docs.ukrgsm.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ukr-gsm/UKFAqoQ6DVhzYuDU/logo/light.png?fit=max\u0026auto=format\u0026n=UKFAqoQ6DVhzYuDU\u0026q=85\u0026s=dffb06fdb33ddf11fc4641788b33462b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ukrgsm.com#website\",\"name\":\"UkrGSM Voice Agent\",\"url\":\"https://docs.ukrgsm.com\",\"publisher\":{\"@id\":\"https://docs.ukrgsm.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ukrgsm.com/voice-agent/webhook#webpage\",\"url\":\"https://docs.ukrgsm.com/voice-agent/webhook\",\"name\":\"Вебхук: результат у вашу систему\",\"description\":\"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\",\"dateModified\":\"2026-11-18T18:57:39.616Z\",\"isPartOf\":{\"@id\":\"https://docs.ukrgsm.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ukrgsm.com/voice-agent/webhook#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ukrgsm.com/voice-agent/webhook#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Зв'язок з вашою системою\",\"item\":\"https://docs.ukrgsm.com/voice-agent/pre-call-data-fetch\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Вебхук: результат у вашу систему\",\"item\":\"https://docs.ukrgsm.com/voice-agent/webhook\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ukrgsm.com/voice-agent/webhook#article\",\"headline\":\"Вебхук: результат у вашу систему\",\"name\":\"Вебхук: результат у вашу систему\",\"description\":\"Після кожного дзвінка платформа надсилає результат розмови у вашу CRM: що пообіцяв абонент, тривалість, запис і текст розмови.\",\"url\":\"https://docs.ukrgsm.com/voice-agent/webhook\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ukrgsm.com/voice-agent/webhook#webpage\"},\"dateModified\":\"2026-11-18T18:57:39.616Z\",\"publisher\":{\"@id\":\"https://docs.ukrgsm.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ukrgsm.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UkrGSM Voice Agent\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"UkrGSM Voice Agent\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/voice-agent/webhook.md","siteName":"UkrGSM Voice Agent","nav":{"global":null,"tabs":[{"tab":"Інструкції","icon":"book-open","groups":[{"group":"Початок","pages":[{"title":"Що таке платформа","sidebarTitle":"Вступ","href":"/getting-started"},{"title":"Карта кабінету","href":"/getting-started/cabinet"},{"title":"Перший сценарій за 5 хвилин","href":"/getting-started/first-agent"}]},{"group":"Сценарій розмови","pages":[{"title":"Як влаштований сценарій","href":"/voice-agent/introduction"},{"group":"Вузли","pages":[{"title":"Початок дзвінка","href":"/voice-agent/start-call"},{"title":"Вузол розмови","href":"/voice-agent/agent"},{"title":"Завершення дзвінка","href":"/voice-agent/end-call"},{"title":"Глобальний вузол","href":"/voice-agent/global"}]},{"title":"Переходи і репліки","href":"/voice-agent/transitions"},{"title":"Змінні","href":"/voice-agent/template-variables"},{"title":"Як писати промпти","href":"/voice-agent/writing-prompts"},{"title":"Тестування і публікація","href":"/voice-agent/editing-a-workflow"},{"title":"Налаштування сценарію","href":"/voice-agent/settings"}]},{"group":"Голос","pages":[{"title":"Голос і вимова","href":"/voice-agent/pronunciation-dictionary"},{"title":"Аудіозаписи","href":"/voice-agent/pre-recorded-audio"}]},{"group":"Інструменти","pages":[{"title":"Інструменти","sidebarTitle":"Огляд","href":"/voice-agent/tools/introduction"},{"title":"Переадресація на живого оператора","sidebarTitle":"Переадресація дзвінка","href":"/voice-agent/tools/call-transfer"},{"title":"Передача іншому сценарію","href":"/voice-agent/tools/agent-transfer"},{"title":"Завершення дзвінка","sidebarTitle":"Завершення дзвінка","href":"/voice-agent/tools/end-call"},{"title":"Дата","href":"/voice-agent/tools/date"},{"title":"Змінні компанії","href":"/voice-agent/tools/company-variables"},{"title":"Зовнішній HTTP API","href":"/voice-agent/tools/http-api"},{"title":"Сервер MCP","href":"/voice-agent/tools/mcp-tool"},{"title":"База знань","href":"/voice-agent/knowledge-base"}]},{"group":"Зв'язок з вашою системою","pages":[{"title":"Запит даних перед дзвінком","description":"До привітання платформа знаходить абонента у вашій CRM за номером телефону — і агент одразу звертається на ім'я та називає суму.","href":"/voice-agent/pre-call-data-fetch"},{"title":"Вебхук: результат у вашу систему","sidebarTitle":"Вебхук","href":"/voice-agent/webhook"},{"title":"Запуск дзвінка через API","sidebarTitle":"API-тригер","description":"Вузол «API-тригер» дає адресу, за якою ваша система запускає дзвінок на один номер з даними клієнта.","href":"/voice-agent/api-trigger"}]},{"group":"Кампанії","pages":[{"title":"База контактів","href":"/core-concepts/contacts-directory"},{"title":"Кампанія","sidebarTitle":"Кампанія: обдзвін","href":"/core-concepts/campaigns"},{"title":"Повторні дзвінки","href":"/core-concepts/retries"},{"title":"Щоденна робота з кампанією","sidebarTitle":"Керування кампанією","href":"/core-concepts/campaigns-contacts-guide"},{"title":"Звіт кампанії","href":"/core-concepts/campaign-report"}]},{"group":"Номери","pages":[{"title":"Телефонні номери","href":"/core-concepts/phone-numbers"}]},{"group":"Статистика","pages":[{"title":"Дзвінки","href":"/core-concepts/conversations"},{"title":"Звіти","href":"/core-concepts/reports"},{"title":"Статуси дзвінків","href":"/core-concepts/call-statuses"}]}]}]},"basePath":"","title":"Вебхук: результат у вашу систему - UkrGSM Voice Agent","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}