Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.
The widget loads its configuration from your published persona settings in Anam Lab. You can override any setting by adding HTML attributes directly to the <anam-agent> element.
The default mode. The widget renders as a fixed-position overlay, anchored to a corner of the viewport. Users click to expand it into a conversation panel.
For precise control, use bracket syntax to set arbitrary CSS position values:
{/* 20px from the top, flush to the right edge */}<anam-agent agent-id="..." position="[top-20,right-0]"></anam-agent>{/* 100px from the bottom, 40px from the left */}<anam-agent agent-id="..." position="[bottom-100,left-40]"></anam-agent>
The format is [property-value,property-value,...] where:
Before a call starts, the widget plays a short, muted loop of the avatar over its still image. To show only the still image, turn off Preview video under Interface in the Embed tab in Anam Lab, then publish the persona. Embedded widgets can take a few minutes to pick up the change. You can also set the attribute on the element:
agent-id is required. All other attributes are optional and will fall back to your Lab configuration.
Attribute
Type
Default
Description
agent-id
string
Persona ID. Required for fetching config and creating sessions.
api-base-url
string
https://api.anam.ai
API URL override. Only needed for non-production environments.
layout
"floating" | "inline"
"floating"
Widget layout mode.
initial-state
"expanded" | "minimized"
"expanded"
Initial state when layout is floating. Ignored for inline.
position
string
"bottom-right"
Corner position or custom bracket syntax. Only applies to floating layout.
ui-mute-button
"true" | "false"
"true"
Show the microphone mute button.
ui-text-input
"true" | "false"
"true"
Show the text input field.
call-to-action
string
"Talk to our assistant"
Custom text for the start button.
avatar-url
string
Override avatar thumbnail image URL.
avatar-video-url
string
Override avatar preview video URL.
ui-preview-video
"true" | "false"
"true"
Play the avatar preview video before a call. "false" shows the still image.
agent-name
string
Override persona name displayed in the default CTA.
You can get avatar preview media from GET /v1/avatars/{id}.
The returned videoUrl expires after 1 hour, so use a freshly fetched URL or
self-host the MP4 before putting it in long-lived widget configuration.
Last modified on October 5, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anam","colors":{"primary":"#ff6200","light":"#ff6200","dark":"#ff6200"},"logo":{"light":"https://mintcdn.com/anam/C1_yhmh0z2cLMID5/logo/anam-logo-black.png?fit=max\u0026auto=format\u0026n=C1_yhmh0z2cLMID5\u0026q=85\u0026s=df3c7456becff3adcf00bdee3d8b24e6","dark":"https://mintcdn.com/anam/C1_yhmh0z2cLMID5/logo/anam-logo-white.png?fit=max\u0026auto=format\u0026n=C1_yhmh0z2cLMID5\u0026q=85\u0026s=005acf7e494d6373e42ecea78ed414c6","href":"https://anam.ai"},"favicon":"https://mintcdn.com/anam/gnLapnNwnB6mzSvX/images/FaviconDarkBorderRadius.png?fit=max\u0026auto=format\u0026n=gnLapnNwnB6mzSvX\u0026q=85\u0026s=4f13a1002d44bd8912121e6d0f106116","appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://anam.ai/cookbook","label":"Cookbook"},{"href":"https://anam.ai/docs/llms-full.txt","label":"llms.txt"},{"href":"https://join.slack.com/t/anamcommunity/shared_invite/zt-4an41luvk-UH4UowegfQQR3rQbR_UHuQ","label":"Support"}],"primary":{"type":"button","label":"Sign In","href":"https://lab.anam.ai"}},"seo":{"metatags":{"og:site_name":"Anam Documentation","og:description":"Anam developer documentation. Build real-time interactive AI avatars with low-latency voice, custom personas, and multi-language support.","og:image":"/logo/anam-logo-white.png","og:logo":"/logo/anam-logo-white.png","twitter:image":"/logo/anam-logo-white.png","twitter:logo":"/logo/anam-logo-white.png"},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"integrations":{"cookies":{"key":"anam_mintlify_consent","value":"granted"}},"contextual":{"options":["assistant","copy","view","claude","chatgpt"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anam","hasAudioNarration":false,"actualSubdomain":"anam","customDomains":["anam.ai"],"gitSource":{"type":"github","owner":"anam-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aec94f4754501e0c6b6422b","collectionId":"9ca140ce-08c8-4c65-95a5-761bd45fb6d2","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec94f4754501e0c6b6422b"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee4ff60f2546a8f021f333","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":76},{"language":"default","tag":"Overview","count":45},{"language":"default","tag":"Personas","count":37},{"language":"default","tag":"Knowledge","count":20},{"language":"default","tag":"JavaScript SDK","count":16},{"language":"default","tag":"Voices","count":14},{"language":"default","tag":"Integrations","count":12},{"language":"default","tag":"ElevenLabs Agents","count":12},{"language":"default","tag":"Sessions","count":12},{"language":"default","tag":"Embed","count":10}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark a[href=\"https://lab.anam.ai\"],.dark a[href=\"https://lab.anam.ai\"] *{color:#ffffff!important}.dark img[src$=\"/integrations/livekit.svg\"],.dark img[src$=\"/integrations/elevenlabs.svg\"]{filter:invert(1)}a.demo-source-link{display:inline-flex;min-height:44px;max-width:100%;align-items:center;justify-content:center;gap:10px;padding:10px 16px;border:1px solid #d4d4d4;border-radius:8px;background:#ffffff;color:#171717;font-size:14px;font-weight:500;line-height:1.5;text-decoration:none}.demo-source-link>span:first-child{display:flex;flex:none}.demo-source-link svg{background-color:currentColor}a.demo-source-link:hover{background:#f5f5f5;border-color:#a3a3a3}a.demo-source-link:active{background:#e5e5e5}a.demo-source-link:focus-visible{outline:2px solid #ff6200;outline-offset:3px}.dark a.demo-source-link{border-color:#525252;background:#171717;color:#f5f5f5}.dark a.demo-source-link:hover{border-color:#737373;background:#262626}.dark a.demo-source-link:active{background:#404040}.prebuilt-prompt{position:relative;display:grid;grid-template-columns:9.5rem 10.5rem minmax(0, 1fr);justify-content:start;align-items:center;gap:16px 12px;margin:1.75rem 0 2rem;padding:20px;border:1px solid #e5e5e5;border-radius:12px;background:#fafafa}.mdx-content>.prebuilt-prompt:first-child{margin-top:0}.prebuilt-prompt-copy{grid-column:1 / -1;min-width:0}.prebuilt-prompt-title{margin:0;color:#171717;font-size:16px;font-weight:600;letter-spacing:-0.01em;line-height:1.5}.prebuilt-prompt-description{margin:6px 0 0;color:#525252;font-size:14px;line-height:1.5}.prebuilt-prompt-button{display:inline-flex;width:9.5rem;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:#171717;color:#ffffff;font:inherit;font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap;cursor:pointer}.prebuilt-prompt-button:hover{background:#404040}.prebuilt-prompt-button:active{background:#525252}.prebuilt-prompt-button:focus-visible{outline:2px solid #ff6200;outline-offset:3px}.prebuilt-prompt-button[aria-disabled=\"true\"]{cursor:progress}.prebuilt-prompt-button svg{flex:none}.prebuilt-prompt-icon-check,.prebuilt-prompt-icon-error,.prebuilt-prompt-button[data-copy-state=\"copied\"] .prebuilt-prompt-icon-copy,.prebuilt-prompt-button[data-copy-state=\"error\"] .prebuilt-prompt-icon-copy{display:none}.prebuilt-prompt-button[data-copy-state=\"copied\"] .prebuilt-prompt-icon-check,.prebuilt-prompt-button[data-copy-state=\"error\"] .prebuilt-prompt-icon-error{display:initial}.prebuilt-prompt-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.dark .prebuilt-prompt{border-color:#404040;background:#171717}.dark .prebuilt-prompt-title{color:#f5f5f5}.dark .prebuilt-prompt-description{color:#bfbfbf}.dark .prebuilt-prompt-button{background:#f5f5f5;color:#171717}.dark .prebuilt-prompt-button:hover{background:#d4d4d4}.dark .prebuilt-prompt-button:active{background:#bfbfbf}@media (max-width: 480px){.prebuilt-prompt{grid-template-columns:minmax(0, 1fr);justify-content:stretch;gap:12px}.prebuilt-prompt-copy{margin-bottom:4px}.prebuilt-prompt-button{width:100%}}"},{"filePath":"anam-consent.css","content":".anam-cookie-banner{position:fixed;right:1rem;bottom:1rem;z-index:2147483647;width:min(24rem, calc(100vw - 2rem));padding:1rem;font-family:inherit;color:#111827;background:#ffffff;border:1px solid #e5e7eb;border-radius:0.75rem;box-shadow:0 0.625rem 0.9375rem -0.1875rem rgb(0 0 0 / 10%),\n 0 0.25rem 0.375rem -0.25rem rgb(0 0 0 / 10%)}.anam-cookie-banner[hidden]{display:none}.anam-cookie-banner h2{margin:0 0 0.25rem;font-size:0.8125rem;font-weight:600;line-height:1.125rem}.anam-cookie-banner p{margin:0;color:#6b7280;font-size:0.8125rem;line-height:1.125rem}.anam-cookie-banner a{color:#111827;text-underline-offset:0.2rem}.anam-cookie-actions{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:0.5rem;margin-top:1rem}.anam-cookie-actions button{height:2rem;min-width:0;padding:0 1rem;font-family:inherit;font-size:0.8125rem;font-weight:400;line-height:1.125rem;cursor:pointer;border-radius:0.5rem}.anam-cookie-primary{color:#111827;background:#ff6200;border:1px solid #ff6200}.anam-cookie-secondary{color:#111827;background:transparent;border:1px solid #d1d5db}.anam-cookie-primary:hover{background:#e55800;border-color:#e55800}.anam-cookie-secondary:hover{background:#f3f4f6}.anam-cookie-actions button:focus-visible{outline:2px solid #ff6200;outline-offset:2px}"}],"page":{"pagePath":"embed/widget/configuration","slug":"/embed/widget/configuration","pageMetadata":{"sidebarTitle":"Configuration","title":"Configure the Anam Widget","description":"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.","href":"/embed/widget/configuration"},"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: \"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The widget loads its configuration from your published persona settings in `,_jsx(_components.a,{href:`https://lab.anam.ai`,children:`Anam Lab`}),`. You can override any setting by adding HTML attributes directly to the `,_jsx(_components.code,{children:`\u003canam-agent>`}),` element.`]}),`\n`,_jsx(Heading,{level:`2`,id:`layout-modes`,children:`Layout modes`}),`\n`,_jsx(Heading,{level:`3`,id:`floating`,children:`Floating`}),`\n`,_jsx(_components.p,{children:`The default mode. The widget renders as a fixed-position overlay, anchored to a corner of the viewport. Users click to expand it into a conversation panel.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` agent-id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-persona-id\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"floating\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bottom-right\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` initial-state`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"minimized\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`initial-state`}),` attribute controls whether the widget starts expanded or minimized:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"expanded\"`}),` (default) the conversation panel is open immediately`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"minimized\"`}),` only the floating orb is visible; the user clicks to expand`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`inline`,children:`Inline`}),`\n`,_jsx(_components.p,{children:`The widget fills its parent container and becomes part of your page layout. There is no floating orb or expand/collapse behavior.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` style`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"width: 100%; max-width: 720px; aspect-ratio: 3/2;\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` agent-id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-persona-id\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"inline\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` >\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`The inline widget inherits the dimensions of its parent. Make sure the parent has explicit width and height (or aspect-ratio) set.`})}),`\n`,_jsx(Heading,{level:`2`,id:`custom-positioning`,children:`Custom positioning`}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`floating`}),` layout, the `,_jsx(_components.code,{children:`position`}),` attribute supports both predefined corners and custom CSS values using bracket syntax.`]}),`\n`,_jsx(Heading,{level:`3`,id:`predefined-positions`,children:`Predefined positions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`CSS Result`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"bottom-right\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bottom: 24px; right: 24px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"bottom-left\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bottom: 24px; left: 24px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"top-right\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`top: 24px; right: 24px`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"top-left\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`top: 24px; left: 24px`})})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`bracket-syntax`,children:`Bracket syntax`}),`\n`,_jsx(_components.p,{children:`For precise control, use bracket syntax to set arbitrary CSS position values:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{/* 20px from the top, flush to the right edge */}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` agent-id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[top-20,right-0]\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{/* 100px from the bottom, 40px from the left */}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` agent-id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[bottom-100,left-40]\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The format is `,_jsx(_components.code,{children:`[property-value,property-value,...]`}),` where:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Allowed properties: `,_jsx(_components.code,{children:`top`}),`, `,_jsx(_components.code,{children:`right`}),`, `,_jsx(_components.code,{children:`bottom`}),`, `,_jsx(_components.code,{children:`left`}),`, `,_jsx(_components.code,{children:`margin`}),`, `,_jsx(_components.code,{children:`margin-top`}),`, `,_jsx(_components.code,{children:`margin-right`}),`, `,_jsx(_components.code,{children:`margin-bottom`}),`, `,_jsx(_components.code,{children:`margin-left`})]}),`\n`,_jsxs(_components.li,{children:[`Bare numbers are treated as pixels (e.g., `,_jsx(_components.code,{children:`top-20`}),` becomes `,_jsx(_components.code,{children:`top: 20px`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`CSS units can be specified directly (e.g., `,_jsx(_components.code,{children:`top-2rem`}),`)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`preview-video`,children:`Preview video`}),`\n`,_jsxs(_components.p,{children:[`Before a call starts, the widget plays a short, muted loop of the avatar over its still image. To show only the still image, turn off `,_jsx(_components.strong,{children:`Preview video`}),` under `,_jsx(_components.strong,{children:`Interface`}),` in the `,_jsx(_components.strong,{children:`Embed`}),` tab in Anam Lab, then publish the persona. Embedded widgets can take a few minutes to pick up the change. You can also set the attribute on the element:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` agent-id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-persona-id\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ui-preview-video`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`anam-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`With the preview video off, the widget doesn’t download the video. The attribute overrides the Lab setting for that element.`}),`\n`,_jsx(Heading,{level:`2`,id:`attributes-reference`,children:`Attributes reference`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`agent-id`}),` is required. All other attributes are optional and will fall back to your Lab configuration.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Attribute`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent-id`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Persona ID. Required for fetching config and creating sessions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api-base-url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.anam.ai`})}),_jsx(_components.td,{children:`API URL override. Only needed for non-production environments.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`layout`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"floating\"`}),` | `,_jsx(_components.code,{children:`\"inline\"`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"floating\"`})}),_jsx(_components.td,{children:`Widget layout mode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`initial-state`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"expanded\"`}),` | `,_jsx(_components.code,{children:`\"minimized\"`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"expanded\"`})}),_jsxs(_components.td,{children:[`Initial state when layout is `,_jsx(_components.code,{children:`floating`}),`. Ignored for `,_jsx(_components.code,{children:`inline`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"bottom-right\"`})}),_jsxs(_components.td,{children:[`Corner position or custom bracket syntax. Only applies to `,_jsx(_components.code,{children:`floating`}),` layout.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ui-mute-button`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"true\"`}),` | `,_jsx(_components.code,{children:`\"false\"`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"true\"`})}),_jsx(_components.td,{children:`Show the microphone mute button.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ui-text-input`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"true\"`}),` | `,_jsx(_components.code,{children:`\"false\"`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"true\"`})}),_jsx(_components.td,{children:`Show the text input field.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`call-to-action`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"Talk to our assistant\"`})}),_jsx(_components.td,{children:`Custom text for the start button.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avatar-url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Override avatar thumbnail image URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avatar-video-url`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Override avatar preview video URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ui-preview-video`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"true\"`}),` | `,_jsx(_components.code,{children:`\"false\"`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"true\"`})}),_jsxs(_components.td,{children:[`Play the avatar preview video before a call. `,_jsx(_components.code,{children:`\"false\"`}),` shows the still image.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent-name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Override persona name displayed in the default CTA.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can get avatar preview media from `,_jsxs(_components.a,{href:`/api-reference/avatars/get-avatar`,children:[`GET `,_jsx(_components.code,{children:`/v1/avatars/{id}`})]}),`.\nThe returned `,_jsx(_components.code,{children:`videoUrl`}),` expires after 1 hour, so use a freshly fetched URL or\nself-host the MP4 before putting it in long-lived widget configuration.`]})})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"sidebarTitle":"Configuration","title":"Configure the Anam Widget","description":"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.","href":"/embed/widget/configuration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Layout modes","slug":"layout-modes","depth":2,"children":[{"title":"Floating","slug":"floating","depth":3,"children":[]},{"title":"Inline","slug":"inline","depth":3,"children":[]}]},{"title":"Custom positioning","slug":"custom-positioning","depth":2,"children":[{"title":"Predefined positions","slug":"predefined-positions","depth":3,"children":[]},{"title":"Bracket syntax","slug":"bracket-syntax","depth":3,"children":[]}]},{"title":"Preview video","slug":"preview-video","depth":2,"children":[]},{"title":"Attributes reference","slug":"attributes-reference","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/anam/b2d95394aafe5d57/anam-attribution.js","/docs/_mintlify/custom/anam/e3b0c44298fc1c14/breadcrumbs.js","/docs/_mintlify/custom/anam/09f69e41a6d2a118/scripts/sync-api-reference.js","/docs/_mintlify/custom/anam/8eee8d5d8d0dc77a/anam-consent.js","/docs/_mintlify/custom/anam/1df9efd6c260b783/integration-menu-preload.js"],"subdomain":"anam","siteName":"Anam","title":"Configure the Anam Widget - Anam","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-05T12:44:47.526Z","gitLastModified":"2026-10-05T12:44:35.000Z","originalFileLocation":"embed/widget/configuration.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=\"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Anam\">\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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_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/anam/tqFnPe6JO4uLg8KJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configure the Anam Widget - Anam\">\u003cmeta data-mint-head property=\"og:description\" content=\"Anam developer documentation. Build real-time interactive AI avatars with low-latency voice, custom personas, and multi-language support.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anam Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://anam.ai/docs/embed/widget/configuration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anam.mintlify.site/docs/logo/anam-logo-white.png\">\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=\"Configure the Anam Widget - Anam\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Anam developer documentation. Build real-time interactive AI avatars with low-latency voice, custom personas, and multi-language support.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anam.mintlify.site/docs/logo/anam-logo-white.png\">\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/anam/tqFnPe6JO4uLg8KJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anam\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff6200\">\u003cmeta data-mint-head name=\"og:logo\" content=\"/logo/anam-logo-white.png\">\u003cmeta data-mint-head name=\"twitter:logo\" content=\"/logo/anam-logo-white.png\">\u003clink data-mint-head rel=\"canonical\" href=\"https://anam.ai/docs/embed/widget/configuration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/embed/widget/configuration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://anam.ai/#organization\",\"name\":\"Anam\",\"url\":\"https://anam.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anam/C1_yhmh0z2cLMID5/logo/anam-logo-black.png?fit=max\u0026auto=format\u0026n=C1_yhmh0z2cLMID5\u0026q=85\u0026s=df3c7456becff3adcf00bdee3d8b24e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://anam.ai/docs#website\",\"name\":\"Anam\",\"url\":\"https://anam.ai/docs\",\"publisher\":{\"@id\":\"https://anam.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://anam.ai/docs/embed/widget/configuration#webpage\",\"url\":\"https://anam.ai/docs/embed/widget/configuration\",\"name\":\"Configure the Anam Widget\",\"description\":\"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.\",\"dateModified\":\"2026-10-05T12:44:35.000Z\",\"isPartOf\":{\"@id\":\"https://anam.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://anam.ai/docs/embed/widget/configuration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://anam.ai/docs/embed/widget/configuration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anam Widget\",\"item\":\"https://anam.ai/docs/embed/widget/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure the Anam Widget\",\"item\":\"https://anam.ai/docs/embed/widget/configuration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://anam.ai/docs/embed/widget/configuration#article\",\"headline\":\"Configure the Anam Widget\",\"name\":\"Configure the Anam Widget\",\"description\":\"Configure the Anam Widget with HTML attributes and Lab settings, then control its appearance, position, persona, and runtime behaviour.\",\"url\":\"https://anam.ai/docs/embed/widget/configuration\",\"mainEntityOfPage\":{\"@id\":\"https://anam.ai/docs/embed/widget/configuration#webpage\"},\"image\":\"https://anam.ai/logo/anam-logo-white.png\",\"dateModified\":\"2026-10-05T12:44:35.000Z\",\"publisher\":{\"@id\":\"https://anam.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://anam.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Anam\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Anam","nav":{"global":null,"tabs":[{"tab":"Overview","align":"start","pages":[{"title":"Overview","href":"/introduction/overview"}]},{"tab":"Embed","align":"start","groups":[{"group":"Overview","pages":[{"title":"Embed Anam on your website","href":"/embed/overview"}]},{"group":"Anam Widget","pages":[{"sidebarTitle":"Overview","title":"Anam Widget Overview","href":"/embed/widget/overview"},{"sidebarTitle":"Installation","title":"Install the Anam Widget","description":"Install the Anam Widget from the CDN or npm, load it in popular JavaScript frameworks, and connect it to the configuration in Anam Lab.","href":"/embed/widget/installation"},{"sidebarTitle":"Configuration","title":"Configure the Anam Widget","href":"/embed/widget/configuration"},{"sidebarTitle":"Events","title":"Anam Widget Events","description":"Listen for Anam Widget lifecycle and conversation events so your site can record analytics, update its interface, and respond to sessions.","href":"/embed/widget/events"},{"group":"No-Code Platforms","pages":[{"sidebarTitle":"Framer","title":"Add the Anam Widget to Framer","href":"/embed/widget/framer"},{"sidebarTitle":"Shopify","title":"Add the Anam Widget to Shopify","href":"/embed/widget/shopify"},{"sidebarTitle":"WordPress","title":"Add the Anam Widget to WordPress","href":"/embed/widget/wordpress"},{"sidebarTitle":"Wix","title":"Add the Anam Widget to Wix","href":"/embed/widget/wix"},{"sidebarTitle":"Squarespace","title":"Add the Anam Widget to Squarespace","href":"/embed/widget/squarespace"}]}]}]},{"tab":"JavaScript SDK","align":"start","pages":[{"title":"JavaScript SDK","href":"/javascript-sdk/api-key"}]},{"tab":"Python SDK","align":"start","pages":[{"title":"Python SDK","href":"/python-sdk/overview"}]},{"tab":"Integrations","align":"start","menu":[{"item":"LiveKit","icon":"https://mintlify.s3.us-west-1.amazonaws.com/anam/images/integrations/livekit.svg","pages":[{"title":"LiveKit","href":"/integrations/livekit/overview"}]},{"item":"ElevenLabs Agents","icon":"https://mintlify.s3.us-west-1.amazonaws.com/anam/images/integrations/elevenlabs.svg","pages":[{"title":"ElevenLabs Agents","href":"/integrations/elevenlabs/agents"}]},{"item":"Other SDKs","icon":"code","pages":[{"title":"Other SDKs","href":"/integrations/sdks"}]}],"pages":[{"title":"Integrations","href":"/integrations/livekit/overview"}]},{"tab":"API Reference","align":"start","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Changelog","align":"start","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Configure the Anam Widget - Anam","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":[],"chunks":[]}