Allow agent to continue past conversations with users
Millis AI’s Session Continuation feature enables agents to leverage previous interaction data, allowing users to continue conversations seamlessly from prior sessions. By passing a session_id, agents can access past context, enhancing engagement and providing a personalized experience for users.
Warning: Session Continuation is only available if Data Opt-Out is disabled.
When Data Opt-Out is enabled, Millis does not retain call history, so agent can’t retrieve data from previous sessions. Ensure that Data Opt-Out is disabled if you require session continuation for your users.
Follow-Up Customer Support Calls: A returning customer can pick up from a previous conversation by including the session_id, reducing the need to re-explain their issue.
Ongoing Campaigns: In multi-stage campaigns, session_id helps track each caller’s journey, creating a more cohesive experience.
Consultations: Advisors can use session continuation to reference past discussions, fostering a more personalized relationship.
User Identification: Upcoming features will allow sessions to continue based on user_id, phone, or similar identifiers, adding memory across sessions without requiring a session_id.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Millis AI","colors":{"primary":"#12B76A","light":"#07C983","dark":"#12B76A"},"favicon":"https://mintcdn.com/millisai/122nNs8f6law1c8D/favicon.svg?fit=max\u0026auto=format\u0026n=122nNs8f6law1c8D\u0026q=85\u0026s=151fa9cc1d37e1765604d7396c3d7be6","logo":{"light":"https://mintcdn.com/millisai/qGd_eniebzCYFD61/logo/light.svg?fit=max\u0026auto=format\u0026n=qGd_eniebzCYFD61\u0026q=85\u0026s=f68bd944b5d73169f2378dd2c8fe6b1a","dark":"https://mintcdn.com/millisai/qGd_eniebzCYFD61/logo/dark.svg?fit=max\u0026auto=format\u0026n=qGd_eniebzCYFD61\u0026q=85\u0026s=0a225b4537ff52b2f5ac254b194651c2"},"api":{"openapi":"https://api-west.millis.ai:8080/openapi.json"},"navbar":{"links":[{"label":"Support","href":"mailto:thach@millis.ai"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.millis.ai"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"millisai","hasAudioNarration":false,"actualSubdomain":"millisai","customDomains":["docs.millis.ai"],"gitSource":{"type":"github","owner":"millis-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6acf2b80a3835795edb58013","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":101},{"language":"default","tag":"Campaigns","count":23},{"language":"default","tag":"Documentation","count":19},{"language":"default","tag":"Phones","count":18},{"language":"default","tag":"Agents","count":17},{"language":"default","tag":"Knowledge Base","count":10},{"language":"default","tag":"Tutorials","count":10},{"language":"default","tag":"Call Management","count":8},{"language":"default","tag":"Core Concepts","count":8},{"language":"default","tag":"Integration Guides","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"core-concepts/session-continuation","slug":"/core-concepts/session-continuation","pageMetadata":{"title":"Session Continuation","description":"Allow agent to continue past conversations with users","icon":"memo","href":"/core-concepts/session-continuation","hidden":false},"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: \"Allow agent to continue past conversations with users\"\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={code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Millis AI’s Session Continuation feature enables agents to leverage previous interaction data, allowing users to continue conversations seamlessly from prior sessions. By passing a `,_jsx(_components.code,{children:`session_id`}),`, agents can access past context, enhancing engagement and providing a personalized experience for users.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`important-note-on-data-opt-out`,children:`Important Note on Data Opt-Out`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Warning`}),`: Session Continuation is only available if `,_jsx(_components.strong,{children:`Data Opt-Out is disabled`}),`.\nWhen Data Opt-Out is enabled, Millis does not retain call history, so agent can’t retrieve data from previous sessions. Ensure that Data Opt-Out is disabled if you require session continuation for your users.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`how-to-pass-session_id-for-session-continuation`,children:[`How to Pass `,_jsx(_components.code,{children:`session_id`}),` for Session Continuation`]}),`\n`,_jsxs(Heading,{level:`3`,id:`1-web-sdk-integration`,children:[`1. `,_jsx(_components.strong,{children:`Web SDK Integration`})]}),`\n`,_jsxs(_components.p,{children:[`To enable session continuation using the Millis Web SDK, use the `,_jsx(_components.code,{children:`msClient.start`}),` method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agent:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agent_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agentId`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` session_continuation:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` session_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cprevious session id>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Make sure you upgrade your web sdk to v1.0.15 to have this option.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`2-native-integration-via-websocket`,children:[`2. `,_jsx(_components.strong,{children:`Native Integration via WebSocket`})]}),`\n`,_jsxs(_components.p,{children:[`To continue a session via WebSocket, include the `,_jsx(_components.code,{children:`session_id`}),` in the `,_jsx(_components.code,{children:`initiate`}),` event:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"initiate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your_agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // or for dynamic configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cconfig>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"public_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your_public_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_metadata_in_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_continuation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cprevious session id>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`3-outbound-call-api-integration`,children:[`3. `,_jsx(_components.strong,{children:`Outbound Call API Integration`})]}),`\n`,_jsxs(_components.p,{children:[`For outbound calls, the `,_jsx(_components.code,{children:`session_id`}),` is included in the request body when calling the `,_jsx(_components.code,{children:`start_outbound_call`}),` API.`]}),`\n`,_jsx(Heading,{level:`4`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your_agent_phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"receiver_phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_metadata_in_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_continuation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cprevious session id>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`example-scenarios`,children:`Example Scenarios`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Follow-Up Customer Support Calls`}),`: A returning customer can pick up from a previous conversation by including the `,_jsx(_components.code,{children:`session_id`}),`, reducing the need to re-explain their issue.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ongoing Campaigns`}),`: In multi-stage campaigns, `,_jsx(_components.code,{children:`session_id`}),` helps track each caller’s journey, creating a more cohesive experience.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Consultations`}),`: Advisors can use session continuation to reference past discussions, fostering a more personalized relationship.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`future-enhancements`,children:`Future Enhancements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User Identification:`}),` Upcoming features will allow sessions to continue based on `,_jsx(_components.code,{children:`user_id`}),`, `,_jsx(_components.code,{children:`phone`}),`, or similar identifiers, adding memory across sessions without requiring a `,_jsx(_components.code,{children:`session_id`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Session Continuation","description":"Allow agent to continue past conversations with users","icon":"memo","href":"/core-concepts/session-continuation","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Important Note on Data Opt-Out","slug":"important-note-on-data-opt-out","depth":2,"children":[]},{"title":"How to Pass session_id for Session Continuation","slug":"how-to-pass-session_id-for-session-continuation","depth":2,"children":[{"title":"1. Web SDK Integration","slug":"1-web-sdk-integration","depth":3,"children":[]},{"title":"2. Native Integration via WebSocket","slug":"2-native-integration-via-websocket","depth":3,"children":[]},{"title":"3. Outbound Call API Integration","slug":"3-outbound-call-api-integration","depth":3,"children":[]},{"title":"Example Request","slug":"example-request","depth":4,"children":[]}]},{"title":"Example Scenarios","slug":"example-scenarios","depth":2,"children":[]},{"title":"Future Enhancements","slug":"future-enhancements","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"millisai","siteName":"Millis AI","title":"Session Continuation - Millis AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-12-03T18:10:12.771Z","originalFileLocation":"core-concepts/session-continuation.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=\"Allow agent to continue past conversations with users\">\u003cmeta data-mint-head name=\"application-name\" content=\"Millis AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_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/millisai/dAEdgiYf2fMJLxwp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Session Continuation - Millis AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Allow agent to continue past conversations with users\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Millis AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.millis.ai/core-concepts/session-continuation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://millisai.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Session+Continuation\u0026amp;description=Allow+agent+to+continue+past+conversations+with+users\u0026amp;theme=bd0974d1904a8427a6078bfd\u0026amp;signature=e80e4d5e06a52c626ac89bd38e94a9e97e4afa44fef92439dec40777579620d9\">\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=\"Session Continuation - Millis AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Allow agent to continue past conversations with users\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://millisai.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Session+Continuation\u0026amp;description=Allow+agent+to+continue+past+conversations+with+users\u0026amp;theme=bd0974d1904a8427a6078bfd\u0026amp;signature=e80e4d5e06a52c626ac89bd38e94a9e97e4afa44fef92439dec40777579620d9\">\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/millisai/dAEdgiYf2fMJLxwp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Millis AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#12B76A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.millis.ai/core-concepts/session-continuation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/core-concepts/session-continuation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.millis.ai/#organization\",\"name\":\"Millis AI\",\"url\":\"https://docs.millis.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/millisai/qGd_eniebzCYFD61/logo/light.svg?fit=max\u0026auto=format\u0026n=qGd_eniebzCYFD61\u0026q=85\u0026s=f68bd944b5d73169f2378dd2c8fe6b1a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.millis.ai#website\",\"name\":\"Millis AI\",\"url\":\"https://docs.millis.ai\",\"publisher\":{\"@id\":\"https://docs.millis.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.millis.ai/core-concepts/session-continuation#webpage\",\"url\":\"https://docs.millis.ai/core-concepts/session-continuation\",\"name\":\"Session Continuation\",\"description\":\"Allow agent to continue past conversations with users\",\"dateModified\":\"2025-12-03T18:10:12.771Z\",\"isPartOf\":{\"@id\":\"https://docs.millis.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.millis.ai/core-concepts/session-continuation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.millis.ai/core-concepts/session-continuation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Concepts\",\"item\":\"https://docs.millis.ai/core-concepts/agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Session Continuation\",\"item\":\"https://docs.millis.ai/core-concepts/session-continuation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.millis.ai/core-concepts/session-continuation#article\",\"headline\":\"Session Continuation\",\"name\":\"Session Continuation\",\"description\":\"Allow agent to continue past conversations with users\",\"url\":\"https://docs.millis.ai/core-concepts/session-continuation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.millis.ai/core-concepts/session-continuation#webpage\"},\"dateModified\":\"2025-12-03T18:10:12.771Z\",\"publisher\":{\"@id\":\"https://docs.millis.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.millis.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Millis AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Millis AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/core-concepts/session-continuation.md","siteName":"Millis AI","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Millis AI Pricing Overview","href":"/pricing"}]},{"group":"Core Concepts","pages":[{"title":"Agent","icon":"memo","href":"/core-concepts/agent"},{"title":"Agent Config","icon":"memo","href":"/core-concepts/agent-config"},{"title":"Functions for Agents","icon":"memo","href":"/core-concepts/functions"},{"title":"Webhooks","icon":"memo","href":"/core-concepts/webhooks"},{"title":"Attach metadata to call","icon":"memo","href":"/core-concepts/metadata"},{"title":"Dynamic Variables","description":"Dynamic Variables in Call Sessions","icon":"memo","href":"/core-concepts/variables"},{"title":"Session Continuation","icon":"memo","href":"/core-concepts/session-continuation"},{"title":"Running Voice Agents in Different Regions","icon":"memo","description":null,"href":"/core-concepts/regions"}]},{"group":"Integration Guides","pages":[{"title":"Web SDK","icon":"code","href":"/integration/web-sdk"},{"title":"Custom LLM","icon":"code","href":"/integration/custom-llm"},{"title":"Build Native Apps with Websocket","icon":"code","href":"/integration/native-apps-with-websocket"},{"title":"Embeddable Call Widget","icon":"code","href":"/integration/embeddable-call-widget"},{"title":"Inbound call","icon":"code","href":"/integration/inbound-call"},{"title":"Outbound call","icon":"code","href":"/integration/outbound-call"},{"title":"WebRTC","icon":"code","href":"/integration/webrtc"},{"title":"SIP Trunking","icon":"code","href":"/integration/sip"}]},{"group":"Telephony","pages":[{"title":"Import phone number","icon":"code","href":"/phone/import-phone-number"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/endpoint/user/get-user-info"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials/webhook-function-call-api"}]}]},"basePath":"","title":"Session Continuation - Millis AI","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}