The quickest way to launch your agent is with the chat widget. You can deploy it to production in minutes, making it ideal for customer support, lead capture, or any use case where users interact with your agent through a website. The widget supports text and voice input, and can be displayed as a floating widget, popover, or embedded directly into your page.
Adding the widget to your website
Before adding the widget, you’ll need to publish a version of your agent. Once published, open the Widget tab in the sidebar, then copy the code snippet into your website’s codebase. The snippet points at your project’s default environment (Main) by default. To point the widget at a different environment, see Choosing which environment the widget loads. If you’re not a developer and aren’t sure where to add this code, try asking ChatGPT.Your widget should match your brand. From the Widget settings page, scroll down to configure your agent’s colors, icons, launcher style, interface type, and more. You can also add placeholder text and privacy policy links. Customers on a Business plan can disable Voiceflow branding.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Voiceflow Documentation","description":"Build, launch, and scale AI agents for every customer channel — all in one platform.","colors":{"primary":"#2F68DB","light":"#2F68DB","dark":"#397DFF"},"logo":{"light":"https://mintcdn.com/voiceflow-009a8802/1vhxJ0GVX_3qkVnB/logo/Wordmark_dark.svg?fit=max\u0026auto=format\u0026n=1vhxJ0GVX_3qkVnB\u0026q=85\u0026s=8e412b15780e514697534faf70db3b75","dark":"https://mintcdn.com/voiceflow-009a8802/1vhxJ0GVX_3qkVnB/logo/Wordmark_white.svg?fit=max\u0026auto=format\u0026n=1vhxJ0GVX_3qkVnB\u0026q=85\u0026s=64dc7a2e2414fe24e295e621410522b6"},"favicon":"https://mintcdn.com/voiceflow-009a8802/sQXqOXyzFR_wI2F3/images/Favicon_docs.png?fit=max\u0026auto=format\u0026n=sQXqOXyzFR_wI2F3\u0026q=85\u0026s=298e6fedd127e2473e6e15760152d714","api":{"playground":{"display":"simple"},"examples":{"languages":["bash"]}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#fff","dark":"#1a1a1a"}},"navbar":{"links":[{"href":"mailto:support@voiceflow.com","label":"Contact support"}],"primary":{"type":"button","label":"Contact Sales","href":"http://voiceflow.com/demo"}},"seo":{"metatags":{"google-site-verification":"pO8mAeCAchjNMVkVWA5Phbe28KLPtVr58r6_kS67hKw"},"indexing":"navigable"},"fonts":{"family":"Inter","weight":400,"format":"woff"},"icons":{"library":"tabler"},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"ga4":{"measurementId":"G-F0KHK5CXY4"}},"errors":{"404":{"redirect":false,"title":"Page not found","description":"Our agents searched high and low but couldn't find the page you are looking for. They're upset, but they let our team know so we can fix this. Maybe one of these pages might help?"}},"contextual":{"options":["copy","view","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/voiceflow-009a8802/s3P1FU2SwfLb9qjL/images/thumbnailbackground.png?fit=max\u0026auto=format\u0026n=s3P1FU2SwfLb9qjL\u0026q=85\u0026s=003e0527a5f16c776493da4d4fe1ca2c"},"interaction":{"drilldown":true},"metadata":{"timestamp":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"voiceflow-009a8802","hasAudioNarration":false,"actualSubdomain":"voiceflow-009a8802","customDomains":["www.voiceflow.com"],"gitSource":{"type":"github","owner":"voiceflow","repo":"docs-v2","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED","enabled":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED","enabled":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aa88745521a1150ec8831d0","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"APIs","count":177},{"language":"default","tag":"CLI","count":156},{"language":"default","tag":"Command reference","count":153},{"language":"default","tag":"Build","count":119},{"language":"default","tag":"Documentation","count":75},{"language":"default","tag":"Agent","count":29},{"language":"default","tag":"Analytics","count":27},{"language":"default","tag":"analytics","count":27},{"language":"default","tag":"Analytics query","count":25},{"language":"default","tag":"QA","count":24}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".root{--tw-prose-body: #37413F;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151}:root{--font-weight-body-custom: inherit}.prose strong,#content-container strong{font-weight:600!important}.sidebar-group-header{font-weight:600!important}.prose thead th{font-weight:600!important}.font-semibold{font-weight:600!important}.nav-tabs-item{font-weight:500!important}.max-w-xl{max-width:48rem!important}.sidebar-title{font-weight:600!important}.prose code{font-weight:500!important}.prose pre code{font-weight:400!important}video.mint-w-full{border-radius:8px}.param-head .text-primary{font-weight:700}.primitive-param-field>div{padding-top:1em;padding-bottom:1em}.primitive-param-field>div div{margin-top:0}.primitive-param-field [data-component-part=\"field-name\"]{font-size:1.1em}#api-playground-2-operation-page>div>div>div>div{border:none}@media (min-width: 1600px){body:has(#api-playground-2-operation-page) #content-side-layout{width:36rem!important;max-width:36rem!important}body:has(#api-playground-2-operation-page) #content-side-layout>div.grid{width:36rem!important;max-width:36rem!important}}#header div:has(>h1){flex-direction:column;align-items:flex-start}#header div:has(>h1)>div{margin-left:0}#header>div:first-child #page-context-menu{display:none!important}#header{display:flex;flex-direction:column;padding-bottom:1.25rem;border-bottom:1px solid #e5e7eb}#header>#page-context-menu{display:flex!important;order:-1;margin-bottom:1.75rem}html.dark #header{border-bottom-color:#374151}@media (max-width: 480px){#header>#page-context-menu>*{white-space:nowrap}.vf-ask-ai-label{display:none}.vf-ask-ai-main{padding-left:0.625rem;padding-right:0.625rem}}#sidebar-content ul.sidebar-group:has(+div),#sidebar-content .nav-anchors+div:has(>.sidebar-group-header){padding-bottom:1.25rem;border-bottom:1px solid #e5e7eb}html.dark #sidebar-content ul.sidebar-group:has(+div),html.dark #sidebar-content .nav-anchors+div:has(>.sidebar-group-header){border-bottom-color:#374151}#vf-ask-ai{position:relative;margin-right:0.5rem}.vf-ask-ai-main,.vf-ask-ai-toggle{background:#d97757;border-color:#d97757;color:#fff}.vf-ask-ai-main:hover,.vf-ask-ai-toggle:hover{background:#c8663f;border-color:#c8663f}.vf-ask-ai-toggle{border-left:1px solid rgb(255 255 255 / 25%)}.vf-mark-chatgpt{color:#000}.vf-mark-claude{color:#d97757}.vf-mark-perplexity{color:#20808d}html.dark .vf-mark-chatgpt{color:#fff}html.dark .vf-mark-perplexity{color:#20b8c8}.vf-ask-ai-mark svg{width:16px;height:16px;display:block}.vf-ask-ai-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:190px;padding:4px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 8px 24px rgb(17 24 39 / 8%)}.vf-ask-ai-panel a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:0.875rem;color:#374151;text-decoration:none}.vf-ask-ai-panel a:hover{background:rgb(47 104 219 / 8%);color:#2f68db}html.dark .vf-ask-ai-panel{border-color:rgb(255 255 255 / 7%);background:#0f1117;box-shadow:0 8px 24px rgb(0 0 0 / 40%)}html.dark .vf-ask-ai-panel a{color:#d1d5db}html.dark .vf-ask-ai-panel a:hover{background:rgb(57 125 255 / 12%);color:#397dff}"}]}
{"page":{"pagePath":"documentation/deploy/widget/embedding-the-chat-widget","slug":"/documentation/deploy/widget/embedding-the-chat-widget","pageMetadata":{"title":"Install widget","description":"Add your agent to your website in minutes.","href":"/documentation/deploy/widget/embedding-the-chat-widget"},"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: \"Add your agent to your website in minutes.\"\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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,OptimizedImage}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=ee26a85b6e7d4480a34b382d8b3cf214`,alt:`Widget Example`,\"data-og-width\":`1294`,width:`1294`,\"data-og-height\":`1272`,height:`1272`,\"data-path\":`images/Widget-example.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=280\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=247c86a566bb34b62615cc0511d0b6fb 280w, https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=560\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=a0a7311f1eab36964d3c478476e27289 560w, https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=840\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=b8cc11daf24b2f85a21d7e7269a165a4 840w, https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=1100\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=932c8cd2a5f19e7109b0b2b7baf071b6 1100w, https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=1650\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=a9201f5a05e3ccb55d3b79c07b7a9743 1650w, https://mintcdn.com/voiceflow-009a8802/NHpRp09zo70gXfwC/images/Widget-example.png?w=2500\u0026fit=max\u0026auto=format\u0026n=NHpRp09zo70gXfwC\u0026q=85\u0026s=901f90a879fbabadfebb06c086248f13 2500w`}),`\n`,_jsx(_components.p,{children:`The quickest way to launch your agent is with the chat widget. You can deploy it to production in minutes, making it ideal for customer support, lead capture, or any use case where users interact with your agent through a website. The widget supports text and voice input, and can be displayed as a floating widget, popover, or embedded directly into your page.`}),`\n`,_jsx(Heading,{level:`2`,id:`adding-the-widget-to-your-website`,children:`Adding the widget to your website`}),`\n`,_jsxs(_components.p,{children:[`Before adding the widget, you’ll need to `,_jsx(_components.a,{href:`/documentation/deploy/environments/publishing`,children:`publish a version of your agent`}),`. Once published, open the `,_jsx(_components.strong,{children:`Widget`}),` tab in the sidebar, then copy the code snippet into your website’s codebase. The snippet points at your project’s default environment (`,_jsx(_components.strong,{children:`Main`}),`) by default. To point the widget at a different environment, see `,_jsx(_components.a,{href:`/documentation/deploy/widget/web-chat-api#choosing-which-environment-the-widget-loads`,children:`Choosing which environment the widget loads`}),`. If you’re not a developer and aren’t sure where to add this code, `,_jsx(_components.a,{href:`http://chatgpt.com/?hints=search\u0026q=How%20can%20I%20add%20custom%20JavaScript%20to%20a%20%5Byour%20website%20platform%5D%20website?`,children:`try asking ChatGPT`}),`.`]}),`\n`,_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/voiceflow-009a8802/s3P1FU2SwfLb9qjL/videos/widget.mp4?fit=max\u0026auto=format\u0026n=s3P1FU2SwfLb9qjL\u0026q=85\u0026s=695d35596f01e688ea104919c72d4667`,\"data-path\":`videos/widget.mp4`}),`\n`,_jsxs(_components.p,{children:[`Your widget should match your brand. From the `,_jsx(_components.strong,{children:`Widget`}),` settings page, scroll down to configure your agent’s colors, icons, launcher style, interface type, and more. You can also add placeholder text and privacy policy links. Customers on a Business plan can disable Voiceflow branding.`]}),`\n`,_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/voiceflow-009a8802/s3P1FU2SwfLb9qjL/videos/widget-custom.mp4?fit=max\u0026auto=format\u0026n=s3P1FU2SwfLb9qjL\u0026q=85\u0026s=86b46eb3e2ef6adabbfcbeff8bd05c56`,\"data-path\":`videos/widget-custom.mp4`})]})}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":"Install widget","description":"Add your agent to your website in minutes.","href":"/documentation/deploy/widget/embedding-the-chat-widget"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Adding the widget to your website","slug":"adding-the-widget-to-your-website","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/voiceflow-009a8802/a422365db5c10246/Voiceflow.js","/docs/_mintlify/custom/voiceflow-009a8802/e041c7a6060d1797/ask-ai.js"],"dynamicCss":".mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}","subdomain":"voiceflow-009a8802","siteName":"Voiceflow Documentation","title":"Install widget - Voiceflow Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-31T21:54:26.207Z","originalFileLocation":"documentation/deploy/widget/embedding-the-chat-widget.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=\"light\"}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=\"Add your agent to your website in minutes.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Voiceflow Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_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=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Install widget - Voiceflow Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add your agent to your website in minutes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Voiceflow Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://voiceflow-009a8802.mintlify.site/docs/_mintlify/api/og/v2?division=Chat+widget\u0026amp;title=Install+widget\u0026amp;description=Add+your+agent+to+your+website+in+minutes.\u0026amp;theme=cf68d707af81f256335be7f3\u0026amp;signature=648a5e6801a0501b5f706fc66577b0ae0c8094961b65fd4b3352fd421307bf41\">\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=\"Install widget - Voiceflow Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add your agent to your website in minutes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://voiceflow-009a8802.mintlify.site/docs/_mintlify/api/og/v2?division=Chat+widget\u0026amp;title=Install+widget\u0026amp;description=Add+your+agent+to+your+website+in+minutes.\u0026amp;theme=cf68d707af81f256335be7f3\u0026amp;signature=648a5e6801a0501b5f706fc66577b0ae0c8094961b65fd4b3352fd421307bf41\">\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=\"/docs/mintlify-assets/_mintlify/favicons/voiceflow-009a8802/q7IgIvcII3USklep/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Voiceflow Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F68DB\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"pO8mAeCAchjNMVkVWA5Phbe28KLPtVr58r6_kS67hKw\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/documentation/deploy/widget/embedding-the-chat-widget.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.voiceflow.com/#organization\",\"name\":\"Voiceflow Documentation\",\"url\":\"https://www.voiceflow.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/voiceflow-009a8802/1vhxJ0GVX_3qkVnB/logo/Wordmark_dark.svg?fit=max\u0026auto=format\u0026n=1vhxJ0GVX_3qkVnB\u0026q=85\u0026s=8e412b15780e514697534faf70db3b75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.voiceflow.com/docs#website\",\"name\":\"Voiceflow Documentation\",\"url\":\"https://www.voiceflow.com/docs\",\"publisher\":{\"@id\":\"https://www.voiceflow.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget#webpage\",\"url\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget\",\"name\":\"Install widget\",\"description\":\"Add your agent to your website in minutes.\",\"dateModified\":\"2026-07-31T21:54:26.207Z\",\"isPartOf\":{\"@id\":\"https://www.voiceflow.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Deploy\",\"item\":\"https://www.voiceflow.com/docs/documentation/deploy/environments/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install widget\",\"item\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget#article\",\"headline\":\"Install widget\",\"name\":\"Install widget\",\"description\":\"Add your agent to your website in minutes.\",\"url\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget\",\"mainEntityOfPage\":{\"@id\":\"https://www.voiceflow.com/docs/documentation/deploy/widget/embedding-the-chat-widget#webpage\"},\"dateModified\":\"2026-07-31T21:54:26.207Z\",\"publisher\":{\"@id\":\"https://www.voiceflow.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.voiceflow.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Voiceflow Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Voiceflow Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/documentation/deploy/widget/embedding-the-chat-widget.md","siteName":"Voiceflow Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Build AI agents with Voiceflow","sidebarTitle":"Introduction","mode":"default","href":"/documentation/introduction"},{"group":"Build","pages":[{"title":"Building an agent","sidebarTitle":"Overview","mode":"default","href":"/documentation/build/overview"},{"group":"Agent","pages":[{"title":"Global prompt","sidebarTitle":"Global prompt","href":"/documentation/build/global-prompt"},{"title":"Instructions","sidebarTitle":"Instructions","href":"/documentation/build/instructions"},{"title":"Playbooks","href":"/documentation/build/playbooks"},{"title":"Workflows","href":"/documentation/build/workflows"},{"group":"Editor","pages":[{"title":"The agent instructions editor","sidebarTitle":"Overview","href":"/documentation/build/editor/overview"},{"title":"Referencing tools in prompts","sidebarTitle":"References","href":"/documentation/build/editor/references"},{"title":"Markdown shortcuts for instructions","sidebarTitle":"Markdown","href":"/documentation/build/editor/markdown"},{"title":"Keyboard shortcuts for the editor","sidebarTitle":"Keyboard shortcuts","href":"/documentation/build/editor/keyboard-shortcuts"}]},{"group":"Steps","pages":[{"title":"Message","sidebarTitle":"Message","href":"/documentation/build/steps/message"},{"title":"Card","href":"/documentation/build/steps/card"},{"title":"Carousel","href":"/documentation/build/steps/carousel"},{"title":"Buttons","sidebarTitle":"Buttons","href":"/documentation/build/steps/buttons"},{"title":"Listen","sidebarTitle":"Listen","href":"/documentation/build/steps/listen"},{"title":"Playbook","sidebarTitle":"Playbook","href":"/documentation/build/steps/playbook"},{"title":"Crew","sidebarTitle":"Crew","href":"/documentation/build/steps/crew"},{"title":"Integration","sidebarTitle":"Integration","href":"/documentation/build/steps/integration"},{"title":"MCP","sidebarTitle":"MCP","href":"/documentation/build/steps/mcp"},{"title":"API step","sidebarTitle":"API","href":"/documentation/build/steps/api"},{"title":"Function","sidebarTitle":"Function","href":"/documentation/build/steps/function"},{"title":"Call forward","sidebarTitle":"Call forward","href":"/documentation/build/steps/call-forward"},{"title":"Live agent handoff","sidebarTitle":"Live agent handoff","href":"/documentation/build/steps/handoff"},{"title":"Code","sidebarTitle":"Code","href":"/documentation/build/steps/code"},{"title":"Condition","sidebarTitle":"Condition","href":"/documentation/build/steps/condition"},{"title":"End","sidebarTitle":"End","href":"/documentation/build/steps/end"},{"title":"Operator","sidebarTitle":"Operator","href":"/documentation/build/steps/operator"},{"title":"Set","sidebarTitle":"Set","href":"/documentation/build/steps/set"},{"title":"Workflow","sidebarTitle":"Workflow","href":"/documentation/build/steps/workflow"}]}]},{"group":"Knowledge base","pages":[{"title":"Importing data sources","href":"/documentation/build/importing-data-sources"},{"title":"Querying the knowledge base","href":"/documentation/build/querying-the-knowledge-base"}]},{"group":"Tools","pages":[{"title":"API tool","href":"/documentation/build/tools/api-tool"},{"title":"Function tool","href":"/documentation/build/tools/function-tool"},{"title":"MCP tool","href":"/documentation/build/tools/mcp-tool"},{"group":"Integration tools","pages":[{"title":"Agent tools","sidebarTitle":"Overview","href":"/documentation/build/tools/overview"},{"title":"Zendesk tool","sidebarTitle":"Zendesk","href":"/documentation/build/tools/zendesk-tool"},{"title":"Salesforce tool","sidebarTitle":"Salesforce","href":"/documentation/build/tools/salesforce-tool"},{"title":"Hubspot tool","sidebarTitle":"Hubspot","href":"/documentation/build/tools/hubspot-tool"},{"title":"Shopify tool","sidebarTitle":"Shopify","href":"/documentation/build/tools/shopify"},{"title":"Twilio tool","sidebarTitle":"Twilio","href":"/documentation/build/tools/twilio-tool"},{"title":"Airtable tool","sidebarTitle":"Airtable","href":"/documentation/build/tools/airtable-tool"},{"title":"Make tool","sidebarTitle":"Make","href":"/documentation/build/tools/make-tool"},{"title":"Gmail tool","sidebarTitle":"Gmail","href":"/documentation/build/tools/gmail-tool"},{"title":"Google Sheets tool","sidebarTitle":"Google Sheets","href":"/documentation/build/tools/google-sheets-tool"}]},{"title":"Global tools","href":"/documentation/build/tools/global-tools"},{"title":"System tools","href":"/documentation/build/tools/system-tools"}]},{"title":"Behaviour","href":"/documentation/build/behaviour"},{"group":"Data","pages":[{"title":"Variables","href":"/documentation/build/data/variables"},{"title":"Secrets","href":"/documentation/build/data/secrets"},{"title":"PII redaction","href":"/documentation/build/data/pii-redaction"},{"title":"Personas","href":"/documentation/build/data/personas"}]},{"group":"Framework","pages":[{"title":"Choosing a framework","mode":"default","href":"/documentation/build/framework/choosing-a-framework"},{"title":"Initialization workflow","href":"/documentation/build/framework/initialization-workflow"}]}]},{"group":"Deploy","pages":[{"group":"Environments","pages":[{"title":"Environments","sidebarTitle":"Overview","href":"/documentation/deploy/environments/overview"},{"title":"Publishing","href":"/documentation/deploy/environments/publishing"},{"title":"A/B testing","href":"/documentation/deploy/environments/traffic-split"},{"title":"Merging","href":"/documentation/deploy/environments/merging"},{"title":"Version history","description":"Every publish records a version you can review and restore, so a change that goes wrong is a rollback rather than a rebuild from memory.","href":"/documentation/deploy/environments/version-history"}]},{"group":"Chat widget","pages":[{"title":"Install widget","href":"/documentation/deploy/widget/embedding-the-chat-widget"},{"title":"Customize widget","description":"Customize the Voiceflow web chat widget's styling, modality, and file upload settings to match your brand and product requirements.","href":"/documentation/deploy/widget/custom-web-chat-styling"},{"title":"Chat widget API","href":"/documentation/deploy/widget/web-chat-api"},{"title":"Chat widget extensions","href":"/documentation/deploy/widget/web-chat-extensions"}]},{"group":"Phone integration","pages":[{"title":"Connecting a phone number","href":"/documentation/deploy/phone/connect-a-phone-number"},{"title":"Inbound calling","href":"/documentation/deploy/phone/inbound-calling"},{"title":"Outbound calling","href":"/documentation/deploy/phone/outbound-calling"}]},{"group":"SMS","tag":"Beta","pages":[{"title":"Inbound SMS","tag":"Beta","href":"/documentation/deploy/sms/inbound"},{"title":"Outbound SMS","tag":"Beta","href":"/documentation/deploy/sms/outbound"}]}]},{"group":"Measure","pages":[{"title":"Transcripts","href":"/documentation/measure/transcripts"},{"title":"Evaluations","href":"/documentation/measure/evaluations"},{"title":"Tests","href":"/documentation/measure/tests"},{"title":"Analytics","href":"/documentation/measure/analytics"}]},{"group":"Account","pages":[{"title":"Workspaces","href":"/documentation/account-management/collaboration"},{"group":"Billing","pages":[{"title":"Billing overview","href":"/documentation/account-management/billing"},{"title":"Managing your subscription","href":"/documentation/account-management/billing/managing-your-subscription"},{"title":"Credits pricing table","href":"/documentation/account-management/billing/credits-pricing-table"}]}]}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/courses/home"}]},{"tab":"APIs","pages":[{"title":"APIs","href":"/api-reference/api-overview"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"Resources","menu":[{"item":"Changelog","icon":"https://mintlify.s3.us-west-1.amazonaws.com/voiceflow-009a8802/images/icons/list.svg","description":"Every shipped change, newest first","pages":[{"title":"Changelog","href":"/changelog/changelog"}]},{"item":"Glossary","icon":"https://mintlify.s3.us-west-1.amazonaws.com/voiceflow-009a8802/images/icons/documentation.svg","description":"What each term means, and where it is explained","pages":[{"title":"Glossary","href":"/resources/glossary"}]},{"item":"Status","icon":"https://mintlify.s3.us-west-1.amazonaws.com/voiceflow-009a8802/images/icons/analytics.svg","description":"Live platform availability","href":"https://status.voiceflow.com"}],"pages":[{"title":"Resources","href":"/changelog/changelog"}]},{"tab":"Tico","hidden":true,"pages":[{"title":"Tico","href":"/v4-migration-guide"}]}]},"basePath":"","title":"Install widget - Voiceflow Documentation","deploymentId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","buildId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BwrdYPf2.js","lightbox-handle-r17bVUz3.js"]}