The architecture of a VoiceOS integration, in one page.
An integration is a folder. At its center is voiceos.integration.json — the
manifest — plus a server implementing the tools it declares. VoiceOS reads
the manifest, runs the server, and handles the rest: voice, the agent,
confirmations, rendering, secrets.
coffee-tracker/├── voiceos.integration.json # identity, runtime, permissions, tools├── server.ts # a standard MCP server (your logic)├── verify.ts # smoke test — run after every change├── voiceos.integration.preview.json # sample inputs for tests & previews└── AGENTS.md # teaches AI coding agents the contract
A turn, step by step
1
Discovery
VoiceOS launches your server over MCP and
lists its tools. Each tool’s description is what the agent reads when deciding
whether to call it — write it as a routing rule.For common short commands, optional fast intents map
example phrases and arguments to those same tools. A dedicated selector runs
alongside the normal agent; a valid winning intent follows the same execution
and confirmation policy. Otherwise, the normal agent continues.
2
Confirmation — acting tools only
If the tool declares a confirmation view, the notch renders it before any of
your code runs. The user edits bound arguments inline; the edited values are
what execute. Read-only tools skip this.
Rendered from the manifest. {{text}} and {{voice}} are bound to the tool call's arguments.
3
Execution
Your handler runs with the validated arguments. Secrets the user entered during
setup arrive as environment variables.
4
Result
You return JSON. The model reads the data and narrates it. Attach a glance
card with glanceResult([...]) and VoiceOS lifts it out of the payload — the
model never sees UI JSON — validates every block, and renders it natively.
A read tool's glance card: header block + list block, returned as plain JSON.
Two UI languages
Integrations describe UI as data, never as components with host access.
There’s one vocabulary per moment:
Before a tool runs
After a tool runs
Purpose
Confirm and edit
Show the result
Blocks
card, text, textField, select, toggle, actions, …
header, list, stats, keyValue, charts, …
Authored
Once, in the manifest
At runtime, via glanceResult([...])
Bindings
{{arg}} binds fields to tool arguments
None — you have the real data
Apple analogy
App Intents confirmation snippets
WidgetKit
Both are rendered by VoiceOS’s own themed components, so they inherit every
restyle for free, and anything off-schema degrades safely instead of breaking
the notch.
When the built-in blocks aren’t enough, either moment also accepts a single
sandboxed custom widget — your own HTML in an
isolated iframe with a strict message bridge.
Where your code runs
The manifest’s runtime picks one of three homes:
Kind
What it means
When to use it
local-mcp
VoiceOS runs your folder’s server on the user’s machine over stdio.
The default. Zero infra; folders are shareable.
remote-mcp
You host a Streamable-HTTP MCP server; VoiceOS connects and brokers auth.
Teams that own infra or need server-side state.
hosted
Reserved: a VoiceOS-operated sandbox.
Not available yet — declared so manifests won’t change when it ships.
Two isolation rules hold in every runtime:
Integration code never runs inside the VoiceOS process, and never sees
VoiceOS secrets.
UI is data. Your cards can’t call host APIs, spoof system confirmations,
or read anything from the app.
Permissions
Everything sensitive is opt-in, declared in the manifest, and shown to the user
at install time.
Permission
Grants
network
Egress to the listed domains only.
notify
Completion notifications and opening the side notch.
Least privilege is the rule: list only the domains you actually call.
Secrets
Declare what you need — API keys via auth: { kind: "apiKey" }, everything else
via preferences. VoiceOS collects the values from the user
right when they’re first needed, stores them
encrypted, and injects them into your server as environment variables named
after each field (process.env.MY_FIELD).
Declared an API key? The first time a tool needs it, the notch asks — you build no settings screen.
Secret values never appear in the agent transcript and are never persisted in
plaintext.
Stability — the Minecraft rule
The contract is versioned by MANIFEST_SCHEMA_VERSION and UI_SCHEMA_VERSION,
both currently 1. Additive changes never bump them, and the host renders
unknown future blocks as safe placeholders — so an integration authored today
keeps working across years of VoiceOS updates.
Quickstart
Build your first integration in the app — no code, three minutes.
Build with code
The same integration by hand: manifest, server, cards.
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"VoiceOS API","description":"Context Aware ASR for voice agents and developer products.","colors":{"primary":"#126FF6","light":"#4D9EFF","dark":"#0A5ED7"},"logo":{"light":"https://mintcdn.com/voiceos/GnBcbaJnPAEvhdVd/logo/VoiceOSFullLogo.png?fit=max\u0026auto=format\u0026n=GnBcbaJnPAEvhdVd\u0026q=85\u0026s=b693548393d4f1c3952d3627d6b09202","dark":"https://mintcdn.com/voiceos/GnBcbaJnPAEvhdVd/logo/VoiceOSFullLogoWhite.png?fit=max\u0026auto=format\u0026n=GnBcbaJnPAEvhdVd\u0026q=85\u0026s=60c6a7a882b4b077f4b95e2886e7b964","href":"https://www.voiceos.com"},"favicon":"https://mintcdn.com/voiceos/GnBcbaJnPAEvhdVd/logo/favicon.png?fit=max\u0026auto=format\u0026n=GnBcbaJnPAEvhdVd\u0026q=85\u0026s=faee1d82e2763e74c00c6cf65097244f","appearance":{"default":"system"},"background":{"decoration":"gradient"},"footer":{"socials":{"website":"https://www.voiceos.com"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"voiceos","hasAudioNarration":false,"actualSubdomain":"voiceos","customDomains":["docs.voiceos.com"],"gitSource":{"type":"github","owner":"wakoai","repo":"voiceos-dictation","deployBranch":"staging","contentDirectory":"voiceos-api/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b092c94da7e75b2f5c8a9a6","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Custom Integrations","count":22},{"language":"default","tag":"Building blocks","count":7},{"language":"default","tag":"Reference","count":5},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Ship it","count":3},{"language":"default","tag":"Custom widgets","count":3}]},"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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"integrations/how-it-works","slug":"/integrations/how-it-works","pageMetadata":{"title":"How it works","description":"The architecture of a VoiceOS integration, in one page.","href":"/integrations/how-it-works"},"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: \"The architecture of a VoiceOS integration, in one page.\"\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`,em:`em`,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},{Card,CardGroup,CodeBlock,Frame,Heading,Mermaid,OptimizedImage,Step,Steps,Table,Tip}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`An integration is a folder. At its center is `,_jsx(_components.code,{children:`voiceos.integration.json`}),` — the\n`,_jsx(_components.strong,{children:`manifest`}),` — plus a server implementing the tools it declares. VoiceOS reads\nthe manifest, runs the server, and handles the rest: voice, the agent,\nconfirmations, rendering, secrets.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`coffee-tracker/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── voiceos.integration.json # identity, runtime, permissions, tools`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── server.ts # a standard MCP server (your logic)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── verify.ts # smoke test — run after every change`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── voiceos.integration.preview.json # sample inputs for tests \u0026 previews`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── AGENTS.md # teaches AI coding agents the contract`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`a-turn-step-by-step`,children:`A turn, step by step`}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant User\n participant Agent as VoiceOS agent\n participant Notch\n participant Server as Your MCP server\n\n User->>Agent: \"read this in Rachel's voice\"\n Agent->>Agent: picks your generate_speech tool\n Agent->>Notch: shows the tool's confirmation card\n User->>Notch: edits args, approves\n Notch->>Server: tools/call generate_speech (edited args)\n Server-->>Agent: JSON result (what the model reads)\n Server-->>Notch: glance card (what the user sees)\n Agent->>User: narrates the answer`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Discovery`,children:[_jsxs(_components.p,{children:[`VoiceOS launches your server over `,_jsx(_components.a,{href:`https://modelcontextprotocol.io`,children:`MCP`}),` and\nlists its tools. Each tool’s `,_jsx(_components.code,{children:`description`}),` is what the agent reads when deciding\nwhether to call it — write it as a routing rule.`]}),_jsxs(_components.p,{children:[`For common short commands, optional `,_jsx(_components.a,{href:`/integrations/intents`,children:`fast intents`}),` map\nexample phrases and arguments to those same tools. A dedicated selector runs\nalongside the normal agent; a valid winning intent follows the same execution\nand confirmation policy. Otherwise, the normal agent continues.`]})]}),_jsxs(Step,{title:`Confirmation — acting tools only`,children:[_jsxs(_components.p,{children:[`If the tool declares a `,_jsx(_components.code,{children:`confirmation`}),` view, the notch renders it `,_jsx(_components.em,{children:`before any of\nyour code runs`}),`. The user edits bound arguments inline; the edited values are\nwhat execute. Read-only tools skip this.`]}),_jsx(Frame,{caption:`Rendered from the manifest. {{text}} and {{voice}} are bound to the tool call's arguments.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=77db66a04aa42d377007f7a78b2b667e`,alt:`A 'Generate speech' confirmation card with an editable Text field, a Voice picker set to Rachel, and Cancel / Generate buttons.`,\"data-og-width\":`1952`,width:`1952`,\"data-og-height\":`1312`,height:`1312`,\"data-path\":`images/integrations/elevenlabs-confirm.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=280\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=171d7e44cf30841190e3f197e846c4f6 280w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=560\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=fccfe7609448cfcdadf6b409bf1c9824 560w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=840\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=924450033305f47d724d9cea89b5995f 840w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=1100\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=90b456949c43ac4da84fc748e721c46a 1100w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=1650\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=5e30b3f61853450a6755fa0915a3130d 1650w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-confirm.png?w=2500\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=04d171dbbac86e888afaf69cde83d49e 2500w`})})]}),_jsx(Step,{title:`Execution`,children:_jsx(_components.p,{children:`Your handler runs with the validated arguments. Secrets the user entered during\nsetup arrive as environment variables.`})}),_jsxs(Step,{title:`Result`,children:[_jsxs(_components.p,{children:[`You return JSON. The model reads the data and narrates it. Attach a `,_jsx(_components.strong,{children:`glance\ncard`}),` with `,_jsx(_components.code,{children:`glanceResult([...])`}),` and VoiceOS lifts it out of the payload — the\nmodel never sees UI JSON — validates every block, and renders it natively.`]}),_jsx(Frame,{caption:`A read tool's glance card: header block + list block, returned as plain JSON.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=ff6ef758cf4579824a336fb67b211347`,alt:`The notch showing 'What voices do I have?' and an ElevenLabs Voices card listing Rachel (Default), Adam, Bella, and Antoni with descriptions.`,\"data-og-width\":`1952`,width:`1952`,\"data-og-height\":`1494`,height:`1494`,\"data-path\":`images/integrations/elevenlabs-voices.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=280\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=f1cd6969136a081e61456f9f94104f5d 280w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=560\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=310b3e12b74b2bcbb6ab337d11c0dd70 560w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=840\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=f7fabec88b2cdafcbbdd68377d86812f 840w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=1100\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=22e389d5fc20f325d51b43d9165daca3 1100w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=1650\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=ca83d3f85cd2fc935b52800285735761 1650w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-voices.png?w=2500\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=ec315b52607aa125ea00f98e1b987c9f 2500w`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`two-ui-languages`,children:`Two UI languages`}),`\n`,_jsxs(_components.p,{children:[`Integrations describe UI as `,_jsx(_components.strong,{children:`data`}),`, never as components with host access.\nThere’s one vocabulary per moment:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Before a tool runs`}),_jsx(_components.th,{children:`After a tool runs`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Purpose`})}),_jsx(_components.td,{children:`Confirm and edit`}),_jsx(_components.td,{children:`Show the result`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Blocks`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`card`}),`, `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`textField`}),`, `,_jsx(_components.code,{children:`select`}),`, `,_jsx(_components.code,{children:`toggle`}),`, `,_jsx(_components.code,{children:`actions`}),`, …`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header`}),`, `,_jsx(_components.code,{children:`list`}),`, `,_jsx(_components.code,{children:`stats`}),`, `,_jsx(_components.code,{children:`keyValue`}),`, charts, …`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Authored`})}),_jsx(_components.td,{children:`Once, in the manifest`}),_jsxs(_components.td,{children:[`At runtime, via `,_jsx(_components.code,{children:`glanceResult([...])`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Bindings`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{{arg}}`}),` binds fields to tool arguments`]}),_jsx(_components.td,{children:`None — you have the real data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Apple analogy`})}),_jsx(_components.td,{children:`App Intents confirmation snippets`}),_jsx(_components.td,{children:`WidgetKit`})]})]})]}),`\n`,_jsx(_components.p,{children:`Both are rendered by VoiceOS’s own themed components, so they inherit every\nrestyle for free, and anything off-schema degrades safely instead of breaking\nthe notch.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When the built-in blocks aren’t enough, either moment also accepts a single\nsandboxed `,_jsx(_components.a,{href:`/integrations/widgets`,children:`custom widget`}),` — your own HTML in an\nisolated iframe with a strict message bridge.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`where-your-code-runs`,children:`Where your code runs`}),`\n`,_jsxs(_components.p,{children:[`The manifest’s `,_jsx(_components.code,{children:`runtime`}),` picks one of three homes:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kind`}),_jsx(_components.th,{children:`What it means`}),_jsx(_components.th,{children:`When to use it`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`local-mcp`})}),_jsx(_components.td,{children:`VoiceOS runs your folder’s server on the user’s machine over stdio.`}),_jsx(_components.td,{children:`The default. Zero infra; folders are shareable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`remote-mcp`})}),_jsx(_components.td,{children:`You host a Streamable-HTTP MCP server; VoiceOS connects and brokers auth.`}),_jsx(_components.td,{children:`Teams that own infra or need server-side state.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`hosted`})}),_jsx(_components.td,{children:`Reserved: a VoiceOS-operated sandbox.`}),_jsx(_components.td,{children:`Not available yet — declared so manifests won’t change when it ships.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Two isolation rules hold in every runtime:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Integration code never runs inside the VoiceOS process`}),`, and never sees\nVoiceOS secrets.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`UI is data.`}),` Your cards can’t call host APIs, spoof system confirmations,\nor read anything from the app.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`permissions`,children:`Permissions`}),`\n`,_jsx(_components.p,{children:`Everything sensitive is opt-in, declared in the manifest, and shown to the user\nat install time.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Permission`}),_jsx(_components.th,{children:`Grants`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`network`})}),_jsxs(_components.td,{children:[`Egress to the listed `,_jsx(_components.code,{children:`domains`}),` only.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notify`})}),_jsx(_components.td,{children:`Completion notifications and opening the side notch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background`})}),_jsxs(_components.td,{children:[`Long-running tools (`,_jsx(_components.code,{children:`execution.mode: \"background\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`store`})}),_jsx(_components.td,{children:`A small per-user encrypted key-value store.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`webhook`})}),_jsx(_components.td,{children:`An inbound webhook URL (reserved).`})]})]})]}),`\n`,_jsx(_components.p,{children:`Least privilege is the rule: list only the domains you actually call.`}),`\n`,_jsx(Heading,{level:`2`,id:`secrets`,children:`Secrets`}),`\n`,_jsxs(_components.p,{children:[`Declare what you need — API keys via `,_jsx(_components.code,{children:`auth: { kind: \"apiKey\" }`}),`, everything else\nvia `,_jsx(_components.code,{children:`preferences`}),`. VoiceOS collects the values from the user\n`,_jsx(_components.a,{href:`/integrations/setup-fields`,children:`right when they’re first needed`}),`, stores them\nencrypted, and injects them into your server as `,_jsx(_components.strong,{children:`environment variables named\nafter each field`}),` (`,_jsx(_components.code,{children:`process.env.MY_FIELD`}),`).`]}),`\n`,_jsx(Frame,{caption:`Declared an API key? The first time a tool needs it, the notch asks — you build no settings screen.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=ab85dec09db5d34be62bfe85eb2a5529`,alt:`An 'ElevenLabs needs setup' card in the notch with help text, a secure ElevenLabs API key field showing an sk_ placeholder, and Not now / Save and continue buttons.`,\"data-og-width\":`1952`,width:`1952`,\"data-og-height\":`938`,height:`938`,\"data-path\":`images/integrations/elevenlabs-setup.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=280\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=665b6cafb066664ea38be010c2e16c60 280w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=560\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=341254931165d4890a4d396a85628d7e 560w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=840\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=0bfd90fef09afed16fd989c342db06d6 840w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=1100\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=0aeb51cc7023f85ff40b99c2c58e4f96 1100w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=1650\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=80a3a0f3aa6257684c67cb5d0e5e8dd5 1650w, https://mintcdn.com/voiceos/KVsJZgZq4ypscj2j/images/integrations/elevenlabs-setup.png?w=2500\u0026fit=max\u0026auto=format\u0026n=KVsJZgZq4ypscj2j\u0026q=85\u0026s=2de5ca6013a217d4fdb85db6b01a69b5 2500w`})}),`\n`,_jsx(_components.p,{children:`Secret values never appear in the agent transcript and are never persisted in\nplaintext.`}),`\n`,_jsx(Heading,{level:`2`,id:`stability-—-the-minecraft-rule`,children:`Stability — the Minecraft rule`}),`\n`,_jsxs(_components.p,{children:[`The contract is versioned by `,_jsx(_components.code,{children:`MANIFEST_SCHEMA_VERSION`}),` and `,_jsx(_components.code,{children:`UI_SCHEMA_VERSION`}),`,\nboth currently `,_jsx(_components.code,{children:`1`}),`. `,_jsx(_components.strong,{children:`Additive changes never bump them`}),`, and the host renders\nunknown future blocks as safe placeholders — so an integration authored today\nkeeps working across years of VoiceOS updates.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Quickstart`,icon:`rocket`,href:`/integrations/quickstart`,children:_jsx(_components.p,{children:`Build your first integration in the app — no code, three minutes.`})}),_jsx(Card,{title:`Build with code`,icon:`code`,href:`/integrations/build-with-code`,children:_jsx(_components.p,{children:`The same integration by hand: manifest, server, cards.`})})]})]})}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":"How it works","description":"The architecture of a VoiceOS integration, in one page.","href":"/integrations/how-it-works"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"A turn, step by step","slug":"a-turn-step-by-step","depth":2,"children":[]},{"title":"Two UI languages","slug":"two-ui-languages","depth":2,"children":[]},{"title":"Where your code runs","slug":"where-your-code-runs","depth":2,"children":[]},{"title":"Permissions","slug":"permissions","depth":2,"children":[]},{"title":"Secrets","slug":"secrets","depth":2,"children":[]},{"title":"Stability — the Minecraft rule","slug":"stability-—-the-minecraft-rule","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"voiceos","siteName":"VoiceOS API","title":"How it works - VoiceOS API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-18T21:50:31.597Z","originalFileLocation":"integrations/how-it-works.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=\"The architecture of a VoiceOS integration, in one page.\">\u003cmeta data-mint-head name=\"application-name\" content=\"VoiceOS API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_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/voiceos/UCXuEEtd4Ez5covm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How it works - VoiceOS API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The architecture of a VoiceOS integration, in one page.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VoiceOS API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.voiceos.com/integrations/how-it-works\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://voiceos.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=How+it+works\u0026amp;description=The+architecture+of+a+VoiceOS+integration%2C+in+one+page.\u0026amp;theme=fc26f681e65f7a5bf875cb80\u0026amp;signature=b6e85ca813732d8173c32f6d5170e2fc2a999312422e5f518714e0d09660969d\">\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=\"How it works - VoiceOS API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The architecture of a VoiceOS integration, in one page.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://voiceos.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=How+it+works\u0026amp;description=The+architecture+of+a+VoiceOS+integration%2C+in+one+page.\u0026amp;theme=fc26f681e65f7a5bf875cb80\u0026amp;signature=b6e85ca813732d8173c32f6d5170e2fc2a999312422e5f518714e0d09660969d\">\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/voiceos/UCXuEEtd4Ez5covm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VoiceOS API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#126FF6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.voiceos.com/integrations/how-it-works\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/how-it-works.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.voiceos.com/#organization\",\"name\":\"VoiceOS API\",\"url\":\"https://docs.voiceos.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/voiceos/GnBcbaJnPAEvhdVd/logo/VoiceOSFullLogo.png?fit=max\u0026auto=format\u0026n=GnBcbaJnPAEvhdVd\u0026q=85\u0026s=b693548393d4f1c3952d3627d6b09202\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.voiceos.com#website\",\"name\":\"VoiceOS API\",\"url\":\"https://docs.voiceos.com\",\"publisher\":{\"@id\":\"https://docs.voiceos.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.voiceos.com/integrations/how-it-works#webpage\",\"url\":\"https://docs.voiceos.com/integrations/how-it-works\",\"name\":\"How it works\",\"description\":\"The architecture of a VoiceOS integration, in one page.\",\"dateModified\":\"2026-09-18T21:50:31.597Z\",\"isPartOf\":{\"@id\":\"https://docs.voiceos.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.voiceos.com/integrations/how-it-works#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.voiceos.com/integrations/how-it-works#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.voiceos.com/integrations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How it works\",\"item\":\"https://docs.voiceos.com/integrations/how-it-works\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.voiceos.com/integrations/how-it-works#article\",\"headline\":\"How it works\",\"name\":\"How it works\",\"description\":\"The architecture of a VoiceOS integration, in one page.\",\"url\":\"https://docs.voiceos.com/integrations/how-it-works\",\"mainEntityOfPage\":{\"@id\":\"https://docs.voiceos.com/integrations/how-it-works#webpage\"},\"dateModified\":\"2026-09-18T21:50:31.597Z\",\"publisher\":{\"@id\":\"https://docs.voiceos.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.voiceos.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VoiceOS API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VoiceOS API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/how-it-works.md","siteName":"VoiceOS API","nav":{"global":null,"tabs":[{"tab":"Custom Integrations","icon":"puzzle","groups":[{"group":"Get started","pages":[{"title":"Build for VoiceOS","description":"Add tools to the VoiceOS agent and answer with native cards in the Mac notch.","href":"/integrations"},{"title":"How it works","href":"/integrations/how-it-works"},{"title":"Quickstart","description":"Build your first integration in about three minutes — no code, right inside VoiceOS.","href":"/integrations/quickstart"},{"title":"Build with AI","href":"/integrations/build-with-ai"}]},{"group":"Building blocks","pages":[{"title":"Build with code","href":"/integrations/build-with-code"},{"title":"Defining tools","href":"/integrations/tools"},{"title":"Fast intents","href":"/integrations/intents"},{"title":"Result cards","href":"/integrations/result-cards"},{"title":"Confirmation cards","href":"/integrations/confirmations"},{"title":"Setup fields","href":"/integrations/setup-fields"},{"title":"Hooks","href":"/integrations/hooks"}]},{"group":"Custom widgets","pages":[{"title":"Custom widgets","href":"/integrations/widgets"},{"title":"Widget Kit","href":"/integrations/widget-kit"},{"title":"Widget confirmations","href":"/integrations/widget-confirmations"}]},{"group":"Ship it","pages":[{"title":"Branding","href":"/integrations/branding"},{"title":"Testing \u0026 debugging","href":"/integrations/testing"},{"title":"Install \u0026 share","href":"/integrations/distribution"}]},{"group":"Reference","pages":[{"title":"Manifest reference","href":"/integrations/reference/manifest"},{"title":"Glance block reference","href":"/integrations/reference/glance-blocks"},{"title":"UI block reference","href":"/integrations/reference/ui-blocks"},{"title":"Widget bridge reference","href":"/integrations/reference/widget-bridge"},{"title":"Limits \u0026 stability","href":"/integrations/reference/limits"}]}]}]},"basePath":"","title":"How it works - VoiceOS API","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BNZBpOKW.js","DynamicMarkdown-F4EfLno9.js","zoom-image-lightbox-CbF0jxOW.js","lightbox-handle-r17bVUz3.js"]}