Embed your Digital Twin in any Web application using the Web SDK.
One thing, three names. In these docs we call your assistant a Digital Twin. You will also see it called an Instance — on the Instance Settings panel, in the admin Instances list, and in your web address (your-instance.praxislxp.com) — and an Institution, which is what our software calls it behind the scenes (in API fields such as institution). All three mean exactly the same thing: one assistant, with its own knowledge, voice, members and settings. Which name you see depends on the screen you are on, not on what the thing is. An Account is different — it is the organisation that owns one or more Digital Twins.
The quickest way to embed your Digital Twin is the built-in Integration Wizard — a visual configurator that generates ready-to-use embed code for you. You pick where the twin will run, configure how the widget looks and behaves with a live preview, then copy or download the finished file. No hand-editing of SDK templates required.
The wizard replaces the old copy-and-edit-a-template workflow for most integrations. The manual Installation, Integration, and Configuration steps below are still fully supported for when you want complete control or to understand what the generated code does.
Open your Digital Twin’s Instance Settings and select the Integration tab. The wizard is preset to the current twin, so you go straight to choosing a target.
Admin Instances List → Integration
Admins can open the wizard from the Integration button above the admin Instances List and pick which Digital Twin to generate code for.
To open Instance Settings from a conversation, open the + options menu in the message bar, choose Settings, then the row with your Digital Twin’s picture and name (it reads Instance when the twin has no AI name), and select the Integration screen. Every screen of that panel is described in Instance Settings.
Open the + options menu in the message bar.
Select Settings from the options menu.
Choose your Digital Twin's row to open Instance Settings.
From the admin Instances list, select the twin to embed. (Skipped when you launch from Instance Settings — it uses the current twin.) The wizard warns you if the twin has no picture, since the widget button would otherwise show Pria’s default logo.
2
Pick a target
On the Integration tab, choose where the twin will run:
Target
Generates
Web page (JavaScript)
A single script for any website — loads on page ready, or wires up your own button.
React component
A drop-in <PriaWidget /> with mount/unmount lifecycle handled.
Python-served page (Flask)
A minimal Flask app serving a page with the widget pre-configured.
Canvas LMS theme
Custom JavaScript for your Canvas theme — every course page gets the twin.
Claude (LLM instructions)
A drop-in CLAUDE.md that teaches Claude to drive the twin through the REST API, and to search its knowledge over MCP with the MCP Server Secret.
Use the visual configurator (with a live preview) to set the button position, button size, and toggles such as full screen, open on load, and Start in Convo mode (voice). Show advanced options adds Allow pop-out, Headless (no UI) and custom container IDs. Headless loads the twin with no visible panel, for pages whose own code drives it. Don’t use it when the Digital Twin’s account asks people to accept a privacy policy: without the panel nobody can accept it, and the twin will not answer.
Configure the widget's position, size and behavior with a live preview.
4
Get the code
Preview the generated file, then copy it to your clipboard or download it. Paste it into your site — it works as-is once your site is allowed (next section). Above the code, the wizard shows the sites this Digital Twin accepts.
Preview the generated code, then copy or download it.
The web page, React, Flask and Canvas code only starts on a site listed in the Digital Twin’s Public Authorized URLs. On any other site, Pria refuses to open, and the browser console shows Pria SDK: Failed to sign launch parameters Unauthorized origin.
Before you paste the code, add the address of each site that will run it:
A website or app: its address, such as https://www.example.edu. An entry also covers the site’s subdomains.
Canvas: your Canvas address, such as https://school.instructure.com.
The Flask app on your own computer:http://localhost as well, while you try it.
The list is in the Digital Twin’s full editor, under Integrations — see Public Authorized URLs. The generated file repeats this requirement at the top, and the wizard warns you when the list is empty. The avatar widget has its own rule on its page, and the Claude target calls the API directly, so it needs no entry.
The wizard offers a Visitor mode toggle that decides how users are identified:
On (default): the generated code gives each visitor a reusable guest identity (kept in a cookie) — no sign-in required. Dormant guests are cleaned up automatically, except on a Digital Twin that pools credits, where they accumulate (the wizard warns you). Ideal for public, anonymous embeds.
Off: the generated code leaves a clearly marked gap where you plug in your own sign-in, so you can pass real user details (email, name, course, etc.) from your application.
Prefer to hand-code your integration, or want to understand exactly what the wizard produces? Keep reading — the sections below walk through installing the SDK and configuring it manually.
Further configure your integration (digital twin, user identity, display options)
Looking for a voice avatar instead of the full chat UI? The Avatar Embed Widget puts your Digital Twin’s talking avatar on any website with a single script tag — visitors converse with it anonymously, no user identity required.
Installation
Download the Web SDK and install the Javascript file in your website.
Integration
Choose between limited or standard integration option to integrate into your website.
Configuration
Customize the setup to specify which Digital Twin to connect to, User Identity and various display options.
Your Digital Twin’s Public ID (shown with a copy button in Instance Settings → General)
HTTPS enabled on your website (required for secure SDK communication)
Your site’s address added to Public Authorized URLs in the Digital Twin’s settings — every embed needs it, not only public twins (see Allow your site first)
Estimated setup time: 10-15 minutes for Limited Integration, 30+ minutes for Standard Integration with custom logic.
Public Digital Twin Security ConsiderationsWhen making a Digital Twin publicly accessible (without user authentication), you must take the following precautions:
Credit Management (in the Digital Twin’s editor)
Turn off Pool Credits, so each guest spends their own credits instead of the twin’s shared balance
Set Credits Awarded to New Users to a small amount (e.g., 50 credits)
Turn on Guest UI (Minimum screen) for anonymous access
Turn off Use Location to prevent unwanted pop-ups
Access Control
Add your domain (e.g., https://your-domain.com) to the list of Public Authorized URLs
Only domains in this list will be able to embed and access the Digital Twin
Tool Restrictions
In Instance Settings → Tools, keep only the tools guests need (the Minimal preset is a good start) and turn off tools that act on the outside world, such as call_rest, send_email, call_canvas and save_to_file
This reduces token usage and prevents malicious use of system capabilities
Prompt Engineering
Carefully craft your system prompt to keep conversations on-topic
Include guardrails to prevent users from repurposing the Digital Twin for unrelated queries
Public-facing Digital Twins are inherently more vulnerable to abuse. Users may attempt to exploit the credit system or use the AI for purposes beyond its intended scope.
Choose the integration approach that matches your JavaScript skill level and requirements — Limited embeds the UI with minimal code, the Starter Kit ships two ready-to-use examples, and Standard gives you full programmatic control.
Limited
Starter Kit
Standard
Embed the Digital Twin UI in your website header with:
<script src="pria-sdk-web.js"></script>
The pria-sdk-web.js file is the SDK you downloaded. Optionally, place this in a directory, e.g., /assets/js/pria-sdk-web.js.
This example demonstrates using the PriaIntegration class from pria-sdk-web.js for a streamlined integration:
// Load SDK with PriaIntegration helper classPriaIntegration.loadSdk(baseUrl, displayOptions, instanceConfig, userConfig);// Wait for SDK to be readyconst timer = setInterval(() => { if (window.pria && window.pria.isReady && window.pria.isReady()) { clearInterval(timer); // SDK is ready - user can interact with the button }}, 100);// Clean terminationPriaIntegration.destroySdk();
Best for: Quick integrations where you want the Digital Twin button to appear and let users click to start conversations naturally.
This example loads the remote pria-sdk.js directly — the core SDK that pria-sdk-web.js wraps and loads for you — giving you full control over events and conversation flow:
// Load SDK script directlyconst script = document.createElement('script');script.src = `${BASE_URL}/pria-sdk.js`;script.onload = () => { window.priasdk(BASE_URL, userConfig, PUBLIC_ID, pictureUrl, displayOptions); waitForReady(setupPria);};// Subscribe to events for granular controlwindow.pria.subscribe((response) => { const command = response?.response?.command; if (response.type === 'pria-response' && command === 'convo.start') { // Conversation started - show the UI window.pria.setVisible(true); }});// Programmatically start conversationwindow.pria.send({ command: 'convo.start' });
Best for: Advanced integrations requiring:
Custom loading indicators while connecting
Automatic conversation start on button click
Error handling with retry logic
Visibility control based on connection state
The SDK Sample hides the Digital Twin UI until the conversation is confirmed started, providing a smoother user experience with loading feedback.
For full control, use JavaScript to configure and load the SDK.Configuration object example:
The displayOptions object controls the display and behavior of your digital twin on screen.
let displayOptions = { fullScreen: false, // Expand in full screen mode openOnLoad: false, // Open Pria immediately when loaded buttonWidth: '80px', // Size of the Pria logo button buttonPosition: 'fixed', // Button position type (fixed, relative, sticky) buttonPositionRight: '20px', // Distance from right edge buttonPositionBottom: '20px', // Distance from bottom edge buttonNoBounce: true, // Disable button bounce animation priaContainerId: '', // Container ID for Pria window (default: BODY) buttonContainerId: '', // Container ID for button (default: BODY) allowPop: false, // Allow popping out of containing iframe noUI: false, // Disable UI for headless operation convoMode: false, // Auto-start convo (voice) mode when ready assistantId: '', // Pre-select an assistant for TEXT mode at load transcripts: false, // Receive live voice transcripts (see the JavaScript SDK page) onAuthRequired: null // Called when Pria asks the person to confirm it's them (see below)}
Set noUI: true to use Pria programmatically without the visual interface
Adjust buttonPositionRight with CSS for positioning, e.g., calc(50% - 40px) for center alignment.
The convoMode display option lets you auto-start real-time voice (speech-to-speech) mode as soon as the Digital Twin determines that voice is available for the current user. This is useful when you want your application to launch directly into a voice experience without requiring the user to navigate through the text interface first.How it works: After the user authenticates, the SDK receives a convo.ready event from the Digital Twin indicating whether real-time voice is authorized. When convoMode is enabled, the SDK automatically sends a convo.start command and opens the UI panel.Values:
Value
Behavior
false (default)
No auto-start. Voice mode must be started manually.
true
Auto-start voice mode with the default assistant in a new conversation.
{ conversationId, conversationName, assistantId }
Auto-start voice mode targeting a specific conversation and/or assistant. All fields are optional.
Simple auto-start:
let displayOptions = { convoMode: true, fullScreen: true, openOnLoad: true}
Targeted auto-start with a specific assistant and conversation:
let displayOptions = { convoMode: { conversationId: 123, // maps to course_id conversationName: 'Customer Onboarding', // maps to course_name assistantId: '6bec24be-4e86-4071-b90f-d588' // target assistant _id }, fullScreen: true, openOnLoad: true}
convoMode requires that real-time voice (convo) is enabled for the user on this Digital Twin. If voice is not authorized, the flag is silently ignored and the text interface loads normally.
Open the embedded Digital Twin in normal text mode with a specific assistant already selected — no opening message is injected, and the user’s first typed message is routed to that assistant.
PriaIntegration.loadSdk(BASE_URL, { assistantId: 'YOUR_ASSISTANT_ID', // the assistant's _id (see assistants.list) openOnLoad: true}, instanceConfig, userConfig);
How it works: once the session is ready, the SDK sends a single assistant.select command. The chat shows the assistant as the pending choice; the conversation itself is only created when the user sends their first message, which carries the selection. After that first exchange the conversation keeps the assistant automatically.
Works for text-only Digital Twins — voice does not need to be enabled.
If both assistantId and convoMode are supplied, convoMode (voice) takes precedence and the text-mode pre-select is skipped — including when voice turns out not to be authorized on that Digital Twin, in which case neither applies and the twin opens normally. Supply only assistantId if you want the pre-select to be the fallback.
An unknown or out-of-scope assistantId is rejected with an error response and the twin opens on its normal default assistant.
The pre-select fires once per session; if the user manually switches assistants afterwards, their choice is never overridden.
Set transcripts: true to receive the conversation’s live transcript (convo.transcript messages) on your page while a voice call runs. The Digital Twin must allow it (Share voice transcripts with the embedding page in its settings); otherwise the option is silently ignored. See Live voice transcripts.
When an admin account opens Pria from your page (for example a Canvas course page), Pria may first show Confirm it’s you inside its panel and ask for a 6-digit code. Until the person enters it, Pria refuses commands. The SDK calls your onAuthRequired function once, so you can bring the panel into view:
If you hide the launcher (noUI, a hidden button container, or setVisible(false)), you must handle this — call window.pria.setVisible(true) and then display(true), or tell the person where to confirm — or nobody can reach the code screen. See Confirm it’s you for how commands behave meanwhile.
The instanceConfig object configures which Digital Twin to use along with the picture rendered in the start button.
let instanceConfig = { publicId: '41407647-248c-4f0e-a317-71fc151ba8fb', // Public ID identifying your Digital Twin pictureUrl: 'https://cdn.domain.com/pics/dt_1.png', // Picture to use for the on-screen icon of your Digital Twin};
The publicId value supports three modalities:
Value
Behavior
A specific Public ID
All connections route to that Digital Twin, regardless of the page URL.
'' (empty string)
Pick on first use — the first administrator (or teacher) to open the widget on a given page is asked to choose an existing Digital Twin or create one. Pria remembers which twin belongs to that web address, and every later visitor to it reaches the same twin.
undefined
The Digital Twin does not start.
Leave pictureUrl empty for Pria’s default picture, or point it to a CORS-accessible image on a CDN.
Load these values securely and asynchronously—never expose sensitive data in your HTML.
This example is provided AS IS to demonstrate how you can cleanly integrate a Digital Twin in your Web Application. It is extracted from the playground example code.
/** * Javascript Class integration example * Demonstrates modern patterns for Pria SDK integration */class PriaTestHarness { constructor() { this.pria = null; this.waitForPriaTimer = null; this.isConnected = false; this.conversationMode = 'existing'; // 'existing' or 'new' this.assistantsCache = []; // Cache assistants for lookup // Configuration this.config = { displayOptions: { buttonPositionRight: 'calc(50% - 40px)', buttonPositionBottom: '80px' }, instanceConfig: { publicId: 'f831501f-b645-481a-9cbb-331509aaf8c1', pictureUrl: 'https://cdn.domain.com/pics/dt_1.png' }, userConfig: { email: 'john@doe.com', profilename: 'John Doe', usertype: 1, userid: 110, roleid: 123, rolename: "Course ABC", partnerid: 1, partnername: "ABC Global Inc." }, localhost: true }; this.init(); } /** * Initialize the application */ async init() { try { await this.loadPriaSDK(); } catch (error) { console.error('Failed to initialize application:', error); } } /** * Load the Pria SDK */ loadPriaSDK() { return new Promise((resolve, reject) => { const script = document.createElement('script'); script.src = 'pria-sdk-web.js'; script.async = true; script.onload = () => { console.log('Web SDK Script loaded'); const url = 'https://pria.praxislxp.com'; PriaIntegration.loadSdk( url, this.config.displayOptions, this.config.instanceConfig, this.config.userConfig ); this.waitForPriaTimer = setInterval(() => this.waitForPria(), 1000); resolve(); }; script.onerror = (error) => { console.error('Failed to load Web SDK:', error); reject(new Error('Web SDK loading failed')); }; document.body.appendChild(script); }); } /** * Wait for Pria to be available and set up subscriptions */ waitForPria() { // Use isReady() to check if Pria is fully initialized if (!window.pria?.isReady()) { console.log("Waiting for Pria to load..."); return; } clearInterval(this.waitForPriaTimer); this.pria = window.pria; this.isConnected = true; // Subscribe to Pria responses this.pria.subscribe(this.handlePriaResponse.bind(this)); // Load assistants and conversations on connection this.loadAssistants(); this.loadConversations(); // Clean up on page unload window.addEventListener('beforeunload', () => { this.pria.unsubscribe(this.handlePriaResponse); this.pria.destroy(); // Clean up Pria resources }); } /** * Handle responses from Pria */ handlePriaResponse(response) { const command = response?.response?.command; const content = response?.response?.content; if (response.type === 'pria-response') { console.log("Processing command:", command); // Handle convo.start success - show UI if (command === 'convo.start') { this.showPria(); } else if (command === 'assistants.list' && content) { this.assistantsCache = content; console.log("Assistants loaded:", content.length); } else if (command === 'conversations.list' && content) { console.log("Conversations loaded:", content.length); } } else if (response.type === 'pria-error') { console.error("Pria error:", content); } } /** * Start a conversation */ startConversation(assistantId, conversationId, conversationName) { if (!this.isConnected) return; let request = { command: 'convo.start' }; if (assistantId) { request.assistantId = assistantId; } if (conversationId && conversationName) { request.selectedCourse = { course_id: conversationId, course_name: conversationName }; } this.pria.send(request); } /** * Load assistants list */ loadAssistants() { if (!this.isConnected) return; this.pria.send({ command: 'assistants.list' }); } /** * Load conversations list */ loadConversations() { if (!this.isConnected) return; this.pria.send({ command: 'conversations.list' }); } /** * Toggle Pria visibility (show/hide entirely) */ togglePriaVisibility(visible) { if (!this.isConnected) return; this.pria.setVisible(visible); } /** * Toggle Pria panel display (expand/collapse) */ togglePriaDisplay() { if (!this.isConnected) return; // Use SDK's isDisplayed() to check current state const isCurrentlyDisplayed = this.pria.isDisplayed(); this.pria.display(!isCurrentlyDisplayed); } /** * Show Pria interface */ showPria() { if (!this.pria) return; // Check if UI is already shown using SDK's isDisplayed() if (!this.pria.isDisplayed()) { this.pria.display(true); } }}// Initialize the application when DOM is loadeddocument.addEventListener('DOMContentLoaded', () => { new PriaTestHarness();});
When you need to remove Pria or reload it with new configuration:
// Destroy SDK completely (removes all UI, event listeners, and references)PriaIntegration.destroySdk();// Reload with new or existing configurationPriaIntegration.reloadSdk( 'https://pria.praxislxp.com', displayOptions, instanceConfig, userConfig);
After calling destroy() or destroySdk(), all existing references to pria become invalid. The SDK must be fully reloaded before use.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"praxis-ai","description":"Pria is an AI-powered digital twin that transforms human expertise into scalable, intelligent assistants for organizations across industries. Originally designed for education, Pria has evolved into a comprehensive middleware solution that captures, preserves, and amplifies institutional knowledge through personalized AI assistants.Pria seamlessly integrates into existing workflows - from learning management systems like Canvas and Moodle to enterprise platforms, websites, and business applications - providing 24/7 expert guidance for complex decision-making, knowledge transfer, and operational excellence. Powered by advanced orchestration technology, Pria leverages multiple Large Language Models (Claude, GPT-5, Gemini, Grok) and natural language processing to create human-like digital twins that understand context, maintain conversation continuity, and execute sophisticated agentic workflows through custom assistant personas.","colors":{"primary":"#5011FD","light":"#9B7BFF","dark":"#5011FD"},"logo":{"light":"https://mintcdn.com/praxisai/6nkK9KsHziJK7eUJ/images/logo/light.svg?fit=max\u0026auto=format\u0026n=6nkK9KsHziJK7eUJ\u0026q=85\u0026s=5d438417be87dbcd1a5749d3173410fc","dark":"https://mintcdn.com/praxisai/6nkK9KsHziJK7eUJ/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=6nkK9KsHziJK7eUJ\u0026q=85\u0026s=86b4975deee6dc59be3442353e2c9e72"},"favicon":"https://mintcdn.com/praxisai/V04kWbMpKOdRS_h5/images/favicon.svg?fit=max\u0026auto=format\u0026n=V04kWbMpKOdRS_h5\u0026q=85\u0026s=0e8c7ce7a5d6b58089449c3d8e687b28","navbar":{"links":[{"href":"https://docs.praxis-ai.com/mdx/contact-support","label":"Support"}],"primary":{"type":"button","label":"Request a Demo","href":"https://praxis-ai.com/contact/"}},"footer":{"socials":{"bluesky":"https://bsky.app/profile/praxis-ai.bsky.social","instagram":"https://www.instagram.com/praxis_ai","x":"https://x.com/AiPraxis","github":"https://gitlab.com/praxis-ai","linkedin":"https://linkedin.com/company/praxis-ai"}},"banner":{"content":"Important update for Canvas users: more security for Canvas login — [read what changes](/mdx/user-guide/lms/canvas-login-security)","dismissible":true},"errors":{"404":{"redirect":true,"title":"Page Not Found","description":"Not Found. Redirecting you to the [Welcome page](/mdx/introduction/welcome)..."}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Innovations Hub","icon":"newspaper","href":"https://praxis-ai.com/innovation-hub/"},{"anchor":"Community Gitlab","icon":"gitlab","href":"https://gitlab.com/praxis-ai/pria-client-sdk"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"praxisai","hasAudioNarration":false,"actualSubdomain":"praxisai","customDomains":["docs.praxis-ai.com"],"gitSource":{"type":"gitlab","owner":"praxis-ai","repo":"pria-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":71806583,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae3710a7e0fbb05b22f0a71","collectionId":"2463bd00-b7ea-4028-8830-516b9d2cb6a5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae3710a7e0fbb05b22f0a71"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae3710a7e0fbb05b22f0a71","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Developer","count":478},{"language":"default","tag":"Runtime API","count":300},{"language":"default","tag":"Administrator API","count":147},{"language":"default","tag":"Admin","count":52},{"language":"default","tag":"Power User","count":33},{"language":"default","tag":"User","count":31},{"language":"default","tag":"Connectors","count":26},{"language":"default","tag":"Presentations","count":26},{"language":"default","tag":"Agents","count":25},{"language":"default","tag":"User Profile","count":24}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"mdx/integrations/web/introduction","slug":"/mdx/integrations/web/introduction","pageMetadata":{"title":"Embed your Digital Twin","description":"Embed your Digital Twin in any Web application using the Web SDK.","icon":"puzzle-piece","href":"/mdx/integrations/web/introduction"},"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: \"Embed your Digital Twin in any Web application using the Web SDK.\"\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`,hr:`hr`,input:`input`,li:`li`,ol:`ol`,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,Info,Note,OptimizedImage,Step,Steps,Tab,Table,Tabs,Tip,Warning}=_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(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`One thing, three names.`}),` In these docs we call your assistant a `,_jsx(_components.strong,{children:`Digital Twin`}),`. You will also see it called an `,_jsx(_components.strong,{children:`Instance`}),` — on the `,_jsx(_components.strong,{children:`Instance Settings`}),` panel, in the admin `,_jsx(_components.strong,{children:`Instances`}),` list, and in your web address (`,_jsx(_components.code,{children:`your-instance.praxislxp.com`}),`) — and an `,_jsx(_components.strong,{children:`Institution`}),`, which is what our software calls it behind the scenes (in API fields such as `,_jsx(_components.code,{children:`institution`}),`). All three mean exactly the same thing: one assistant, with its own knowledge, voice, members and settings. Which name you see depends on the screen you are on, not on what the thing is. An `,_jsx(_components.strong,{children:`Account`}),` is different — it is the organisation that owns one or more Digital Twins.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`fastest-path-the-integration-wizard`,children:`Fastest path: the Integration Wizard`}),`\n`,_jsxs(_components.p,{children:[`The quickest way to embed your Digital Twin is the built-in `,_jsx(_components.strong,{children:`Integration Wizard`}),` — a visual configurator that generates ready-to-use embed code for you. You pick where the twin will run, configure how the widget looks and behaves with a live preview, then copy or download the finished file. No hand-editing of SDK templates required.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The wizard replaces the old copy-and-edit-a-template workflow for most integrations. The manual `,_jsx(_components.a,{href:`#installation`,children:`Installation`}),`, `,_jsx(_components.a,{href:`#integration`,children:`Integration`}),`, and `,_jsx(_components.a,{href:`#configuration-parameters`,children:`Configuration`}),` steps below are still fully supported for when you want complete control or to understand what the generated code does.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`where-to-find-it`,children:`Where to find it`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Instance Settings → Integration`,icon:`user-gear`,children:_jsxs(_components.p,{children:[`Open your Digital Twin’s `,_jsx(_components.strong,{children:`Instance Settings`}),` and select the `,_jsx(_components.strong,{children:`Integration`}),` tab. The wizard is preset to the current twin, so you go straight to choosing a target.`]})}),_jsx(Card,{title:`Admin Instances List → Integration`,icon:`shield-halved`,children:_jsxs(_components.p,{children:[`Admins can open the wizard from the `,_jsx(_components.strong,{children:`Integration`}),` button above the admin `,_jsx(_components.strong,{children:`Instances List`}),` and pick which Digital Twin to generate code for.`]})})]}),`\n`,_jsxs(_components.p,{children:[`To open Instance Settings from a conversation, open the `,_jsx(_components.strong,{children:`+`}),` options menu in the message bar, choose `,_jsx(_components.strong,{children:`Settings`}),`, then the row with your Digital Twin’s picture and name (it reads `,_jsx(_components.strong,{children:`Instance`}),` when the twin has no AI name), and select the `,_jsx(_components.strong,{children:`Integration`}),` screen. Every screen of that panel is described in `,_jsx(_components.a,{href:`/mdx/user-guide/profile-settings/instance-settings#integration`,children:`Instance Settings`}),`.`]}),`\n`,_jsx(Frame,{caption:`Open the + options menu in the message bar.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=7306812f075082f06c9270c61b45e6b6`,alt:`Digital Twin home screen with the plus options button in the message bar highlighted.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`992`,height:`992`,\"data-path\":`images/integrations/web/wizard-open-options.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=954b9b70cddd657c640516c847edab1f 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=2d07e65d391626fdc34c56e831779303 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=2a691b63d732354cf42d8b3fdeb61b38 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=6ff35c9314be04dd0633efb6be6965a3 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=4ee1b84f1f7d3cf90a91f4b3554d2aa9 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-options.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=1923db89ff219182c98289cb4c5b3920 2500w`})}),`\n`,_jsx(Frame,{caption:`Select Settings from the options menu.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=6f48d99ada73254d0580a00076f24a17`,alt:`Options menu open with the Settings item highlighted.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`995`,height:`995`,\"data-path\":`images/integrations/web/wizard-open-settings.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=df148533d16df6cd249fd10dc9a3c00d 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=228e57a072d990f5529f869e75659528 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=a663656edb86e133dda025828cf939ea 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=3623f0b0be00dcd28e1d474204dc920f 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=840f774900fd1f444e6bc74d97c1446b 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-open-settings.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=fccf6dfa6466cc7306c89ef43275f618 2500w`})}),`\n`,_jsx(Frame,{caption:`Choose your Digital Twin's row to open Instance Settings.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=b7a17e7235d61b4f830806ad53f3fabc`,alt:`Settings submenu with the Instance item highlighted.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`1003`,height:`1003`,\"data-path\":`images/integrations/web/wizard-settings-instance.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=fd2f1d665e8311ef22107fe1d59fb00c 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=74f4a69b7ac5498e359fb5168b4b71eb 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=9b79bd116f90197b933fd0fd226d0e47 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=a60486294e2e15a34cbb7a14eacd4251 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=b52d665bf8ba990720abd30954b77e3c 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-settings-instance.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=3186fdeec8dcb838fd512a82f135ac5b 2500w`})}),`\n`,_jsx(Heading,{level:`3`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Choose your Digital Twin`,children:_jsx(_components.p,{children:`From the admin Instances list, select the twin to embed. (Skipped when you launch from Instance Settings — it uses the current twin.) The wizard warns you if the twin has no picture, since the widget button would otherwise show Pria’s default logo.`})}),_jsxs(Step,{title:`Pick a target`,children:[_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Integration`}),` tab, choose where the twin will run:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Target`}),_jsx(_components.th,{children:`Generates`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Web page (JavaScript)`})}),_jsx(_components.td,{children:`A single script for any website — loads on page ready, or wires up your own button.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`React component`})}),_jsxs(_components.td,{children:[`A drop-in `,_jsx(_components.code,{children:`\u003cPriaWidget />`}),` with mount/unmount lifecycle handled.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Python-served page (Flask)`})}),_jsx(_components.td,{children:`A minimal Flask app serving a page with the widget pre-configured.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Canvas LMS theme`})}),_jsx(_components.td,{children:`Custom JavaScript for your Canvas theme — every course page gets the twin.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Claude (LLM instructions)`})}),_jsxs(_components.td,{children:[`A drop-in `,_jsx(_components.code,{children:`CLAUDE.md`}),` that teaches Claude to drive the twin through the REST API, and to search its knowledge over MCP with the `,_jsx(_components.strong,{children:`MCP Server Secret`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Avatar widget`})}),_jsxs(_components.td,{children:[`The two-tag `,_jsx(_components.a,{href:`/mdx/integrations/web/avatar-widget`,children:`talking-avatar embed`}),` for any website.`]})]})]})]}),_jsx(Frame,{caption:`The Integration tab with the target picker.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=d5a05b5c4c65e927363978dd4b1cc72f`,alt:`Instance Settings Integration tab showing the target picker with Web page, React, Flask, Canvas, Claude and Avatar options.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`769`,height:`769`,\"data-path\":`images/integrations/web/wizard-integration-tab.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=b60264e54deb0972378f3ec589fd9f6b 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=7c82ab47297d81f2f355c6c189725b99 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=6519371b235f2bcce28bbb51e8999e71 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=67c5c6703bc07ddf4bf44f6a4df659d0 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=a6c559acbe0ae48399f67b0f6ec280b4 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-integration-tab.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=a80f36e40d81e1df7586dd302673a5f2 2500w`})})]}),_jsxs(Step,{title:`Configure appearance \u0026 behavior`,children:[_jsxs(_components.p,{children:[`Use the visual configurator (with a live preview) to set the button position, button size, and toggles such as `,_jsx(_components.strong,{children:`full screen`}),`, `,_jsx(_components.strong,{children:`open on load`}),`, and `,_jsx(_components.strong,{children:`Start in Convo mode`}),` (voice). `,_jsx(_components.strong,{children:`Show advanced options`}),` adds `,_jsx(_components.strong,{children:`Allow pop-out`}),`, `,_jsx(_components.strong,{children:`Headless (no UI)`}),` and custom container IDs. Headless loads the twin with no visible panel, for pages whose own code drives it. Don’t use it when the Digital Twin’s account asks people to accept a privacy policy: without the panel nobody can accept it, and the twin will not answer.`]}),_jsx(Frame,{caption:`Configure the widget's position, size and behavior with a live preview.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=7c4251981dc22897116d0013f5fbb24f`,alt:`Integration wizard appearance step showing position presets, button size, and behavior toggles.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`1040`,height:`1040`,\"data-path\":`images/integrations/web/wizard-appearance.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=567f767bb907316b407f761da3237e8a 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=ef4b863c4b71913b2af72e0f2f2ea164 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=5098d698279aae040a841af7c2772ba5 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=ea8f14efbe4d9de776240b6599fa9fb7 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=06621b880083d18747b975de43321b00 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-appearance.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=0fe337cb21d9243a5b0e9024f26381c0 2500w`})})]}),_jsxs(Step,{title:`Get the code`,children:[_jsxs(_components.p,{children:[`Preview the generated file, then `,_jsx(_components.strong,{children:`copy it to your clipboard`}),` or `,_jsx(_components.strong,{children:`download it`}),`. Paste it into your site — it works as-is once your site is allowed (next section). Above the code, the wizard shows the sites this Digital Twin accepts.`]}),_jsx(Frame,{caption:`Preview the generated code, then copy or download it.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=0bac368301d8a96022de33f5488e7a34`,alt:`Integration wizard code step showing the generated snippet with copy and save controls.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`977`,height:`977`,\"data-path\":`images/integrations/web/wizard-get-code.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=280\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=4750d4018f0592f9c8739951a95faa0b 280w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=560\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=bc1b075257ea3c6a6679f571d3497f64 560w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=840\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=da6c6e521fc7359bed7c1ba2ca5737f4 840w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=a927386d4ed8bf9eff933c90fbc16213 1100w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=c3258e222f752eaecf1fd198fbd7b01a 1650w, https://mintcdn.com/praxisai/GPVWVmtUUrjWVH4C/images/integrations/web/wizard-get-code.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=GPVWVmtUUrjWVH4C\u0026q=85\u0026s=bd069c416985396c0c8b490c2a98dd48 2500w`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`allow-your-site-first`,children:`Allow your site first`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The web page, React, Flask and Canvas code only starts on a site listed in the Digital Twin’s `,_jsx(_components.strong,{children:`Public Authorized URLs`}),`. On any other site, Pria refuses to open, and the browser console shows `,_jsx(_components.code,{children:`Pria SDK: Failed to sign launch parameters Unauthorized origin`}),`.`]})}),`\n`,_jsx(_components.p,{children:`Before you paste the code, add the address of each site that will run it:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A website or app:`}),` its address, such as `,_jsx(_components.code,{children:`https://www.example.edu`}),`. An entry also covers the site’s subdomains.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Canvas:`}),` your Canvas address, such as `,_jsx(_components.code,{children:`https://school.instructure.com`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The Flask app on your own computer:`}),` `,_jsx(_components.code,{children:`http://localhost`}),` as well, while you try it.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The list is in the Digital Twin’s full editor, under `,_jsx(_components.strong,{children:`Integrations`}),` — see `,_jsx(_components.a,{href:`/mdx/admin-guide/branding-and-domains#public-authorized-urls`,children:`Public Authorized URLs`}),`. The generated file repeats this requirement at the top, and the wizard warns you when the list is empty. The `,_jsx(_components.a,{href:`/mdx/integrations/web/avatar-widget`,children:`avatar widget`}),` has its own rule on its page, and the Claude target calls the API directly, so it needs no entry.`]}),`\n`,_jsx(Heading,{level:`3`,id:`visitor-identity`,children:`Visitor identity`}),`\n`,_jsxs(_components.p,{children:[`The wizard offers a `,_jsx(_components.strong,{children:`Visitor mode`}),` toggle that decides how users are identified:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`On (default):`}),` the generated code gives each visitor a reusable guest identity (kept in a cookie) — no sign-in required. Dormant guests are cleaned up automatically, except on a Digital Twin that pools credits, where they accumulate (the wizard warns you). Ideal for public, anonymous embeds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Off:`}),` the generated code leaves a clearly marked gap where you plug in your own sign-in, so you can pass real user details (email, name, course, etc.) from your application.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Prefer to hand-code your integration, or want to understand exactly what the wizard produces? Keep reading — the sections below walk through installing the SDK and configuring it manually.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`integration-process`,children:`Integration Process`}),`\n`,_jsx(_components.p,{children:`The integration process is straightforward:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Download and install the Web SDK,`}),`\n`,_jsx(_components.li,{children:`Choose between Limited or Standard Integration`}),`\n`,_jsx(_components.li,{children:`Further configure your integration (digital twin, user identity, display options)`}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Looking for a `,_jsx(_components.strong,{children:`voice avatar`}),` instead of the full chat UI? The `,_jsx(_components.a,{href:`/mdx/integrations/web/avatar-widget`,children:`Avatar Embed Widget`}),` puts your Digital Twin’s talking avatar on any website with a single script tag — visitors converse with it anonymously, no user identity required.`]})}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Installation`,icon:`download`,href:`#installation`,children:_jsx(_components.p,{children:`Download the Web SDK and install the Javascript file in your website.`})}),_jsx(Card,{title:`Integration`,icon:`code`,href:`#integration`,children:_jsx(_components.p,{children:`Choose between limited or standard integration option to integrate into your website.`})}),_jsx(Card,{title:`Configuration`,icon:`users-gear`,href:`#configuration-parameters`,children:_jsx(_components.p,{children:`Customize the setup to specify which Digital Twin to connect to, User Identity and various display options.`})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Before you begin, ensure you have:`}),`\n`,_jsxs(_components.ul,{className:`contains-task-list`,children:[`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.strong,{children:`Web development access`}),` to your target website or application`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.strong,{children:`A Praxis AI Digital Twin`}),` created at `,_jsx(_components.a,{href:`https://pria.praxislxp.com`,children:`pria.praxislxp.com`})]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.strong,{children:`Your Digital Twin’s Public ID`}),` (shown with a copy button in `,_jsx(_components.strong,{children:`Instance Settings → General`}),`)`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.strong,{children:`HTTPS enabled`}),` on your website (required for secure SDK communication)`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.strong,{children:`Your site’s address added to Public Authorized URLs`}),` in the Digital Twin’s settings — every embed needs it, not only public twins (see `,_jsx(_components.a,{href:`#allow-your-site-first`,children:`Allow your site first`}),`)`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Estimated setup time:`}),` 10-15 minutes for Limited Integration, 30+ minutes for Standard Integration with custom logic.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsxs(_components.p,{children:[`Download the Pria Web SDK file and save it locally on your website under the name `,_jsx(_components.code,{children:`pria-sdk-web.js`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://pria.praxislxp.com/pria-sdk-web.js`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This SDK provides all routines for secure initialization and integration with your Digital Twin in a web application.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For Canvas LMS integration, refer to `,_jsx(_components.a,{href:`/mdx/integrations/canvas/theme`,children:`Custom Theme Canvas Install Guide`})]})}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Public Digital Twin Security Considerations`})}),_jsx(_components.p,{children:`When making a Digital Twin publicly accessible (without user authentication), you must take the following precautions:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Credit Management`}),` (in the Digital Twin’s editor)`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Turn off `,_jsx(_components.strong,{children:`Pool Credits`}),`, so each guest spends their own credits instead of the twin’s shared balance`]}),`\n`,_jsxs(_components.li,{children:[`Set `,_jsx(_components.strong,{children:`Credits Awarded to New Users`}),` to a small amount (e.g., 50 credits)`]}),`\n`,_jsxs(_components.li,{children:[`Turn on `,_jsx(_components.strong,{children:`Guest UI (Minimum screen)`}),` for anonymous access`]}),`\n`,_jsxs(_components.li,{children:[`Turn off `,_jsx(_components.strong,{children:`Use Location`}),` to prevent unwanted pop-ups`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Access Control`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Add your domain (e.g., `,_jsx(_components.code,{children:`https://your-domain.com`}),`) to the list of `,_jsx(_components.strong,{children:`Public Authorized URLs`})]}),`\n`,_jsx(_components.li,{children:`Only domains in this list will be able to embed and access the Digital Twin`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Tool Restrictions`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.strong,{children:`Instance Settings → Tools`}),`, keep only the tools guests need (the `,_jsx(_components.strong,{children:`Minimal`}),` preset is a good start) and turn off tools that act on the outside world, such as `,_jsx(_components.code,{children:`call_rest`}),`, `,_jsx(_components.code,{children:`send_email`}),`, `,_jsx(_components.code,{children:`call_canvas`}),` and `,_jsx(_components.code,{children:`save_to_file`})]}),`\n`,_jsx(_components.li,{children:`This reduces token usage and prevents malicious use of system capabilities`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Prompt Engineering`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Carefully craft your system prompt to keep conversations on-topic`}),`\n`,_jsx(_components.li,{children:`Include guardrails to prevent users from repurposing the Digital Twin for unrelated queries`}),`\n`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Public-facing Digital Twins are inherently more vulnerable to abuse. Users may attempt to exploit the credit system or use the AI for purposes beyond its intended scope.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`integration`,children:`Integration`}),`\n`,_jsxs(_components.p,{children:[`Choose the integration approach that matches your JavaScript skill level and requirements — `,_jsx(_components.strong,{children:`Limited`}),` embeds the UI with minimal code, the `,_jsx(_components.strong,{children:`Starter Kit`}),` ships two ready-to-use examples, and `,_jsx(_components.strong,{children:`Standard`}),` gives you full programmatic control.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Limited`,id:`limited`,children:[_jsx(_components.p,{children:`Embed the Digital Twin UI in your website header with:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,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:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pria-sdk-web.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`pria-sdk-web.js`}),` file is the SDK you downloaded. Optionally, place this in a directory, e.g., `,_jsx(_components.code,{children:`/assets/js/pria-sdk-web.js`}),`.`]})}),_jsx(_components.p,{children:`Basic initialization for DOM-ready load:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'DOMContentLoaded'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_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:` // loading logic`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),_jsx(_components.p,{children:`Adjust parameters in the SDK for your Digital Twin, user identity, and display preferences:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` instanceConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` publicId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'f831501f-b645-481a-9cbb-331509aaf8c1'`}),_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:` pictureUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://cdn.domain.com/pics/dt_1.png'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` userConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `john@doe.com`\"}),_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:` profilename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `John Doe`\"}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` displayOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` buttonPositionRight:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'calc(50% - 40px)'`}),_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:` buttonPositionBottom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '80px'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://pria.praxislxp.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),_jsx(Warning,{children:_jsx(_components.p,{children:`For security, retrieve these values from a secure, asynchronous source to avoid exposing sensitive data.`})})]}),_jsxs(Tab,{title:`Starter Kit`,id:`starter-kit`,\"data-child-heading-ids\":`[\"integration-sample-integration-sample-html\",\"sdk-sample-sdk-sample-html\"]`,children:[_jsxs(_components.p,{children:[`Download the `,_jsx(_components.a,{href:`https://pria.praxislxp.com/integration-samples.zip`,children:`Example Starter Kit`}),` to get started with two ready-to-use integration examples.`]}),_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`PriaIntegration Class`,icon:`layer-group`,href:`#integration-sample`,children:_jsx(_components.p,{children:`Easy Setup Text interface: Use the helper class for quick setup with minimal code.`})}),_jsx(Card,{title:`Direct SDK Control`,icon:`code`,href:`#sdk-sample`,children:_jsx(_components.p,{children:`Initialize and start Convo Mode: Load the SDK directly for full control over events and behavior.`})})]}),_jsx(`div`,{id:`integration-sample`}),_jsx(Heading,{level:`4`,id:`integration-sample-integration-sample-html`,children:`Integration Sample (integration-sample.html)`}),_jsxs(_components.p,{children:[`This example demonstrates using the `,_jsx(_components.code,{children:`PriaIntegration`}),` class from `,_jsx(_components.code,{children:`pria-sdk-web.js`}),` for a streamlined integration:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Load SDK with PriaIntegration helper class`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`baseUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Wait for SDK to be ready`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` timer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isReady`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` clearInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`timer`}),_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:` // SDK is ready - user can interact with the button`})}),`\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\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Clean termination`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroySdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Quick integrations where you want the Digital Twin button to appear and let users click to start conversations naturally.`]}),_jsx(`div`,{id:`sdk-sample`}),_jsx(Heading,{level:`4`,id:`sdk-sample-sdk-sample-html`,children:`SDK Sample (sdk-sample.html)`}),_jsxs(_components.p,{children:[`This example loads the remote `,_jsx(_components.code,{children:`pria-sdk.js`}),` directly — the core SDK that `,_jsx(_components.code,{children:`pria-sdk-web.js`}),` wraps and loads for you — giving you full control over events and conversation flow:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,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:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Load SDK script directly`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` script`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'script'`}),_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:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/pria-sdk.js`\"}),_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:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`priasdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PUBLIC_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pictureUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` waitForReady`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`setupPria`}),_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`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Subscribe to events for granular control`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-response'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_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:` // Conversation started - show the UI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setVisible`}),_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`,_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`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Programmatically start conversation`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Best for:`}),` Advanced integrations requiring:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Custom loading indicators while connecting`}),`\n`,_jsx(_components.li,{children:`Automatic conversation start on button click`}),`\n`,_jsx(_components.li,{children:`Error handling with retry logic`}),`\n`,_jsx(_components.li,{children:`Visibility control based on connection state`}),`\n`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`The SDK Sample hides the Digital Twin UI until the conversation is confirmed started, providing a smoother user experience with loading feedback.`})})]}),_jsxs(Tab,{title:`Standard`,id:`standard`,children:[_jsx(_components.p,{children:`For full control, use JavaScript to configure and load the SDK.`}),_jsx(_components.p,{children:`Configuration object example:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`23`,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:`23`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` displayOptions:`}),_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:` buttonPositionRight:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'calc(50% - 40px)'`}),_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:` buttonPositionBottom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '80px'`})]}),`\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:` instanceConfig:`}),_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:` publicId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'f831501f-b645-481a-9cbb-331509aaf8c1'`}),_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:` pictureUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://cdn.domain.com/pics/dt_1.png'`})]}),`\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:` userConfig:`}),_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:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'john@doe.com'`}),_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:` profilename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'John Doe'`}),_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:` usertype:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_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:` userid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 110`}),_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:` roleid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`}),_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:` rolename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Course ABC\"`}),_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:` partnerid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_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:` partnername:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ABC Global Inc.\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` other`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` useful`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` objects`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),_jsx(Note,{children:_jsx(_components.p,{children:`This object configures display, which Digital Twin to use, and user identity.`})}),_jsx(_components.p,{children:`Load the SDK:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`32`,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:`32`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`* Load the Pria SDK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`*/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadPriaSDK`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`reject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` script`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'script'`}),_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-sdk-web.js'`}),_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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`,_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://pria.praxislxp.com'`}),_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:` config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayOptions`}),_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:` config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_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:` config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` resolve`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onerror`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` reject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Web SDK loading failed'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`appendChild`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`script`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// usage `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadPriaSDK`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The SDK file should be the copy you installed. You can organize includes under `,_jsx(_components.code,{children:`/assets/js/`}),` as needed.`]})}),_jsxs(_components.p,{children:[`For a full example, see `,_jsx(_components.a,{href:`/mdx/sdk/javascript-examples#sdk-playground-example`,children:`SDK Playground Example`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`configuration-parameters`,children:`Configuration Parameters`}),`\n`,_jsxs(_components.p,{children:[`The SDK requires three objects: `,_jsx(_components.code,{children:`displayOptions`}),`, `,_jsx(_components.code,{children:`instanceConfig`}),`, and `,_jsx(_components.code,{children:`userConfig`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`display-options`,children:`Display Options`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`displayOptions`}),` object controls the display and behavior of your digital twin on screen.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` displayOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` fullScreen:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Expand in full screen mode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` openOnLoad:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Open Pria immediately when loaded`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonWidth:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '80px'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Size of the Pria logo button`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonPosition:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fixed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Button position type (fixed, relative, sticky)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonPositionRight:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '20px'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Distance from right edge`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonPositionBottom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '20px'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Distance from bottom edge`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonNoBounce:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Disable button bounce animation`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` priaContainerId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Container ID for Pria window (default: BODY)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` buttonContainerId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Container ID for button (default: BODY)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allowPop:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Allow popping out of containing iframe`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` noUI:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Disable UI for headless operation`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` convoMode:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Auto-start convo (voice) mode when ready`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` assistantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pre-select an assistant for TEXT mode at load`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` transcripts:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Receive live voice transcripts (see the JavaScript SDK page)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onAuthRequired:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Called when Pria asks the person to confirm it's them (see below)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`noUI: true`}),` to use Pria programmatically without the visual interface`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Adjust `,_jsx(_components.code,{children:`buttonPositionRight`}),` with CSS for positioning, e.g., `,_jsx(_components.code,{children:`calc(50% - 40px)`}),` for center alignment.`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`convo-mode-convomode`,children:[`Convo Mode (`,_jsx(_components.code,{children:`convoMode`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`convoMode`}),` display option lets you auto-start real-time voice (speech-to-speech) mode as soon as the Digital Twin determines that voice is available for the current user. This is useful when you want your application to launch directly into a voice experience without requiring the user to navigate through the text interface first.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How it works:`}),` After the user authenticates, the SDK receives a `,_jsx(_components.code,{children:`convo.ready`}),` event from the Digital Twin indicating whether real-time voice is authorized. When `,_jsx(_components.code,{children:`convoMode`}),` is enabled, the SDK automatically sends a `,_jsx(_components.code,{children:`convo.start`}),` command and opens the UI panel.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Values:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`false`}),` (default)`]}),_jsx(_components.td,{children:`No auto-start. Voice mode must be started manually.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:`Auto-start voice mode with the default assistant in a new conversation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{ conversationId, conversationName, assistantId }`})}),_jsx(_components.td,{children:`Auto-start voice mode targeting a specific conversation and/or assistant. All fields are optional.`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Simple auto-start:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` displayOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` convoMode:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fullScreen:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` openOnLoad:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Targeted auto-start with a specific assistant and conversation:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` displayOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` convoMode:`}),_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:` conversationId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// maps to course_id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Customer Onboarding'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// maps to course_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` assistantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '6bec24be-4e86-4071-b90f-d588'`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // target assistant _id`})]}),`\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:` fullScreen:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` openOnLoad:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`convoMode`}),` requires that real-time voice (convo) is enabled for the user on this Digital Twin. If voice is not authorized, the flag is silently ignored and the text interface loads normally.`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`assistant-pre-select-assistantid`,children:[`Assistant pre-select (`,_jsx(_components.code,{children:`assistantId`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`Open the embedded Digital Twin in normal `,_jsx(_components.strong,{children:`text mode`}),` with a specific assistant already selected — no opening message is injected, and the user’s first typed message is routed to that assistant.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_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:` assistantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_ASSISTANT_ID'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the assistant's _id (see assistants.list)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` openOnLoad:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How it works:`}),` once the session is ready, the SDK sends a single `,_jsx(_components.code,{children:`assistant.select`}),` command. The chat shows the assistant as the pending choice; the conversation itself is only created when the user sends their first message, which carries the selection. After that first exchange the conversation keeps the assistant automatically.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Works for text-only Digital Twins — voice does not need to be enabled.`}),`\n`,_jsxs(_components.li,{children:[`If both `,_jsx(_components.code,{children:`assistantId`}),` and `,_jsx(_components.code,{children:`convoMode`}),` are supplied, `,_jsx(_components.code,{children:`convoMode`}),` (voice) takes precedence and the text-mode pre-select is skipped — including when voice turns out not to be authorized on that Digital Twin, in which case neither applies and the twin opens normally. Supply only `,_jsx(_components.code,{children:`assistantId`}),` if you want the pre-select to be the fallback.`]}),`\n`,_jsxs(_components.li,{children:[`An unknown or out-of-scope `,_jsx(_components.code,{children:`assistantId`}),` is rejected with an error response and the twin opens on its normal default assistant.`]}),`\n`,_jsx(_components.li,{children:`The pre-select fires once per session; if the user manually switches assistants afterwards, their choice is never overridden.`}),`\n`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`voice-transcripts-transcripts`,children:[`Voice transcripts (`,_jsx(_components.code,{children:`transcripts`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`transcripts: true`}),` to receive the conversation’s live transcript (`,_jsx(_components.code,{children:`convo.transcript`}),` messages) on your page while a voice call runs. The Digital Twin must allow it (`,_jsx(_components.strong,{children:`Share voice transcripts with the embedding page`}),` in its settings); otherwise the option is silently ignored. See `,_jsx(_components.a,{href:`/mdx/sdk/javascript#live-voice-transcripts-convotranscript`,children:`Live voice transcripts`}),`.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`confirm-it’s-you-onauthrequired`,children:[`Confirm it’s you (`,_jsx(_components.code,{children:`onAuthRequired`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`When an admin account opens Pria from your page (for example a Canvas course page), Pria may first show `,_jsx(_components.strong,{children:`Confirm it’s you`}),` inside its panel and ask for a 6-digit code. Until the person enters it, Pria refuses commands. The SDK calls your `,_jsx(_components.code,{children:`onAuthRequired`}),` function once, so you can bring the panel into view:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onAuthRequired`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`display`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you hide the launcher (`,_jsx(_components.code,{children:`noUI`}),`, a hidden button container, or `,_jsx(_components.code,{children:`setVisible(false)`}),`), you must handle this — call `,_jsx(_components.code,{children:`window.pria.setVisible(true)`}),` and then `,_jsx(_components.code,{children:`display(true)`}),`, or tell the person where to confirm — or nobody can reach the code screen. See `,_jsx(_components.a,{href:`/mdx/sdk/javascript#confirm-its-you`,children:`Confirm it’s you`}),` for how commands behave meanwhile.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`digital-twin-configuration-instanceconfig`,children:[`Digital Twin configuration (`,_jsx(_components.code,{children:`instanceConfig`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`instanceConfig`}),` object configures which Digital Twin to use along with the picture rendered in the start button.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instanceConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` publicId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '41407647-248c-4f0e-a317-71fc151ba8fb'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Public ID identifying your Digital Twin`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pictureUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://cdn.domain.com/pics/dt_1.png'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Picture to use for the on-screen icon of your Digital Twin`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`publicId`}),` value supports three modalities:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A specific Public ID`}),_jsx(_components.td,{children:`All connections route to that Digital Twin, regardless of the page URL.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`''`}),` (empty string)`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Pick on first use`}),` — the first administrator (or teacher) to open the widget on a given page is asked to choose an existing Digital Twin or create one. Pria remembers which twin belongs to that web address, and every later visitor to it reaches the same twin.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`undefined`})}),_jsx(_components.td,{children:`The Digital Twin does not start.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Leave `,_jsx(_components.code,{children:`pictureUrl`}),` empty for Pria’s default picture, or point it to a CORS-accessible image on a CDN.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Load these values securely and asynchronously—never expose sensitive data in your HTML.`})}),`\n`,_jsx(Heading,{level:`3`,id:`user-identity`,children:`User identity`}),`\n`,_jsxs(_components.p,{children:[`Set the user identity in the `,_jsx(_components.code,{children:`userConfig`}),` object`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'john@doe.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Required`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` profilename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'John Doe'`}),_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:` profilepicture:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Leave empty for user's default picture`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userid:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional user identifier on your site`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` roleid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional conversation/course ID`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` rolename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Course ABC'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional conversation/course name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` partnerid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional customer/account ID`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` partnername:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ABC Global Inc.'`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Optional customer/account name`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`email`}),` is required and serves as the main identifier in Praxis AI Middleware.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For education, set `,_jsx(_components.code,{children:`roleid`}),` and `,_jsx(_components.code,{children:`rolename`}),` to specify the course.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`partnerid`}),` and `,_jsx(_components.code,{children:`partnername`}),` to identify an Account or Customer when you create a multi tenant solution`]})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`For enhanced security, always retrieve these values asynchronously from a secure source to prevent exposure of plaintext data in the page.`})}),`\n`,_jsx(Heading,{level:`3`,id:`wait-for-pria-and-start-convo-mode`,children:`Wait for Pria and Start Convo mode`}),`\n`,_jsx(_components.p,{children:`Here is an example demonstrating how to Wait for Pria to be fully ready, then start Convo mode`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`92`,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:`92`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Start a conversation with optional assistant and course selection`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` startConversation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`conversationName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`})]}),`\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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Optionally specify an assistant`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_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:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` assistantId`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Optionally specify an existing conversation`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationName`}),_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:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selectedCourse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` course_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationId`}),_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:` course_name:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationName`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Starting convo mode\"`}),_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_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`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Handle responses from Pria`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handleResponse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Got response from Pria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-response'`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processing command:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle convo.start success - show UI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_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:` // Use SDK's display function to show the UI panel`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`display`}),_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`,_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'assistants.list'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_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:` // Handle assistants list response`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Assistants loaded:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'conversations.list'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_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:` // Handle conversations list response`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conversations loaded:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-error'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` errorContent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`errorContent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` errorContent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`indexOf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` // Retry after delay if not connected`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` startConversation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2000`}),_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\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pria error:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`errorContent`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Wait for Pria to be fully loaded and ready`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` waitForPria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_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:` // Use isReady to check if Pria is fully initialized`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Waiting for Pria to load...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Pria loaded and ready'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` clearInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`waitForPriaTimer`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Subscribe to Pria responses`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handleResponse`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Start conversation after a brief delay`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` startConversation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2000`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Clean up on page unload`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'beforeunload'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unsubscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handleResponse`}),_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Clean up Pria resources`})]}),`\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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` waitForPriaTimer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`waitForPria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`window.pria.isReady()`}),` to check if Pria is fully initialized before sending commands.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`integration-class-sample`,children:`Integration Class Sample`}),`\n`,_jsx(_components.p,{children:`This example is provided AS IS to demonstrate how you can cleanly integrate a Digital Twin in your Web Application. It is extracted from the playground example code.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`214`,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:`214`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Javascript Class integration example`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Demonstrates modern patterns for Pria SDK integration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PriaTestHarness`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` constructor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`waitForPriaTimer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversationMode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'existing'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 'existing' or 'new'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantsCache`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Cache assistants for lookup`})]}),`\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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` displayOptions:`}),_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:` buttonPositionRight:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'calc(50% - 40px)'`}),_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:` buttonPositionBottom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '80px'`})]}),`\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:` instanceConfig:`}),_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:` publicId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'f831501f-b645-481a-9cbb-331509aaf8c1'`}),_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:` pictureUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://cdn.domain.com/pics/dt_1.png'`})]}),`\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:` userConfig:`}),_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:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'john@doe.com'`}),_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:` profilename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'John Doe'`}),_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:` usertype:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_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:` userid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 110`}),_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:` roleid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`}),_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:` rolename:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Course ABC\"`}),_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:` partnerid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_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:` partnername:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ABC Global Inc.\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` localhost:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Initialize the application`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadPriaSDK`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Failed to initialize application:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_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`,_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Load the Pria SDK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadPriaSDK`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`reject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` script`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'script'`}),_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-sdk-web.js'`}),_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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`,_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:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Web SDK Script loaded'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://pria.praxislxp.com'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSdk`}),_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:` url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userConfig`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`waitForPriaTimer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`waitForPria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` resolve`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onerror`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Failed to load Web SDK:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` reject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Web SDK loading failed'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`appendChild`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`script`}),_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`,_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Wait for Pria to be available and set up subscriptions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` waitForPria`}),_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:` // Use isReady() to check if Pria is fully initialized`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Waiting for Pria to load...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` clearInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`waitForPriaTimer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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`,_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Subscribe to Pria responses`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handlePriaResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`bind`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Load assistants and conversations on connection`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadAssistants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadConversations`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Clean up on page unload`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'beforeunload'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unsubscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handlePriaResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Clean up Pria resources`})]}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Handle responses from Pria`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handlePriaResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-response'`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processing command:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle convo.start success - show UI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`showPria`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'assistants.list'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantsCache`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Assistants loaded:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'conversations.list'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conversations loaded:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pria-error'`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pria error:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_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`,_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Start a conversation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` startConversation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`conversationName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_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:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`assistantId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` assistantId`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationName`}),_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:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selectedCourse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` course_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationId`}),_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:` course_name:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` conversationName`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Load assistants list`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadAssistants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'assistants.list'`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Load conversations list`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadConversations`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'conversations.list'`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Toggle Pria visibility (show/hide entirely)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` togglePriaVisibility`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`visible`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setVisible`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`visible`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Toggle Pria panel display (expand/collapse)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` togglePriaDisplay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isConnected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Use SDK's isDisplayed() to check current state`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` isCurrentlyDisplayed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isDisplayed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`display`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isCurrentlyDisplayed`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Show Pria interface`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showPria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Check if UI is already shown using SDK's isDisplayed()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isDisplayed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`display`}),_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`,_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Initialize the application when DOM is loaded`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'DOMContentLoaded'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PriaTestHarness`}),_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`}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`key-sdk-methods-used`,children:`Key SDK Methods Used`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.isReady()`})}),_jsx(_components.td,{children:`Check if Pria is fully initialized and ready to receive commands`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.subscribe(callback)`})}),_jsx(_components.td,{children:`Listen for responses from Pria`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.unsubscribe(callback)`})}),_jsx(_components.td,{children:`Remove a response listener`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.send(request)`})}),_jsx(_components.td,{children:`Send a command to Pria`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.setVisible(visible)`})}),_jsx(_components.td,{children:`Show or hide Pria entirely (removes from DOM view)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.isVisible()`})}),_jsx(_components.td,{children:`Check if Pria is currently visible`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.display(show)`})}),_jsx(_components.td,{children:`Expand or collapse the Pria UI panel`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.isDisplayed()`})}),_jsx(_components.td,{children:`Check if the UI panel is currently expanded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pria.destroy()`})}),_jsx(_components.td,{children:`Clean up and remove Pria from the page`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`checking-ready-state`,children:`Checking Ready State`}),`\n`,_jsx(_components.p,{children:`Always verify Pria is ready before sending commands:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,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:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Check if Pria SDK is ready to receive messages`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@returns`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` {boolean}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` True if SDK is fully connected and ready`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` isPriaReady`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` typeof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isReady`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'function'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_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`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Usage in your application`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isPriaReady`}),_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pria`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'convo.start'`}),_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:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`isReady()`}),` method returns `,_jsx(_components.code,{children:`true`}),` only when the SDK is fully connected to the middleware and ready to send/receive messages.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`cleanup-and-reload`,children:`Cleanup and Reload`}),`\n`,_jsx(_components.p,{children:`When you need to remove Pria or reload it with new configuration:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Destroy SDK completely (removes all UI, event listeners, and references)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroySdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Reload with new or existing configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PriaIntegration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`reloadSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://pria.praxislxp.com'`}),_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:` displayOptions`}),_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:` instanceConfig`}),_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\":`#9CDCFE`},children:` userConfig`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`After calling `,_jsx(_components.code,{children:`destroy()`}),` or `,_jsx(_components.code,{children:`destroySdk()`}),`, all existing references to `,_jsx(_components.code,{children:`pria`}),` become invalid. The SDK must be fully reloaded before use.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sdk-playground-example`,children:`SDK Playground Example`}),`\n`,_jsxs(_components.p,{children:[`See a live demo: at `,_jsx(_components.a,{href:`https://pria.praxislxp.com/pria-sdk-web-sample.html`,children:`SDK Playground Example`}),`.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://pria.praxislxp.com/pria-sdk-web-sample.html`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=773248be55101ce3bfc784de3cd1c310`,alt:`SDK Playground Example`,\"data-og-width\":`1086`,width:`1086`,\"data-og-height\":`853`,height:`853`,\"data-path\":`images/sdk/websdk-playground.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=7f6e23d2cc4051322aed335000629eb1 280w, https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=834dd0f999cb3d5f3c13281178f0ba94 560w, https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=5de0bff1a6380bedb857a26131f74e75 840w, https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=8f35eae67d559546c76704a46f3d8e75 1100w, https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=e98cda228b0ea6a74f9e38c2de14b113 1650w, https://mintcdn.com/praxisai/kykHd4cobeHLACGX/images/sdk/websdk-playground.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=kykHd4cobeHLACGX\u0026q=85\u0026s=194827337a50055c440a0ac6fb2eaf42 2500w`}),`\n`,_jsx(_components.p,{children:`This demo covers integration, connection detection, command execution, and more.`}),`\n`,_jsx(Heading,{level:`2`,id:`automation`,children:`Automation`}),`\n`,_jsxs(_components.p,{children:[`Refer to the `,_jsx(_components.a,{href:`/mdx/sdk/javascript`,children:`Javascript APIs`}),` for interacting with your Digital Twin programmatically using Javascript`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mdx/sdk/javascript`,children:`JavaScript SDK`}),` — full SDK method reference`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mdx/sdk/javascript-examples`,children:`JavaScript SDK Examples`}),` — the SDK Playground and API class walkthroughs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mdx/integrations/web/examples`,children:`Web Examples`}),` — copy-paste snippets for common frameworks`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mdx/api-reference/streaming`,children:`Streaming Responses`}),` — stream model output token-by-token`]}),`\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":"Embed your Digital Twin","description":"Embed your Digital Twin in any Web application using the Web SDK.","icon":"puzzle-piece","href":"/mdx/integrations/web/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Fastest path: the Integration Wizard","slug":"fastest-path-the-integration-wizard","depth":2,"children":[{"title":"Where to find it","slug":"where-to-find-it","depth":3,"children":[]},{"title":"How it works","slug":"how-it-works","depth":3,"children":[]},{"title":"Allow your site first","slug":"allow-your-site-first","depth":3,"children":[]},{"title":"Visitor identity","slug":"visitor-identity","depth":3,"children":[]}]},{"title":"Integration Process","slug":"integration-process","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Integration","slug":"integration","depth":2,"children":[{"title":"Integration Sample (integration-sample.html)","slug":"integration-sample-integration-sample-html","depth":4,"children":[],"tabId":"starter-kit"},{"title":"SDK Sample (sdk-sample.html)","slug":"sdk-sample-sdk-sample-html","depth":4,"children":[],"tabId":"starter-kit"}]},{"title":"Configuration Parameters","slug":"configuration-parameters","depth":2,"children":[{"title":"Display Options","slug":"display-options","depth":3,"children":[]},{"title":"Convo Mode (convoMode)","slug":"convo-mode-convomode","depth":3,"children":[]},{"title":"Assistant pre-select (assistantId)","slug":"assistant-pre-select-assistantid","depth":3,"children":[]},{"title":"Voice transcripts (transcripts)","slug":"voice-transcripts-transcripts","depth":3,"children":[]},{"title":"Confirm it’s you (onAuthRequired)","slug":"confirm-it’s-you-onauthrequired","depth":3,"children":[]},{"title":"Digital Twin configuration (instanceConfig)","slug":"digital-twin-configuration-instanceconfig","depth":3,"children":[]},{"title":"User identity","slug":"user-identity","depth":3,"children":[]},{"title":"Wait for Pria and Start Convo mode","slug":"wait-for-pria-and-start-convo-mode","depth":3,"children":[]}]},{"title":"Integration Class Sample","slug":"integration-class-sample","depth":2,"children":[{"title":"Key SDK Methods Used","slug":"key-sdk-methods-used","depth":3,"children":[]},{"title":"Checking Ready State","slug":"checking-ready-state","depth":3,"children":[]},{"title":"Cleanup and Reload","slug":"cleanup-and-reload","depth":3,"children":[]}]},{"title":"SDK Playground Example","slug":"sdk-playground-example","depth":2,"children":[]},{"title":"Automation","slug":"automation","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"praxisai","siteName":"praxis-ai","title":"Embed your Digital Twin - praxis-ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-10T08:41:36.348Z","originalFileLocation":"mdx/integrations/web/introduction.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=\"Embed your Digital Twin in any Web application using the Web SDK.\">\u003cmeta data-mint-head name=\"application-name\" content=\"praxis-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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_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/praxisai/XTh1KbQ9ZEBjlBJJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Embed your Digital Twin - praxis-ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Embed your Digital Twin in any Web application using the Web SDK.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"praxis-ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.praxis-ai.com/mdx/integrations/web/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://praxisai.mintlify.app/_mintlify/api/og/v2?division=Web+%26+Chat+Integrations\u0026amp;title=Embed+your+Digital+Twin\u0026amp;description=Embed+your+Digital+Twin+in+any+Web+application+using+the+Web+SDK.\u0026amp;theme=3e471d4a71780917dfd4dd5f\u0026amp;signature=c8e8ed49d0c3c23dcd96d77ff53c043396049cf3ee7ab00d29bcdbc3cacdec4d\">\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=\"Embed your Digital Twin - praxis-ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Embed your Digital Twin in any Web application using the Web SDK.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://praxisai.mintlify.app/_mintlify/api/og/v2?division=Web+%26+Chat+Integrations\u0026amp;title=Embed+your+Digital+Twin\u0026amp;description=Embed+your+Digital+Twin+in+any+Web+application+using+the+Web+SDK.\u0026amp;theme=3e471d4a71780917dfd4dd5f\u0026amp;signature=c8e8ed49d0c3c23dcd96d77ff53c043396049cf3ee7ab00d29bcdbc3cacdec4d\">\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/praxisai/XTh1KbQ9ZEBjlBJJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"praxis-ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5011FD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.praxis-ai.com/mdx/integrations/web/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mdx/integrations/web/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.praxis-ai.com/#organization\",\"name\":\"praxis-ai\",\"url\":\"https://docs.praxis-ai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/praxisai/6nkK9KsHziJK7eUJ/images/logo/light.svg?fit=max\u0026auto=format\u0026n=6nkK9KsHziJK7eUJ\u0026q=85\u0026s=5d438417be87dbcd1a5749d3173410fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.praxis-ai.com#website\",\"name\":\"praxis-ai\",\"url\":\"https://docs.praxis-ai.com\",\"publisher\":{\"@id\":\"https://docs.praxis-ai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction#webpage\",\"url\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction\",\"name\":\"Embed your Digital Twin\",\"description\":\"Embed your Digital Twin in any Web application using the Web SDK.\",\"dateModified\":\"2026-10-10T08:41:36.348Z\",\"isPartOf\":{\"@id\":\"https://docs.praxis-ai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Web \u0026 Chat Integrations\",\"item\":\"https://docs.praxis-ai.com/mdx/integrations/chat-completions/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Embed your Digital Twin\",\"item\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction#article\",\"headline\":\"Embed your Digital Twin\",\"name\":\"Embed your Digital Twin\",\"description\":\"Embed your Digital Twin in any Web application using the Web SDK.\",\"url\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.praxis-ai.com/mdx/integrations/web/introduction#webpage\"},\"dateModified\":\"2026-10-10T08:41:36.348Z\",\"publisher\":{\"@id\":\"https://docs.praxis-ai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.praxis-ai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"praxis-ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"praxis-ai","nav":{"global":{"anchors":[{"anchor":"Innovations Hub","icon":"newspaper","href":"https://praxis-ai.com/innovation-hub/"},{"anchor":"Community Gitlab","icon":"gitlab","href":"https://gitlab.com/praxis-ai/pria-client-sdk"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/mdx/introduction/welcome"}]},{"tab":"New User","pages":[{"title":"New User","href":"/mdx/user-guide/introduction"}]},{"tab":"Power User","pages":[{"title":"Power User","href":"/mdx/user-guide/capabilities/content-creation"}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/mdx/admin-guide/introduction"}]},{"tab":"Developer","groups":[{"group":"Overview","pages":[{"title":"Overview","icon":"rocket","href":"/mdx/integrations/overview"}]},{"group":"Getting Started","pages":[{"title":"Getting Started","icon":"compass","href":"/mdx/developer/getting-started"}]},{"group":"LMS Integrations","pages":[{"title":"Overview","icon":"puzzle-piece","href":"/mdx/integrations/canvas/overview"},{"title":"Custom Theme","icon":"code-fork","href":"/mdx/integrations/canvas/theme"},{"title":"Theme Tools","icon":"wand-magic-sparkles","href":"/mdx/integrations/canvas/theme-tools"},{"title":"LTI 1.3 for Canvas","icon":"globe","href":"/mdx/integrations/canvas/lti-1-3"},{"title":"Pria Tools","icon":"wrench","href":"/mdx/integrations/canvas/pria-tools"},{"title":"Canvas Scopes Reference","icon":"shield-halved","href":"/mdx/integrations/canvas/pria-tools-scopes"},{"title":"D2L Brightspace","icon":"globe","href":"/mdx/integrations/d2l/introduction"},{"title":"Blackboard Learn","icon":"globe","href":"/mdx/integrations/blackboard/introduction"},{"title":"Moodle","icon":"globe","href":"/mdx/integrations/moodle/introduction"}]},{"group":"Voice \u0026 Avatars","pages":[{"title":"Voice \u0026 Realtime Providers","icon":"microphone","href":"/mdx/integrations/voice-providers/overview"},{"title":"ElevenLabs Voice Agent","icon":"wave-square","href":"/mdx/integrations/elevenlabs/introduction"},{"title":"Gemini Live Voice","icon":"microphone-lines","href":"/mdx/integrations/gemini-live/introduction"},{"title":"Anam Avatar","icon":"user","href":"/mdx/integrations/anam/introduction"}]},{"group":"Web \u0026 Chat Integrations","pages":[{"title":"Chat Completions API","description":"Connect to any Digital Twin using the OpenAI SDK — minimal setup, full compatibility","icon":"comments","href":"/mdx/integrations/chat-completions/introduction"},{"title":"Embed your Digital Twin","icon":"puzzle-piece","href":"/mdx/integrations/web/introduction"},{"title":"Guest Twin Links","description":"Give a Digital Twin a public web address anyone can open — no sign-in, no embedding code","icon":"link","href":"/mdx/integrations/web/guest-links"},{"title":"Digital Twin Loading Sequence","icon":"spinner","href":"/mdx/integrations/web/loading-sequence"},{"title":"Avatar Embed Widget","icon":"user-astronaut","href":"/mdx/integrations/web/avatar-widget"},{"title":"Websites Examples","icon":"globe","href":"/mdx/integrations/web/examples"}]},{"group":"MCP Server","pages":[{"title":"MCP Server","icon":"brain","href":"/mdx/integrations/mcp/introduction"},{"title":"Verified identity","icon":"shield-check","href":"/mdx/integrations/mcp/verified-identity"}]},{"group":"JavaScript SDK","pages":[{"title":"JavaScript SDK","sidebarTitle":"JavaScript","icon":"code","href":"/mdx/sdk/javascript"},{"title":"JavaScript SDK Examples","icon":"code","href":"/mdx/sdk/javascript-examples"},{"title":"Object Definitions","icon":"cubes","href":"/mdx/sdk/object-definitions"}]},{"group":"Authentication","pages":[{"title":"Authentication Overview","icon":"lock","href":"/mdx/integrations/authentication/overview"},{"title":"Social Login (Google, Microsoft, Apple, GitHub, Facebook)","icon":"circle-user","href":"/mdx/integrations/authentication/social-oauth"},{"title":"Enterprise SSO","icon":"building","href":"/mdx/integrations/authentication/enterprise-sso"}]},{"group":"REST API","pages":[{"title":"Introduction","icon":"circle-info","href":"/mdx/api-reference/introduction"},{"title":"Streaming Responses (SSE \u0026 Socket.IO)","icon":"tower-broadcast","href":"/mdx/api-reference/streaming"}]},{"group":"Runtime API","pages":[{"group":"Testing","pages":[{"title":"Check status of the middleware application","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/test/health","href":"/api-reference/testing/check-status-of-the-middleware-application"},{"title":"Retrieves an institution and validates user access for a specific context","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/test/url","href":"/api-reference/testing/retrieves-an-institution-and-validates-user-access-for-a-specific-context"}]},{"group":"Branding","pages":[{"title":"Retrieve branding information for a digital twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/agent/branding","href":"/api-reference/branding/retrieve-branding-information-for-a-digital-twin"},{"title":"Resolve a public twin widget by its web-access slug","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/agent/twins/{slug}","href":"/api-reference/branding/resolve-a-public-twin-widget-by-its-web-access-slug"}]},{"group":"Authentication","pages":[{"title":"Register a new user","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/signup","href":"/api-reference/authentication/register-a-new-user"},{"title":"Generate password reset code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/generateResetCode","href":"/api-reference/authentication/generate-password-reset-code"},{"title":"Validate password reset code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/checkResetCode","href":"/api-reference/authentication/validate-password-reset-code"},{"title":"Change user password","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/changePassword","href":"/api-reference/authentication/change-user-password"},{"title":"Validate account activation code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/checkActivateCode","href":"/api-reference/authentication/validate-account-activation-code"},{"title":"User authentication and sign-in","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/signin","href":"/api-reference/authentication/user-authentication-and-sign-in"},{"title":"Automatic user signup and authentication","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/autosignup","href":"/api-reference/authentication/automatic-user-signup-and-authentication"},{"title":"Sign in with Apple (native)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/apple","href":"/api-reference/authentication/sign-in-with-apple-native"},{"title":"Generate Digital Twin instructions from Q\u0026A","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/generate-prompt-preview","href":"/api-reference/authentication/generate-digital-twin-instructions-from-q\u0026a"},{"title":"Exchange a Pria API key for a JWT","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/api-key-signin","href":"/api-reference/authentication/exchange-a-pria-api-key-for-a-jwt"},{"title":"Submit a 6-digit MFA code to complete login","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-verify","href":"/api-reference/authentication/submit-a-6-digit-mfa-code-to-complete-login"},{"title":"Request a new MFA code for the current challenge","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-resend","href":"/api-reference/authentication/request-a-new-mfa-code-for-the-current-challenge"},{"title":"Abandon the current MFA challenge (user clicked Cancel)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-cancel","href":"/api-reference/authentication/abandon-the-current-mfa-challenge-user-clicked-cancel"}]},{"group":"OAuth","pages":[{"title":"Initiate SSO login","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/sso/{id}","href":"/api-reference/oauth/initiate-sso-login"},{"title":"SSO callback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sso_callback","href":"/api-reference/oauth/sso-callback"},{"title":"GitHub Marketplace webhook receiver","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/github/webhook","href":"/api-reference/oauth/github-marketplace-webhook-receiver"},{"title":"Start the Google Services (per-user) OAuth consent flow","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/authorize","href":"/api-reference/oauth/start-the-google-services-per-user-oauth-consent-flow"},{"title":"Google Services OAuth callback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/callback","href":"/api-reference/oauth/google-services-oauth-callback"},{"title":"Validate the caller's stored Google Services token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/validate","href":"/api-reference/oauth/validate-the-callers-stored-google-services-token"},{"title":"Revoke the caller's stored Google Services token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/auth/google/services/revoke","href":"/api-reference/oauth/revoke-the-callers-stored-google-services-token"},{"title":"Start the Google OAuth flow for an institution-level token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/institution/authorize","href":"/api-reference/oauth/start-the-google-oauth-flow-for-an-institution-level-token"},{"title":"Validate an institution's stored Google token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/institution/{institutionId}/validate","href":"/api-reference/oauth/validate-an-institutions-stored-google-token"},{"title":"Revoke an institution's stored Google token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/auth/google/institution/{institutionId}/revoke","href":"/api-reference/oauth/revoke-an-institutions-stored-google-token"},{"title":"Complete the Canvas LMS API authorization handoff","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/token_complete","href":"/api-reference/oauth/complete-the-canvas-lms-api-authorization-handoff"}]},{"group":"Institutions","pages":[{"title":"Get institutions for LTI context","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/getInstitutionsForContextid","href":"/api-reference/institutions/get-institutions-for-lti-context"},{"title":"Create a Digital Twin for a Canvas course","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/createInstitutionForContextid","href":"/api-reference/institutions/create-a-digital-twin-for-a-canvas-course"},{"title":"Check the upgrade to create Digital Twins","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/twin-upgrade","href":"/api-reference/institutions/check-the-upgrade-to-create-digital-twins"},{"title":"Upgrade to create Digital Twins","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/twin-upgrade","href":"/api-reference/institutions/upgrade-to-create-digital-twins"},{"title":"Update institution settings","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/institution","href":"/api-reference/institutions/update-institution-settings"},{"title":"Create a Digital Twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institution","href":"/api-reference/institutions/create-a-digital-twin"},{"title":"Fetch lazy-loaded institution about markdown","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institutionAbout","href":"/api-reference/institutions/fetch-lazy-loaded-institution-about-markdown"},{"title":"A Digital Twin's about and its numbers of files and assistants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/twinSummary","href":"/api-reference/institutions/a-digital-twins-about-and-its-numbers-of-files-and-assistants"}]},{"group":"SDK Launch","pages":[{"title":"Sign SDK launch parameters","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-sign","href":"/api-reference/sdk-launch/sign-sdk-launch-parameters"},{"title":"Verify SDK launch token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-verify","href":"/api-reference/sdk-launch/verify-sdk-launch-token"},{"title":"Course-wide Hide Pria for everyone toggle","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-hide","href":"/api-reference/sdk-launch/course-wide-hide-pria-for-everyone-toggle"},{"title":"A teacher disconnects a disabled Digital Twin from its Canvas course","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-unlink-course","href":"/api-reference/sdk-launch/a-teacher-disconnects-a-disabled-digital-twin-from-its-canvas-course"}]},{"group":"User","pages":[{"title":"Fork a platform definition into a new user definition.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/fleet-tasks/customize","href":"/api-reference/user/fork-a-platform-definition-into-a-new-user-definition"},{"title":"Update one of the caller's authored definitions.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/agents/fleet-tasks/{slug}","href":"/api-reference/user/update-one-of-the-callers-authored-definitions"},{"title":"Delete (soft) one of the caller's authored definitions.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/agents/fleet-tasks/{slug}","href":"/api-reference/user/delete-soft-one-of-the-callers-authored-definitions"},{"title":"Hide or show an institution definition for the caller.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/fleet-tasks/{slug}/twin-disable","href":"/api-reference/user/hide-or-show-an-institution-definition-for-the-caller"},{"title":"List the caller's saved agent workflows.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/workflows","href":"/api-reference/user/list-the-callers-saved-agent-workflows"},{"title":"Create a saved agent workflow.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/workflows","href":"/api-reference/user/create-a-saved-agent-workflow"},{"title":"Read one of the caller's workflows.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/workflows/{id}","href":"/api-reference/user/read-one-of-the-callers-workflows"},{"title":"Delete one of the caller's workflows.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/agents/workflows/{id}","href":"/api-reference/user/delete-one-of-the-callers-workflows"},{"title":"Update one of the caller's workflows.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/agents/workflows/{id}","href":"/api-reference/user/update-one-of-the-callers-workflows"},{"title":"Run one of the caller's workflows now.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/workflows/{id}/run","href":"/api-reference/user/run-one-of-the-callers-workflows-now"},{"title":"Run history for one of the caller's workflows.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/workflows/{id}/runs","href":"/api-reference/user/run-history-for-one-of-the-callers-workflows"},{"title":"Credit-cap gauges and block state for the caller's current institution.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/credit-cap-status","href":"/api-reference/user/credit-cap-gauges-and-block-state-for-the-callers-current-institution"},{"title":"Per-dialog context-composition breakdown for the InfoCard 10×10 grid.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/history/{id}/composition","href":"/api-reference/user/per-dialog-context-composition-breakdown-for-the-infocard-10×10-grid"},{"title":"Save a meeting transcript record to the owner's personal vault","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/history/{id}/meeting-transcript/vault","href":"/api-reference/user/save-a-meeting-transcript-record-to-the-owners-personal-vault"},{"title":"Platform choices for the per-mode subagent seat grid.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/subagentSeatOptions","href":"/api-reference/user/platform-choices-for-the-per-mode-subagent-seat-grid"},{"title":"Twin Home — a Digital Twin's week at a glance (twin admins)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/twin-home/{institutionId}","href":"/api-reference/user/twin-home-—-a-digital-twins-week-at-a-glance-twin-admins"},{"title":"Conversation Review inbox — conversations to review for a twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/conversation-review/list","href":"/api-reference/user/conversation-review-inbox-—-conversations-to-review-for-a-twin"},{"title":"Resolve, dismiss or reopen a review","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/conversation-review/{id}","href":"/api-reference/user/resolve-dismiss-or-reopen-a-review"},{"title":"Add the right answer to the twin's Knowledge and resolve the review","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/conversation-review/{id}/knowledge","href":"/api-reference/user/add-the-right-answer-to-the-twins-knowledge-and-resolve-the-review"},{"title":"Per-bucket credits spent for the calling user within an instance scope","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/usage-history","href":"/api-reference/user/per-bucket-credits-spent-for-the-calling-user-within-an-instance-scope"},{"title":"Set the authorized-source allowlist for the caller's personal API key","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/api-key/sources","href":"/api-reference/user/set-the-authorized-source-allowlist-for-the-callers-personal-api-key"},{"title":"Update user profile or change password","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/me","href":"/api-reference/user/update-user-profile-or-change-password"},{"title":"Dismiss the welcome message","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/personal-welcome-dismiss","href":"/api-reference/user/dismiss-the-welcome-message"},{"title":"Upload profile picture","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploadPicture","href":"/api-reference/user/upload-profile-picture"},{"title":"Get custom AI models","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/customModels","href":"/api-reference/user/get-custom-ai-models"},{"title":"Get system AI models","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/systemModels","href":"/api-reference/user/get-system-ai-models"},{"title":"Observe RunPod model readiness","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/runpod/status","href":"/api-reference/user/observe-runpod-model-readiness"},{"title":"Start, reconcile, or release bounded RunPod warm-up demand","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/runpod/warm","href":"/api-reference/user/start-reconcile-or-release-bounded-runpod-warm-up-demand"},{"title":"Refresh user profile data","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/refresh/profile","href":"/api-reference/user/refresh-user-profile-data"},{"title":"Refresh user entitlements and permissions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/refresh/entitlements","href":"/api-reference/user/refresh-user-entitlements-and-permissions"},{"title":"Usage-vs-cap reporting for one person, or an account's at-limit counts.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/usage-limits","href":"/api-reference/user/usage-vs-cap-reporting-for-one-person-or-an-accounts-at-limit-counts"}]},{"group":"Agentspace","pages":[{"title":"List worker-backed deployments of a project","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agentspace/{projectId}/deployments","href":"/api-reference/agentspace/list-worker-backed-deployments-of-a-project"},{"title":"Status of one deployment service (registry + guest supervisor observation)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agentspace/{projectId}/deployments/{serviceId}","href":"/api-reference/agentspace/status-of-one-deployment-service-registry-+-guest-supervisor-observation"},{"title":"Publish the revision served by a READY release service (expected-head CAS)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agentspace/{projectId}/deployments/{serviceId}/publish","href":"/api-reference/agentspace/publish-the-revision-served-by-a-ready-release-service-expected-head-cas"},{"title":"Roll the published head back to a retained prior revision (expected-head CAS)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agentspace/{projectId}/deployments/{serviceId}/rollback","href":"/api-reference/agentspace/roll-the-published-head-back-to-a-retained-prior-revision-expected-head-cas"},{"title":"Stop one service instance, fenced on its generation","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agentspace/{projectId}/deployments/{serviceId}/stop","href":"/api-reference/agentspace/stop-one-service-instance-fenced-on-its-generation"},{"title":"Bounded, cursor-resumable, redacted service logs","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agentspace/{projectId}/deployments/{serviceId}/logs","href":"/api-reference/agentspace/bounded-cursor-resumable-redacted-service-logs"},{"title":"Mint a short-lived private dev-preview capability for the caller","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agentspace/{projectId}/dev/{serviceId}/preview","href":"/api-reference/agentspace/mint-a-short-lived-private-dev-preview-capability-for-the-caller"}]},{"group":"Connectors","pages":[{"title":"Connector framework availability","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/status","href":"/api-reference/connectors/connector-framework-availability"},{"title":"The connectors Pria offers (manifests, no secrets)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/catalog","href":"/api-reference/connectors/the-connectors-pria-offers-manifests-no-secrets"},{"title":"Your connections (plus your twin's shared ones when you administer it)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/connections","href":"/api-reference/connectors/your-connections-plus-your-twins-shared-ones-when-you-administer-it"},{"title":"Add a Stripe connection from a restricted read-only key","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/connections/stripe","href":"/api-reference/connectors/add-a-stripe-connection-from-a-restricted-read-only-key"},{"title":"Connect a Postgres or MongoDB database through Pria's static egress IP","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/connections/database/{kind}","href":"/api-reference/connectors/connect-a-postgres-or-mongodb-database-through-prias-static-egress-ip"},{"title":"How to prove control of a database address another organisation connected first","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/connections/{id}/verification","href":"/api-reference/connectors/how-to-prove-control-of-a-database-address-another-organisation-connected-first"},{"title":"Prove control of the database address (DNS TXT record or a token in the database)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/connections/{id}/verify","href":"/api-reference/connectors/prove-control-of-the-database-address-dns-txt-record-or-a-token-in-the-database"},{"title":"Remove a connection whose key was pasted here (Stripe)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/connectors/connections/{id}","href":"/api-reference/connectors/remove-a-connection-whose-key-was-pasted-here-stripe"},{"title":"Bindings of one of your connections","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/connections/{id}/bindings","href":"/api-reference/connectors/bindings-of-one-of-your-connections"},{"title":"Create a binding (who may use the connection, for what, on which files)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/connections/{id}/bindings","href":"/api-reference/connectors/create-a-binding-who-may-use-the-connection-for-what-on-which-files"},{"title":"Remove a binding","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/connectors/bindings/{id}","href":"/api-reference/connectors/remove-a-binding"},{"title":"Edit a binding (narrowing it revokes its session approvals)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/connectors/bindings/{id}","href":"/api-reference/connectors/edit-a-binding-narrowing-it-revokes-its-session-approvals"},{"title":"Google Picker session for the binding editor (owner only; off unless configured)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/connections/{id}/picker","href":"/api-reference/connectors/google-picker-session-for-the-binding-editor-owner-only;-off-unless-configured"},{"title":"Access log of one of your connections (decisions, never arguments)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/connections/{id}/calls","href":"/api-reference/connectors/access-log-of-one-of-your-connections-decisions-never-arguments"},{"title":"Connector writes waiting for YOUR approval (you own the connection)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/approvals/pending","href":"/api-reference/connectors/connector-writes-waiting-for-your-approval-you-own-the-connection"},{"title":"Approve or deny one connector write (once, or all for this session)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/connectors/approvals/{approvalId}","href":"/api-reference/connectors/approve-or-deny-one-connector-write-once-or-all-for-this-session"},{"title":"Your active approve-all-for-this-session grants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/grants","href":"/api-reference/connectors/your-active-approve-all-for-this-session-grants"},{"title":"Revoke one of your session grants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/connectors/grants/{id}","href":"/api-reference/connectors/revoke-one-of-your-session-grants"},{"title":"Institution admins — every connection in the institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/admin/connections","href":"/api-reference/connectors/institution-admins-—-every-connection-in-the-institution"},{"title":"Institution admins — every active session grant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/admin/grants","href":"/api-reference/connectors/institution-admins-—-every-active-session-grant"},{"title":"Institution admins — pending connector write approvals (see only; the owner decides)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/connectors/admin/approvals","href":"/api-reference/connectors/institution-admins-—-pending-connector-write-approvals-see-only;-the-owner-decides"},{"title":"Institution admins — revoke a connection","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/connectors/admin/connections/{id}","href":"/api-reference/connectors/institution-admins-—-revoke-a-connection"},{"title":"Institution admins — revoke a session grant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/connectors/admin/grants/{id}","href":"/api-reference/connectors/institution-admins-—-revoke-a-session-grant"},{"title":"List the caller's pending MCP connector approvals","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/mcp-approvals/pending","href":"/api-reference/connectors/list-the-callers-pending-mcp-connector-approvals"},{"title":"Approve or deny one pending MCP connector call","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/mcp-approvals/{id}","href":"/api-reference/connectors/approve-or-deny-one-pending-mcp-connector-call"},{"title":"Check whether this session may decide MCP approvals now","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/mcp-approvals/step-up","href":"/api-reference/connectors/check-whether-this-session-may-decide-mcp-approvals-now"}]},{"group":"Email proposals","pages":[{"title":"List the emails a conversation turn prepared for you to send","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/email-proposals","href":"/api-reference/email-proposals/list-the-emails-a-conversation-turn-prepared-for-you-to-send"},{"title":"Send a prepared email","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/email-proposals/{id}/send","href":"/api-reference/email-proposals/send-a-prepared-email"},{"title":"Discard a prepared email without sending it","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/email-proposals/{id}/decline","href":"/api-reference/email-proposals/discard-a-prepared-email-without-sending-it"}]},{"group":"Assistants","pages":[{"title":"Add an assistant to the caller's favorites","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/favoriteAssistants/{id}","href":"/api-reference/assistants/add-an-assistant-to-the-callers-favorites"},{"title":"Remove an assistant from the caller's favorites","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/favoriteAssistants/{id}","href":"/api-reference/assistants/remove-an-assistant-from-the-callers-favorites"},{"title":"Search and retrieve assistants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/assistants","href":"/api-reference/assistants/search-and-retrieve-assistants"},{"title":"Create a new assistant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/assistant","href":"/api-reference/assistants/create-a-new-assistant"},{"title":"Get a single assistant by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/assistant/{id}","href":"/api-reference/assistants/get-a-single-assistant-by-id"},{"title":"Update an existing assistant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/assistant/{id}","href":"/api-reference/assistants/update-an-existing-assistant"},{"title":"Soft-delete an assistant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/assistant/{id}","href":"/api-reference/assistants/soft-delete-an-assistant"},{"title":"Increment an assistant's liked count","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/assistantLikesCount/{id}","href":"/api-reference/assistants/increment-an-assistants-liked-count"}]},{"group":"RAG","pages":[{"title":"Search file content via RAG-KAG and return scored snippets","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/files/search-content","href":"/api-reference/rag/search-file-content-via-rag-kag-and-return-scored-snippets"},{"title":"Get embedding chunks for an upload","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/embeddings","href":"/api-reference/rag/get-embedding-chunks-for-an-upload"},{"title":"Create a new embedding chunk","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/embedding","href":"/api-reference/rag/create-a-new-embedding-chunk"},{"title":"Update an embedding chunk","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/embedding/{id}","href":"/api-reference/rag/update-an-embedding-chunk"},{"title":"Delete an embedding chunk","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/embedding/{id}","href":"/api-reference/rag/delete-an-embedding-chunk"},{"title":"Sanitize an embedding chunk with AI","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/embedding/{id}/sanitize","href":"/api-reference/rag/sanitize-an-embedding-chunk-with-ai"},{"title":"Search RAG content for user using a specified query string","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/searchRag","href":"/api-reference/rag/search-rag-content-for-user-using-a-specified-query-string"}]},{"group":"User Profile","pages":[{"title":"Estimate cost of processing personal-vault files through KAG extraction","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/kag/personal/backfill-quote","href":"/api-reference/user-profile/estimate-cost-of-processing-personal-vault-files-through-kag-extraction"},{"title":"Start (or resume) KAG backfill for the caller's personal vault","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/kag/personal/backfill","href":"/api-reference/user-profile/start-or-resume-kag-backfill-for-the-callers-personal-vault"},{"title":"Aggregate status of the caller's personal-vault KAG jobs","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/kag/personal/backfill/status","href":"/api-reference/user-profile/aggregate-status-of-the-callers-personal-vault-kag-jobs"},{"title":"Cancel the caller's in-progress personal KAG backfill","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/kag/personal/backfill/active","href":"/api-reference/user-profile/cancel-the-callers-in-progress-personal-kag-backfill"},{"title":"Estimate cost of processing a Digital Twin's files through KAG extraction","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/institution/{id}/kag/backfill-quote","href":"/api-reference/user-profile/estimate-cost-of-processing-a-digital-twins-files-through-kag-extraction"},{"title":"Read-only funnel diagnostic for a Digital Twin's KAG backfill quote","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/institution/{id}/kag/backfill-diagnose","href":"/api-reference/user-profile/read-only-funnel-diagnostic-for-a-digital-twins-kag-backfill-quote"},{"title":"Start (or resume) KAG backfill for a Digital Twin's vault","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institution/{id}/kag/backfill","href":"/api-reference/user-profile/start-or-resume-kag-backfill-for-a-digital-twins-vault"},{"title":"Aggregate status of a Digital Twin's KAG jobs","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/institution/{id}/kag/backfill/status","href":"/api-reference/user-profile/aggregate-status-of-a-digital-twins-kag-jobs"},{"title":"Cancel a Digital Twin's in-progress KAG backfill","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/institution/{id}/kag/backfill/active","href":"/api-reference/user-profile/cancel-a-digital-twins-in-progress-kag-backfill"},{"title":"Send a verification code to prove email ownership (post-enable enrollment)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/mfa-enroll","href":"/api-reference/user-profile/send-a-verification-code-to-prove-email-ownership-post-enable-enrollment"},{"title":"Dismiss the enable-MFA nudge for 7 days","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/mfa-prompt-dismiss","href":"/api-reference/user-profile/dismiss-the-enable-mfa-nudge-for-7-days"},{"title":"List the current user's active MFA-trusted devices","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/me/trusted-devices","href":"/api-reference/user-profile/list-the-current-users-active-mfa-trusted-devices"},{"title":"Revoke ALL trusted devices for the current user","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/me/trusted-devices","href":"/api-reference/user-profile/revoke-all-trusted-devices-for-the-current-user"},{"title":"Revoke a specific trusted device","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/me/trusted-devices/{deviceId}","href":"/api-reference/user-profile/revoke-a-specific-trusted-device"},{"title":"Toggle the email verification factor on or off","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/mfa/email","href":"/api-reference/user-profile/toggle-the-email-verification-factor-on-or-off"},{"title":"Begin authenticator-app (TOTP) enrollment","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/totp/setup","href":"/api-reference/user-profile/begin-authenticator-app-totp-enrollment"},{"title":"Confirm and activate the authenticator-app factor","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/totp/confirm","href":"/api-reference/user-profile/confirm-and-activate-the-authenticator-app-factor"},{"title":"Turn off the authenticator-app factor","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/totp/disable","href":"/api-reference/user-profile/turn-off-the-authenticator-app-factor"},{"title":"Regenerate single-use backup codes","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/me/totp/backup-codes/regenerate","href":"/api-reference/user-profile/regenerate-single-use-backup-codes"},{"title":"Confirm it's you — ask for the code that gives a course-page session its full rights","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/launch-scope/challenge","href":"/api-reference/user-profile/confirm-its-you-—-ask-for-the-code-that-gives-a-course-page-session-its-full-rights"},{"title":"What powers a Digital Twin — its chat and voice models, files and knowledge graph","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/institution/{id}/models-knowledge","href":"/api-reference/user-profile/what-powers-a-digital-twin-—-its-chat-and-voice-models-files-and-knowledge-graph"},{"title":"The spending limits a Digital Twin may set","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/institution/{id}/turn-limits","href":"/api-reference/user-profile/the-spending-limits-a-digital-twin-may-set"},{"title":"List devices that have used the caller's personal API key","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/api-key-usage","href":"/api-reference/user-profile/list-devices-that-have-used-the-callers-personal-api-key"},{"title":"Forget a device row from the caller's list (cosmetic only)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/api-key-usage/{id}","href":"/api-reference/user-profile/forget-a-device-row-from-the-callers-list-cosmetic-only"}]},{"group":"AI","pages":[{"title":"Refresh tasks belonging to an owned plan","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/plan/{sessionId}/task-children","href":"/api-reference/ai/refresh-tasks-belonging-to-an-owned-plan"},{"title":"Explicitly Collect or request a retry for an owned plan task","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/plan/{sessionId}/task-children/{stepId}","href":"/api-reference/ai/explicitly-collect-or-request-a-retry-for-an-owned-plan-task"},{"title":"Stop a plan and retain a resumable checkpoint","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/personal/plan/{sessionId}/stop","href":"/api-reference/ai/stop-a-plan-and-retain-a-resumable-checkpoint"},{"title":"Read the owner's private build screenshots","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/ai/personal/plan/{sessionId}/artifact","href":"/api-reference/ai/read-the-owners-private-build-screenshots"},{"title":"Verify an exact persisted untracked chat completion","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/ai/personal/turns/by-turn/{clientTurnId}/history/{historyId}","href":"/api-reference/ai/verify-an-exact-persisted-untracked-chat-completion"},{"title":"Look up the durable execution receipt for a chat turn","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/ai/personal/turns/by-turn/{clientTurnId}","href":"/api-reference/ai/look-up-the-durable-execution-receipt-for-a-chat-turn"},{"title":"Stop a running chat reply by its turn id","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/personal/turns/cancel","href":"/api-reference/ai/stop-a-running-chat-reply-by-its-turn-id"},{"title":"Read the durable execution receipt by execution id","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/ai/personal/turns/{executionId}","href":"/api-reference/ai/read-the-durable-execution-receipt-by-execution-id"},{"title":"Request a durable Stop for an execution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/personal/turns/{executionId}/stop","href":"/api-reference/ai/request-a-durable-stop-for-an-execution"},{"title":"OpenAI-compatible Chat Completions endpoint (inbound integration)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/chat/completions","href":"/api-reference/ai/openai-compatible-chat-completions-endpoint-inbound-integration"}]},{"group":"Audio Notes","pages":[{"title":"Upload one or more audio segments for transcription and vault ingestion","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/audio-notes","href":"/api-reference/audio-notes/upload-one-or-more-audio-segments-for-transcription-and-vault-ingestion"}]},{"group":"Collections","pages":[{"title":"List collections for a vault","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/collections","href":"/api-reference/collections/list-collections-for-a-vault"},{"title":"Create a new collection","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/collection","href":"/api-reference/collections/create-a-new-collection"},{"title":"Update collection (rename, move vault)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/collection/{id}","href":"/api-reference/collections/update-collection-rename-move-vault"},{"title":"Delete a collection; its files move to the Trash","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/collection/{id}","href":"/api-reference/collections/delete-a-collection;-its-files-move-to-the-trash"},{"title":"Count what deleting a collection would do (changes nothing)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/collection/{id}/delete-preview","href":"/api-reference/collections/count-what-deleting-a-collection-would-do-changes-nothing"},{"title":"List files within a collection","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/collection/{id}/files","href":"/api-reference/collections/list-files-within-a-collection"},{"title":"Add files to a collection","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/collection/{id}/add","href":"/api-reference/collections/add-files-to-a-collection"},{"title":"Remove files from a collection","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/collection/{id}/remove","href":"/api-reference/collections/remove-files-from-a-collection"},{"title":"Download collection as ZIP","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/collection/{id}/download","href":"/api-reference/collections/download-collection-as-zip"},{"title":"Bulk action on files or collections","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/bulk/action","href":"/api-reference/collections/bulk-action-on-files-or-collections"},{"title":"Get all file and collection IDs for bulk select-all","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/collections/select-all-ids","href":"/api-reference/collections/get-all-file-and-collection-ids-for-bulk-select-all"},{"title":"Get recursive file counts for collections","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/collections/deep-count","href":"/api-reference/collections/get-recursive-file-counts-for-collections"},{"title":"Download selected files as ZIP","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/bulk/download","href":"/api-reference/collections/download-selected-files-as-zip"}]},{"group":"Feedback","pages":[{"title":"Submit feedback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/feedback","href":"/api-reference/feedback/submit-feedback"},{"title":"Get user feedbacks","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/feedbacks","href":"/api-reference/feedback/get-user-feedbacks"}]},{"group":"IP Vault","pages":[{"title":"Upload content from URL","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/url","href":"/api-reference/ip-vault/upload-content-from-url"},{"title":"Upload files","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/files","href":"/api-reference/ip-vault/upload-files"},{"title":"Delete uploaded file","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/files/{fileId}","href":"/api-reference/ip-vault/delete-uploaded-file"},{"title":"Update file confidential status","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/files/{fileId}/confidential","href":"/api-reference/ip-vault/update-file-confidential-status"},{"title":"Reload file content","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/reload/{fileId}","href":"/api-reference/ip-vault/reload-file-content"},{"title":"Re-ingest file from source URL","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/reingest/{fileId}","href":"/api-reference/ip-vault/re-ingest-file-from-source-url"},{"title":"Re-queue an existing file for ingestion","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/files/{fileId}/reprocess","href":"/api-reference/ip-vault/re-queue-an-existing-file-for-ingestion"},{"title":"Edit a text file's content and reprocess it","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/files/{fileId}/content","href":"/api-reference/ip-vault/edit-a-text-files-content-and-reprocess-it"},{"title":"Get KAG (knowledge graph) summary for a file","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/files/{uploadId}/kag-summary","href":"/api-reference/ip-vault/get-kag-knowledge-graph-summary-for-a-file"},{"title":"Search and retrieve user uploaded files","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploads","href":"/api-reference/ip-vault/search-and-retrieve-user-uploaded-files"},{"title":"Scan vault uploads for content quality","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploads/vault-health","href":"/api-reference/ip-vault/scan-vault-uploads-for-content-quality"},{"title":"Aggregate vault-wide health stats","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploads/vault-health-summary","href":"/api-reference/ip-vault/aggregate-vault-wide-health-stats"},{"title":"Summarize the Trash for the notice above the composer","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploads/trash-summary","href":"/api-reference/ip-vault/summarize-the-trash-for-the-notice-above-the-composer"},{"title":"List every file with a vault-health issue","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/uploads/files-with-issues","href":"/api-reference/ip-vault/list-every-file-with-a-vault-health-issue"},{"title":"Update an existing upload file's metadata","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/upload/{id}","href":"/api-reference/ip-vault/update-an-existing-upload-files-metadata"}]},{"group":"User Files","pages":[{"title":"Swap (replace) the on-disk asset for an existing Upload","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/upload/{fileId}/swap-asset","href":"/api-reference/user-files/swap-replace-the-on-disk-asset-for-an-existing-upload"},{"title":"Download a workspace as ZIP","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/workspace/{slug}/export","href":"/api-reference/user-files/download-a-workspace-as-zip"},{"title":"Get a short-lived link to a file","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/upload-token","href":"/api-reference/user-files/get-a-short-lived-link-to-a-file"}]},{"group":"History","pages":[{"title":"Retrieve user conversation histories","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/histories","href":"/api-reference/history/retrieve-user-conversation-histories"},{"title":"Retrieve user's favorite dialogues","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/favorites","href":"/api-reference/history/retrieve-users-favorite-dialogues"},{"title":"Retrieve user conversations","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/courses","href":"/api-reference/history/retrieve-user-conversations"},{"title":"Update a history record","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/history/{id}","href":"/api-reference/history/update-a-history-record"},{"title":"Clear history records (soft delete)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/clearHistory","href":"/api-reference/history/clear-history-records-soft-delete"},{"title":"Rename a conversation or favorite","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/renameHistory","href":"/api-reference/history/rename-a-conversation-or-favorite"},{"title":"Generate an AI summary title for a history record or conversation","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/summarizeHistory","href":"/api-reference/history/generate-an-ai-summary-title-for-a-history-record-or-conversation"}]},{"group":"User Institutions","pages":[{"title":"Update user institution preferences","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/userInstitution/{id}","href":"/api-reference/user-institutions/update-user-institution-preferences"},{"title":"Unlink LTI context from user institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/unlinkContextId/{id}","href":"/api-reference/user-institutions/unlink-lti-context-from-user-institution"},{"title":"Credit user institution with tokens","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/userInstitutionCredit/{id}","href":"/api-reference/user-institutions/credit-user-institution-with-tokens"},{"title":"Switch user's active institution profile","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/userInstitutionSwitch/{id}","href":"/api-reference/user-institutions/switch-users-active-institution-profile"},{"title":"Accept the privacy policy of your digital twin's account","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/account-policy/accept","href":"/api-reference/user-institutions/accept-the-privacy-policy-of-your-digital-twins-account"}]},{"group":"Membership","pages":[{"title":"Remove user institution membership","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/userInstitution/{id}","href":"/api-reference/membership/remove-user-institution-membership"},{"title":"Create personal institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/userInstitutionCreatePersonal","href":"/api-reference/membership/create-personal-institution"},{"title":"Join an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/institutionJoin","href":"/api-reference/membership/join-an-institution"},{"title":"Create or retrieve institution join code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institutionCreateJoinId","href":"/api-reference/membership/create-or-retrieve-institution-join-code"},{"title":"Email an invite link to a recipient","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institutionSendInvite","href":"/api-reference/membership/email-an-invite-link-to-a-recipient"},{"title":"Get institution by join code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/institutionByJoinId","href":"/api-reference/membership/get-institution-by-join-code"},{"title":"Get available institutions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/availableInstitutions","href":"/api-reference/membership/get-available-institutions"},{"title":"Approve a pending membership","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/approveUid","href":"/api-reference/membership/approve-a-pending-membership"}]},{"group":"Memberships","pages":[{"title":"Check the caller's membership on a public twin slug","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/twinMembership","href":"/api-reference/memberships/check-the-callers-membership-on-a-public-twin-slug"}]},{"group":"Memory","pages":[{"title":"List the user's memory parameters (personal + shared in their instances).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/memory","href":"/api-reference/memory/list-the-users-memory-parameters-personal-+-shared-in-their-instances"},{"title":"Hard-delete a single memory parameter.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/memory/{id}","href":"/api-reference/memory/hard-delete-a-single-memory-parameter"},{"title":"Edit a memory parameter (whitelisted fields only).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/memory/{id}","href":"/api-reference/memory/edit-a-memory-parameter-whitelisted-fields-only"},{"title":"Bulk hard-delete the user's own personal memory rows (filter-aware).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/memory/personal","href":"/api-reference/memory/bulk-hard-delete-the-users-own-personal-memory-rows-filter-aware"},{"title":"Bulk hard-delete shared rows for an instance (requires institutions.edit).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/memory/institution/{id}","href":"/api-reference/memory/bulk-hard-delete-shared-rows-for-an-instance-requires-institutionsedit"}]},{"group":"My Data","pages":[{"title":"Personal-scope data counts","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/data/stats","href":"/api-reference/my-data/personal-scope-data-counts"},{"title":"Request a ZIP-by-email export of personal data","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/data/export","href":"/api-reference/my-data/request-a-zip-by-email-export-of-personal-data"},{"title":"Scoped soft-delete of personal data","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/data","href":"/api-reference/my-data/scoped-soft-delete-of-personal-data"}]},{"group":"Presentations","pages":[{"title":"Whether this Digital Twin can make presentation videos","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/availability","href":"/api-reference/presentations/whether-this-digital-twin-can-make-presentation-videos"},{"title":"List your presentation videos","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations","href":"/api-reference/presentations/list-your-presentation-videos"},{"title":"Get one presentation video and its versions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}","href":"/api-reference/presentations/get-one-presentation-video-and-its-versions"},{"title":"Delete one of your presentation videos","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/presentations/{id}","href":"/api-reference/presentations/delete-one-of-your-presentation-videos"},{"title":"Get one version of a presentation video, ready to play","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/revisions/{n}","href":"/api-reference/presentations/get-one-version-of-a-presentation-video-ready-to-play"},{"title":"Edit one scene's narration or on-screen text","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/presentations/{id}/scenes/{sceneId}","href":"/api-reference/presentations/edit-one-scenes-narration-or-on-screen-text"},{"title":"Rename a video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/presentations/{id}/title","href":"/api-reference/presentations/rename-a-video"},{"title":"Upload your logo for this video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/brand/logo","href":"/api-reference/presentations/upload-your-logo-for-this-video"},{"title":"Stop making a presentation video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/cancel","href":"/api-reference/presentations/stop-making-a-presentation-video"},{"title":"The Brand panel of this video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/brand","href":"/api-reference/presentations/the-brand-panel-of-this-video"},{"title":"Apply a brand to this video (a new version)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/presentations/{id}/brand","href":"/api-reference/presentations/apply-a-brand-to-this-video-a-new-version"},{"title":"Delete one of your saved brands","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/presentations/{id}/brand/saved/{slug}","href":"/api-reference/presentations/delete-one-of-your-saved-brands"},{"title":"Show (or stop showing) a logo from your Digital Twin's files on public links and MP4s","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/brand/logo/public","href":"/api-reference/presentations/show-or-stop-showing-a-logo-from-your-digital-twins-files-on-public-links-and-mp4s"},{"title":"Read brand colours and a logo from your website","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/brand/import","href":"/api-reference/presentations/read-brand-colours-and-a-logo-from-your-website"},{"title":"List the brand save offers of a chat reply","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/brand-proposals","href":"/api-reference/presentations/list-the-brand-save-offers-of-a-chat-reply"},{"title":"Save a brand offer for next time","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/brand-proposals/{proposalId}/accept","href":"/api-reference/presentations/save-a-brand-offer-for-next-time"},{"title":"Decline a brand offer","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/brand-proposals/{proposalId}/decline","href":"/api-reference/presentations/decline-a-brand-offer"},{"title":"Estimate the credits to export the current version to MP4","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/export/estimate","href":"/api-reference/presentations/estimate-the-credits-to-export-the-current-version-to-mp4"},{"title":"Start the MP4 export (after the user confirmed the estimate)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/export","href":"/api-reference/presentations/start-the-mp4-export-after-the-user-confirmed-the-estimate"},{"title":"Your recent exports of this presentation (newest first, up to 10)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/exports","href":"/api-reference/presentations/your-recent-exports-of-this-presentation-newest-first-up-to-10"},{"title":"Poll one export","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/export/{jobId}","href":"/api-reference/presentations/poll-one-export"},{"title":"Download the MP4 or the captions (WebVTT)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/export/{jobId}/download","href":"/api-reference/presentations/download-the-mp4-or-the-captions-webvtt"},{"title":"Your share links of this presentation","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/presentations/{id}/shares","href":"/api-reference/presentations/your-share-links-of-this-presentation"},{"title":"Create a share link (view-only) for a version","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/presentations/{id}/shares","href":"/api-reference/presentations/create-a-share-link-view-only-for-a-version"},{"title":"Delete a share link now","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/presentations/{id}/shares/{shareId}","href":"/api-reference/presentations/delete-a-share-link-now"},{"title":"Change a share link — audience, version, expiry, label — or turn it off","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/presentations/{id}/shares/{shareId}","href":"/api-reference/presentations/change-a-share-link-—-audience-version-expiry-label-—-or-turn-it-off"}]},{"group":"Questions","pages":[{"title":"List active onboarding questions for the Persona Builder bank.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/questions","href":"/api-reference/questions/list-active-onboarding-questions-for-the-persona-builder-bank"}]},{"group":"Setting","pages":[{"title":"Retrieve settings by key","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/settingByKey","href":"/api-reference/setting/retrieve-settings-by-key"},{"title":"Retrieve settings for the current institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/settings","href":"/api-reference/setting/retrieve-settings-for-the-current-institution"},{"title":"Create a new instance variable","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/setting","href":"/api-reference/setting/create-a-new-instance-variable"},{"title":"Update an instance variable","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/setting/{settingId}","href":"/api-reference/setting/update-an-instance-variable"},{"title":"Delete an instance variable","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/setting/{settingId}","href":"/api-reference/setting/delete-an-instance-variable"}]},{"group":"Billing","pages":[{"title":"Get current subscription plan","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/stripe/plan","href":"/api-reference/billing/get-current-subscription-plan"},{"title":"Create subscription checkout session","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/stripe/subscribe","href":"/api-reference/billing/create-subscription-checkout-session"},{"title":"Get checkout session result","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/stripe/checkout-result","href":"/api-reference/billing/get-checkout-session-result"}]},{"group":"User History","pages":[{"title":"Lazy-fetch the bulk thinking and reasoning array for a single History record","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/history/{id}/thinking","href":"/api-reference/user-history/lazy-fetch-the-bulk-thinking-and-reasoning-array-for-a-single-history-record"},{"title":"Lazy-fetch the structured RAG-KAG retrieval segments for a single History record","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/history/{id}/ragSearch","href":"/api-reference/user-history/lazy-fetch-the-structured-rag-kag-retrieval-segments-for-a-single-history-record"},{"title":"Read an assistant response aloud using the configured speech model","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/history/{id}/audio","href":"/api-reference/user-history/read-an-assistant-response-aloud-using-the-configured-speech-model"},{"title":"Hear a short sample of a read-aloud voice","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/tts/preview","href":"/api-reference/user-history/hear-a-short-sample-of-a-read-aloud-voice"}]},{"group":"Tools","pages":[{"title":"Get available tools for the authenticated user","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/tools","href":"/api-reference/tools/get-available-tools-for-the-authenticated-user"}]},{"group":"Transcription","pages":[{"title":"Transient speech-to-text","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/transcribe","href":"/api-reference/transcription/transient-speech-to-text"}]},{"group":"Agents","pages":[{"title":"Issue a short-lived ticket for the caller's KasmVNC desktop","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/workspace/ticket","href":"/api-reference/agents/issue-a-short-lived-ticket-for-the-callers-kasmvnc-desktop"},{"title":"Get current user's agent workspace status","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/workspace/me","href":"/api-reference/agents/get-current-users-agent-workspace-status"},{"title":"Status of the caller's daemon (Pria row + guest truth)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/daemon","href":"/api-reference/agents/status-of-the-callers-daemon-pria-row-+-guest-truth"},{"title":"Ensure the caller's persistent Synaps daemon is running (agentsv2)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/daemon","href":"/api-reference/agents/ensure-the-callers-persistent-synaps-daemon-is-running-agentsv2"},{"title":"Stop the caller's daemon and close its session row","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/daemon/stop","href":"/api-reference/agents/stop-the-callers-daemon-and-close-its-session-row"},{"title":"Single-use ticket for the daemon WebSocket","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/ticket","href":"/api-reference/agents/single-use-ticket-for-the-daemon-websocket"},{"title":"Saved daemon sessions (headers only, most recent first)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/sessions","href":"/api-reference/agents/saved-daemon-sessions-headers-only-most-recent-first"},{"title":"Default + favorite models for the daemon's model picker","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/models","href":"/api-reference/agents/default-+-favorite-models-for-the-daemons-model-picker"},{"title":"Daemon + bridge versions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/info","href":"/api-reference/agents/daemon-+-bridge-versions"},{"title":"Read-only snapshot of the daemon's configuration (managed by Pria)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/config","href":"/api-reference/agents/read-only-snapshot-of-the-daemons-configuration-managed-by-pria"},{"title":"Always refused — the daemon configuration is managed by Pria","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/config","href":"/api-reference/agents/always-refused-—-the-daemon-configuration-is-managed-by-pria"},{"title":"The models and reasoning levels a workflow can use on the current twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/workflow-models","href":"/api-reference/agents/the-models-and-reasoning-levels-a-workflow-can-use-on-the-current-twin"},{"title":"The caller's agentsv2 workflows on the current twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/workflows","href":"/api-reference/agents/the-callers-agentsv2-workflows-on-the-current-twin"},{"title":"Create a workflow (owner and twin come from the session, never the body)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/workflows","href":"/api-reference/agents/create-a-workflow-owner-and-twin-come-from-the-session-never-the-body"},{"title":"One workflow","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/workflows/{id}","href":"/api-reference/agents/one-workflow"},{"title":"Delete a workflow (its run records stay; a run in progress finishes)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/user/agents/v2/workflows/{id}","href":"/api-reference/agents/delete-a-workflow-its-run-records-stay;-a-run-in-progress-finishes"},{"title":"Update a workflow (partial)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json patch /api/user/agents/v2/workflows/{id}","href":"/api-reference/agents/update-a-workflow-partial"},{"title":"Run now — a new session in the caller's daemon with the instruction as its first prompt","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/v2/workflows/{id}/run","href":"/api-reference/agents/run-now-—-a-new-session-in-the-callers-daemon-with-the-instruction-as-its-first-prompt"},{"title":"The workflow's latest 20 runs, newest first","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/v2/workflows/{id}/runs","href":"/api-reference/agents/the-workflows-latest-20-runs-newest-first"},{"title":"The caller's agent email allowlist on their current twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/email-allowlist","href":"/api-reference/agents/the-callers-agent-email-allowlist-on-their-current-twin"},{"title":"Replace the caller's agent email allowlist on their current twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/agents/email-allowlist","href":"/api-reference/agents/replace-the-callers-agent-email-allowlist-on-their-current-twin"},{"title":"The caller's VM-login seat setting on their current twin.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/vm-login","href":"/api-reference/agents/the-callers-vm-login-seat-setting-on-their-current-twin"},{"title":"Choose the providers whose seats run on the VM's own Synaps login.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/agents/vm-login","href":"/api-reference/agents/choose-the-providers-whose-seats-run-on-the-vms-own-synaps-login"},{"title":"Check whether a local Synaps login for one provider is present and usable on the caller's VM","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/vm-login/probe","href":"/api-reference/agents/check-whether-a-local-synaps-login-for-one-provider-is-present-and-usable-on-the-callers-vm"},{"title":"VM owner only — let other members of a shared agent VM use their own Synaps login on it.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/user/agents/vm-login/vm-policy","href":"/api-reference/agents/vm-owner-only-—-let-other-members-of-a-shared-agent-vm-use-their-own-synaps-login-on-it"}]},{"group":"Subscription connections","pages":[{"title":"Start connecting the twin's ChatGPT subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/chatgpt/start","href":"/api-reference/subscription-connections/start-connecting-the-twins-chatgpt-subscription"},{"title":"Finish connecting the twin's ChatGPT subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/chatgpt/poll","href":"/api-reference/subscription-connections/finish-connecting-the-twins-chatgpt-subscription"},{"title":"Is a ChatGPT subscription connected to the twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/chatgpt/status","href":"/api-reference/subscription-connections/is-a-chatgpt-subscription-connected-to-the-twin"},{"title":"Disconnect the twin's ChatGPT subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/chatgpt/disconnect","href":"/api-reference/subscription-connections/disconnect-the-twins-chatgpt-subscription"},{"title":"Start connecting the twin's Grok subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/grok/start","href":"/api-reference/subscription-connections/start-connecting-the-twins-grok-subscription"},{"title":"Finish connecting the twin's Grok subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/grok/poll","href":"/api-reference/subscription-connections/finish-connecting-the-twins-grok-subscription"},{"title":"Is a Grok subscription connected to the twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/grok/status","href":"/api-reference/subscription-connections/is-a-grok-subscription-connected-to-the-twin"},{"title":"Disconnect the twin's Grok subscription","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/grok/disconnect","href":"/api-reference/subscription-connections/disconnect-the-twins-grok-subscription"}]},{"group":"Git connections","pages":[{"title":"Is GitHub connected for this person's agents","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/github/status","href":"/api-reference/git-connections/is-github-connected-for-this-persons-agents"},{"title":"Start connecting GitHub (returns the GitHub sign-in address)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/github/start","href":"/api-reference/git-connections/start-connecting-github-returns-the-github-sign-in-address"},{"title":"Disconnect GitHub","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/github/disconnect","href":"/api-reference/git-connections/disconnect-github"},{"title":"The person's GitLab connections for their agents","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/gitlab/status","href":"/api-reference/git-connections/the-persons-gitlab-connections-for-their-agents"},{"title":"Start connecting gitlab.com by sign-in","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/gitlab/start","href":"/api-reference/git-connections/start-connecting-gitlabcom-by-sign-in"},{"title":"Connect any GitLab with a personal access token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/gitlab/token","href":"/api-reference/git-connections/connect-any-gitlab-with-a-personal-access-token"},{"title":"Disconnect one GitLab host","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/gitlab/disconnect","href":"/api-reference/git-connections/disconnect-one-gitlab-host"},{"title":"GitHub / GitLab sign-in return (browser redirect)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/auth/agent-git/{provider}/callback","href":"/api-reference/git-connections/github-gitlab-sign-in-return-browser-redirect"}]},{"group":"Google connection","pages":[{"title":"Can this user's agents read Gmail on the current Digital Twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/google/status","href":"/api-reference/google-connection/can-this-users-agents-read-gmail-on-the-current-digital-twin"}]},{"group":"Power BI connection","pages":[{"title":"Power BI connection status of this Digital Twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/powerbi/status","href":"/api-reference/power-bi-connection/power-bi-connection-status-of-this-digital-twin"},{"title":"Connect this Digital Twin to Power BI (read-only)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/powerbi/key","href":"/api-reference/power-bi-connection/connect-this-digital-twin-to-power-bi-read-only"},{"title":"Disconnect this Digital Twin from Power BI","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/powerbi/disconnect","href":"/api-reference/power-bi-connection/disconnect-this-digital-twin-from-power-bi"}]},{"group":"Procore connection","pages":[{"title":"Procore connection status of this Digital Twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/user/agents/connect/procore/status","href":"/api-reference/procore-connection/procore-connection-status-of-this-digital-twin"},{"title":"Connect this Digital Twin to Procore (read-only)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/procore/key","href":"/api-reference/procore-connection/connect-this-digital-twin-to-procore-read-only"},{"title":"Disconnect this Digital Twin from Procore","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/user/agents/connect/procore/disconnect","href":"/api-reference/procore-connection/disconnect-this-digital-twin-from-procore"}]},{"group":"Admin","pages":[{"title":"Twin admin — read whether members may use their VM's own Synaps login","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/admin/institution/{id}/agent-vm-local-login","href":"/api-reference/admin/twin-admin-—-read-whether-members-may-use-their-vms-own-synaps-login"},{"title":"Twin admin — allow or disallow members to run seats on their VM's own Synaps login.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json put /api/admin/institution/{id}/agent-vm-local-login","href":"/api-reference/admin/twin-admin-—-allow-or-disallow-members-to-run-seats-on-their-vms-own-synaps-login"}]},{"group":"Realtime","pages":[{"title":"Create realtime AI session","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtProxy/rtSession","href":"/api-reference/realtime/create-realtime-ai-session"},{"title":"Background tool jobs of a realtime session","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtTools/jobs","href":"/api-reference/realtime/background-tool-jobs-of-a-realtime-session"},{"title":"Execute realtime tool","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtTools/exec","href":"/api-reference/realtime/execute-realtime-tool"},{"title":"Stream a provider-neutral avatar voice turn (Anam + future providers)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtProxy/voiceTurn","href":"/api-reference/realtime/stream-a-provider-neutral-avatar-voice-turn-anam-+-future-providers"},{"title":"Mint a Deepgram streaming STT session","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtProxy/deepgram/sttSession","href":"/api-reference/realtime/mint-a-deepgram-streaming-stt-session"},{"title":"Save realtime conversation","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtSave/conversation","href":"/api-reference/realtime/save-realtime-conversation"},{"title":"Voice turn prediction check (is the speaker done, is it the same request, is it an interruption)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtProxy/turnPredict","href":"/api-reference/realtime/voice-turn-prediction-check-is-the-speaker-done-is-it-the-same-request-is-it-an-interruption"},{"title":"Report one voice turn-prediction outcome","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/rtProxy/voiceTurn/spec","href":"/api-reference/realtime/report-one-voice-turn-prediction-outcome"}]},{"group":"Conversation","pages":[{"title":"Send a message to the AI assistant","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/personal/qanda","href":"/api-reference/conversation/send-a-message-to-the-ai-assistant"},{"title":"Send a message with HTTP SSE streaming response","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/personal-stream/qanda-stream","href":"/api-reference/conversation/send-a-message-with-http-sse-streaming-response"},{"title":"Send a message to the AI assistant (experimental — Soul Document prompt)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/experimental/personal/qanda","href":"/api-reference/conversation/send-a-message-to-the-ai-assistant-experimental-—-soul-document-prompt"},{"title":"Send a message to the AI assistant (experimental — Soul Document V2 prompt)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/ai/experimental/personal/qanda-v2","href":"/api-reference/conversation/send-a-message-to-the-ai-assistant-experimental-—-soul-document-v2-prompt"}]},{"group":"Presentation share links","pages":[{"title":"Open a shared presentation video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/public/presentation-share/resolve","href":"/api-reference/presentation-share-links/open-a-shared-presentation-video"},{"title":"Count a view of a shared video","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/public/presentation-share/view","href":"/api-reference/presentation-share-links/count-a-view-of-a-shared-video"},{"title":"Download a shared video or its captions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/public/presentation-share/download","href":"/api-reference/presentation-share-links/download-a-shared-video-or-its-captions"}]},{"group":"Boards","pages":[{"title":"The caller's Projects boards access","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/boards/access","href":"/api-reference/boards/the-callers-projects-boards-access"},{"title":"Who can see a Projects scope — the people a card there may be assigned to","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/boards/boards/members","href":"/api-reference/boards/who-can-see-a-projects-scope-—-the-people-a-card-there-may-be-assigned-to"},{"title":"A card's timeline — comments and activity in one thread, oldest first","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/boards/tasks/{taskId}/timeline","href":"/api-reference/boards/a-cards-timeline-—-comments-and-activity-in-one-thread-oldest-first"},{"title":"Comment on a card (plain text, ≤ 2000 chars; mentions resolved within the board's members)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/boards/tasks/{taskId}/comments","href":"/api-reference/boards/comment-on-a-card-plain-text-≤-2000-chars;-mentions-resolved-within-the-boards-members"},{"title":"Remove a comment (author or board owner); the row stays, reading Comment removed","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json delete /api/boards/tasks/{taskId}/comments/{eventId}","href":"/api-reference/boards/remove-a-comment-author-or-board-owner;-the-row-stays-reading-comment-removed"},{"title":"Add the standard workflow lanes to a board","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json post /api/boards/boards/{boardId}/lanes","href":"/api-reference/boards/add-the-standard-workflow-lanes-to-a-board"},{"title":"A cross-board view of your open cards","deprecated":null,"version":null,"openapi":"/mdx/api-reference/runtime/runtime-api.json get /api/boards/views/{name}","href":"/api-reference/boards/a-cross-board-view-of-your-open-cards"}]}]},{"group":"Administrator API","pages":[{"group":"Testing","pages":[{"title":"Check status of the middleware application","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/test/health","href":"/api-reference/testing/check-status-of-the-middleware-application"},{"title":"Retrieves an institution and validates user access for a specific context","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/test/url","href":"/api-reference/testing/retrieves-an-institution-and-validates-user-access-for-a-specific-context"}]},{"group":"Authentication","pages":[{"title":"Register a new user","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/signup","href":"/api-reference/authentication/register-a-new-user"},{"title":"Generate password reset code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/generateResetCode","href":"/api-reference/authentication/generate-password-reset-code"},{"title":"Validate password reset code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/checkResetCode","href":"/api-reference/authentication/validate-password-reset-code"},{"title":"Change user password","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/changePassword","href":"/api-reference/authentication/change-user-password"},{"title":"Validate account activation code","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/checkActivateCode","href":"/api-reference/authentication/validate-account-activation-code"},{"title":"User authentication and sign-in","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/signin","href":"/api-reference/authentication/user-authentication-and-sign-in"},{"title":"Automatic user signup and authentication","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/autosignup","href":"/api-reference/authentication/automatic-user-signup-and-authentication"},{"title":"Sign in with Apple (native)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/apple","href":"/api-reference/authentication/sign-in-with-apple-native"},{"title":"Generate Digital Twin instructions from Q\u0026A","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/generate-prompt-preview","href":"/api-reference/authentication/generate-digital-twin-instructions-from-q\u0026a"},{"title":"Exchange a Pria API key for a JWT","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/api-key-signin","href":"/api-reference/authentication/exchange-a-pria-api-key-for-a-jwt"},{"title":"Submit a 6-digit MFA code to complete login","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-verify","href":"/api-reference/authentication/submit-a-6-digit-mfa-code-to-complete-login"},{"title":"Request a new MFA code for the current challenge","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-resend","href":"/api-reference/authentication/request-a-new-mfa-code-for-the-current-challenge"},{"title":"Abandon the current MFA challenge (user clicked Cancel)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/mfa-cancel","href":"/api-reference/authentication/abandon-the-current-mfa-challenge-user-clicked-cancel"}]},{"group":"OAuth","pages":[{"title":"Initiate SSO login","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/sso/{id}","href":"/api-reference/oauth/initiate-sso-login"},{"title":"SSO callback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sso_callback","href":"/api-reference/oauth/sso-callback"},{"title":"GitHub Marketplace webhook receiver","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/github/webhook","href":"/api-reference/oauth/github-marketplace-webhook-receiver"},{"title":"Start the Google Services (per-user) OAuth consent flow","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/authorize","href":"/api-reference/oauth/start-the-google-services-per-user-oauth-consent-flow"},{"title":"Google Services OAuth callback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/callback","href":"/api-reference/oauth/google-services-oauth-callback"},{"title":"Validate the caller's stored Google Services token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/services/validate","href":"/api-reference/oauth/validate-the-callers-stored-google-services-token"},{"title":"Revoke the caller's stored Google Services token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/auth/google/services/revoke","href":"/api-reference/oauth/revoke-the-callers-stored-google-services-token"},{"title":"Start the Google OAuth flow for an institution-level token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/institution/authorize","href":"/api-reference/oauth/start-the-google-oauth-flow-for-an-institution-level-token"},{"title":"Validate an institution's stored Google token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/google/institution/{institutionId}/validate","href":"/api-reference/oauth/validate-an-institutions-stored-google-token"},{"title":"Revoke an institution's stored Google token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/auth/google/institution/{institutionId}/revoke","href":"/api-reference/oauth/revoke-an-institutions-stored-google-token"},{"title":"Complete the Canvas LMS API authorization handoff","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/auth/token_complete","href":"/api-reference/oauth/complete-the-canvas-lms-api-authorization-handoff"}]},{"group":"Institutions","pages":[{"title":"Get institutions for LTI context","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/getInstitutionsForContextid","href":"/api-reference/institutions/get-institutions-for-lti-context"},{"title":"Create a Digital Twin for a Canvas course","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/createInstitutionForContextid","href":"/api-reference/institutions/create-a-digital-twin-for-a-canvas-course"}]},{"group":"SDK Launch","pages":[{"title":"Sign SDK launch parameters","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-sign","href":"/api-reference/sdk-launch/sign-sdk-launch-parameters"},{"title":"Verify SDK launch token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-verify","href":"/api-reference/sdk-launch/verify-sdk-launch-token"},{"title":"Course-wide Hide Pria for everyone toggle","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-hide","href":"/api-reference/sdk-launch/course-wide-hide-pria-for-everyone-toggle"},{"title":"A teacher disconnects a disabled Digital Twin from its Canvas course","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/auth/sdk-unlink-course","href":"/api-reference/sdk-launch/a-teacher-disconnects-a-disabled-digital-twin-from-its-canvas-course"}]},{"group":"Admin Accounts","pages":[{"title":"Get account by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/account/{id}","href":"/api-reference/admin-accounts/get-account-by-id"},{"title":"Update account","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/account/{id}","href":"/api-reference/admin-accounts/update-account"},{"title":"Transfer credits between account and institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/accountInstitution/{id}","href":"/api-reference/admin-accounts/transfer-credits-between-account-and-institution"},{"title":"Get list of account transfers","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/accountTransfers","href":"/api-reference/admin-accounts/get-list-of-account-transfers"},{"title":"Search and retrieve accounts","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/accounts","href":"/api-reference/admin-accounts/search-and-retrieve-accounts"}]},{"group":"Admin AI Models","pages":[{"title":"Create a new AI model","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/aimodel","href":"/api-reference/admin-ai-models/create-a-new-ai-model"},{"title":"Get AI model by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/aimodel/{id}","href":"/api-reference/admin-ai-models/get-ai-model-by-id"},{"title":"Update AI model","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/aimodel/{id}","href":"/api-reference/admin-ai-models/update-ai-model"},{"title":"Delete AI model","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/aimodel/{id}","href":"/api-reference/admin-ai-models/delete-ai-model"},{"title":"Get list of AI models","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/aimodels","href":"/api-reference/admin-ai-models/get-list-of-ai-models"},{"title":"Bulk soft-delete multiple aimodels","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/aimodels/bulk-delete","href":"/api-reference/admin-ai-models/bulk-soft-delete-multiple-aimodels"}]},{"group":"Admin Boards","pages":[{"title":"Grant or revoke Projects boards access on one membership","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/boards/access","href":"/api-reference/admin-boards/grant-or-revoke-projects-boards-access-on-one-membership"},{"title":"Who, in one account, has Projects boards access","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/boards/access/account/{accountId}","href":"/api-reference/admin-boards/who-in-one-account-has-projects-boards-access"}]},{"group":"Admin Feedbacks","pages":[{"title":"Get feedback by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/feedback/{id}","href":"/api-reference/admin-feedbacks/get-feedback-by-id"},{"title":"Update feedback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/feedback/{id}","href":"/api-reference/admin-feedbacks/update-feedback"},{"title":"Delete feedback","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/feedback/{id}","href":"/api-reference/admin-feedbacks/delete-feedback"},{"title":"Bulk soft-delete multiple feedbacks","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/feedbacks/bulk-delete","href":"/api-reference/admin-feedbacks/bulk-soft-delete-multiple-feedbacks"},{"title":"Search and retrieve feedbacks","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/feedbacks","href":"/api-reference/admin-feedbacks/search-and-retrieve-feedbacks"}]},{"group":"Admin Institutions","pages":[{"title":"Create a new institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institution","href":"/api-reference/admin-institutions/create-a-new-institution"},{"title":"Get a Digital Twin's settings","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/institution/{id}","href":"/api-reference/admin-institutions/get-a-digital-twins-settings"},{"title":"Update an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/institution/{id}","href":"/api-reference/admin-institutions/update-an-institution"},{"title":"Delete an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/institution/{id}","href":"/api-reference/admin-institutions/delete-an-institution"},{"title":"Generate about text for institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/generateAbout","href":"/api-reference/admin-institutions/generate-about-text-for-institution"},{"title":"Release a Digital Twin's credits to its account","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/freeInstitutionCreditsById/{id}","href":"/api-reference/admin-institutions/release-a-digital-twins-credits-to-its-account"},{"title":"Clone an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/cloneInstitution/{id}","href":"/api-reference/admin-institutions/clone-an-institution"},{"title":"Reassign an institution to a different account","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json patch /api/admin/institution/{id}/account","href":"/api-reference/admin-institutions/reassign-an-institution-to-a-different-account"},{"title":"Get agent workspace state for an instance","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/institution/{id}/agent","href":"/api-reference/admin-institutions/get-agent-workspace-state-for-an-instance"},{"title":"Make an instance an agent","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institution/{id}/agent/activate","href":"/api-reference/admin-institutions/make-an-instance-an-agent"},{"title":"Retry failed agent workspace provisioning","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institution/{id}/agent/retry","href":"/api-reference/admin-institutions/retry-failed-agent-workspace-provisioning"},{"title":"Disable agent workspace desired state","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institution/{id}/agent/disable","href":"/api-reference/admin-institutions/disable-agent-workspace-desired-state"},{"title":"Bulk soft-delete multiple institutions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institutions/bulk-delete","href":"/api-reference/admin-institutions/bulk-soft-delete-multiple-institutions"},{"title":"Retrieve list of institutions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institutions","href":"/api-reference/admin-institutions/retrieve-list-of-institutions"},{"title":"Get institution details by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/institution/{institutionId}","href":"/api-reference/admin-institutions/get-institution-details-by-id"},{"title":"Update an institution configuration","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/institution/{institutionId}","href":"/api-reference/admin-institutions/update-an-institution-configuration"}]},{"group":"Admin Questions","pages":[{"title":"Generate institution system prompt","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/generateInstitutionPrompt","href":"/api-reference/admin-questions/generate-institution-system-prompt"},{"title":"Analyze a prompt","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/analyzePrompt","href":"/api-reference/admin-questions/analyze-a-prompt"},{"title":"Retrieve institution questions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/institutionQuestions","href":"/api-reference/admin-questions/retrieve-institution-questions"},{"title":"Retrieve institutional assessment questions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/questions","href":"/api-reference/admin-questions/retrieve-institutional-assessment-questions"}]},{"group":"Admin Histories","pages":[{"title":"Delete multiple histories","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/deleteHistories","href":"/api-reference/admin-histories/delete-multiple-histories"},{"title":"Bulk soft-delete multiple history records","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/bulk-delete","href":"/api-reference/admin-histories/bulk-soft-delete-multiple-history-records"},{"title":"Retrieve conversation histories for admin users","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories","href":"/api-reference/admin-histories/retrieve-conversation-histories-for-admin-users"},{"title":"Retrieve detailed history record by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/history/{historyId}","href":"/api-reference/admin-histories/retrieve-detailed-history-record-by-id"},{"title":"Delete a specific history record","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/history/{historyId}","href":"/api-reference/admin-histories/delete-a-specific-history-record"},{"title":"Get weekly chart data for admin histories","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/weekly","href":"/api-reference/admin-histories/get-weekly-chart-data-for-admin-histories"},{"title":"Get time-series chart data for histories","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/timeline","href":"/api-reference/admin-histories/get-time-series-chart-data-for-histories"},{"title":"Get totals chart data for histories","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/totals","href":"/api-reference/admin-histories/get-totals-chart-data-for-histories"},{"title":"Get unique user count chart data","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/users","href":"/api-reference/admin-histories/get-unique-user-count-chart-data"},{"title":"Long-format per-user-per-period usage extract","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/user-stats","href":"/api-reference/admin-histories/long-format-per-user-per-period-usage-extract"},{"title":"Subagent efficiency over the turn trace (last 31 days)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/subagent-efficiency","href":"/api-reference/admin-histories/subagent-efficiency-over-the-turn-trace-last-31-days"},{"title":"Compare specific institutions side-by-side","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/cross-institution","href":"/api-reference/admin-histories/compare-specific-institutions-side-by-side"},{"title":"Get conversation model usage distribution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/model-distribution","href":"/api-reference/admin-histories/get-conversation-model-usage-distribution"},{"title":"Get tool usage and prompt cache census","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/tools","href":"/api-reference/admin-histories/get-tool-usage-and-prompt-cache-census"},{"title":"Get peak usage heatmap for conversations","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/histories/charts/heatmap","href":"/api-reference/admin-histories/get-peak-usage-heatmap-for-conversations"},{"title":"Lazy-fetch the bulk thinking and reasoning array for a single History record (admin)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/history/{id}/thinking","href":"/api-reference/admin-histories/lazy-fetch-the-bulk-thinking-and-reasoning-array-for-a-single-history-record-admin"},{"title":"Lazy-fetch the structured RAG-KAG retrieval segments for a single History record (admin)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/history/{id}/ragSearch","href":"/api-reference/admin-histories/lazy-fetch-the-structured-rag-kag-retrieval-segments-for-a-single-history-record-admin"}]},{"group":"Admin Charts","pages":[{"title":"Get chart by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/chart/{id}","href":"/api-reference/admin-charts/get-chart-by-id"},{"title":"Delete chart","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/chart/{id}","href":"/api-reference/admin-charts/delete-chart"},{"title":"Get list of charts","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/charts","href":"/api-reference/admin-charts/get-list-of-charts"}]},{"group":"Admin MCP Servers","pages":[{"title":"Create a new MCP server","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/mcpserver","href":"/api-reference/admin-mcp-servers/create-a-new-mcp-server"},{"title":"Get MCP server by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/mcpserver/{id}","href":"/api-reference/admin-mcp-servers/get-mcp-server-by-id"},{"title":"Update MCP server","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/mcpserver/{id}","href":"/api-reference/admin-mcp-servers/update-mcp-server"},{"title":"Delete MCP server","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/mcpserver/{id}","href":"/api-reference/admin-mcp-servers/delete-mcp-server"},{"title":"Get list of MCP servers","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/mcpservers","href":"/api-reference/admin-mcp-servers/get-list-of-mcp-servers"},{"title":"Test a connector and list its tools","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/mcpserver/test","href":"/api-reference/admin-mcp-servers/test-a-connector-and-list-its-tools"}]},{"group":"Admin Memory","pages":[{"title":"List memory parameters for a user, grouped by institution.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/memory/user/{userId}","href":"/api-reference/admin-memory/list-memory-parameters-for-a-user-grouped-by-institution"},{"title":"Bulk hard-delete memory parameters for a user (filter-aware).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/memory/user/{userId}","href":"/api-reference/admin-memory/bulk-hard-delete-memory-parameters-for-a-user-filter-aware"},{"title":"List shared memory parameters for an instance.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/memory/institution/{instId}","href":"/api-reference/admin-memory/list-shared-memory-parameters-for-an-instance"},{"title":"Bulk hard-delete shared memory parameters for an instance (filter-aware).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/memory/institution/{instId}","href":"/api-reference/admin-memory/bulk-hard-delete-shared-memory-parameters-for-an-instance-filter-aware"},{"title":"Hard-delete a single memory parameter.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/memory/{id}","href":"/api-reference/admin-memory/hard-delete-a-single-memory-parameter"},{"title":"Edit a single memory parameter (whitelisted fields only).","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json patch /api/admin/memory/{id}","href":"/api-reference/admin-memory/edit-a-single-memory-parameter-whitelisted-fields-only"}]},{"group":"Admin Sessions","pages":[{"title":"Get session by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/session/{id}","href":"/api-reference/admin-sessions/get-session-by-id"},{"title":"Soft-delete a session","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/session/{id}","href":"/api-reference/admin-sessions/soft-delete-a-session"},{"title":"Bulk soft-delete multiple sessions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/sessions/bulk-delete","href":"/api-reference/admin-sessions/bulk-soft-delete-multiple-sessions"},{"title":"Get session analytics charts","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/sessions/charts","href":"/api-reference/admin-sessions/get-session-analytics-charts"},{"title":"Search and retrieve active sessions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/sessions","href":"/api-reference/admin-sessions/search-and-retrieve-active-sessions"}]},{"group":"Admin - SSO Providers","pages":[{"title":"List SSO providers","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/ssoProviders","href":"/api-reference/admin--sso-providers/list-sso-providers"},{"title":"Create SSO provider","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/ssoProvider","href":"/api-reference/admin--sso-providers/create-sso-provider"},{"title":"Get SSO provider by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/ssoProvider/{id}","href":"/api-reference/admin--sso-providers/get-sso-provider-by-id"},{"title":"Update SSO provider","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/ssoProvider/{id}","href":"/api-reference/admin--sso-providers/update-sso-provider"},{"title":"Delete SSO provider","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/ssoProvider/{id}","href":"/api-reference/admin--sso-providers/delete-sso-provider"},{"title":"Bulk delete SSO providers","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/ssoProviders/bulk-delete","href":"/api-reference/admin--sso-providers/bulk-delete-sso-providers"},{"title":"Test SSO provider connectivity","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/ssoProvider/test/{id}","href":"/api-reference/admin--sso-providers/test-sso-provider-connectivity"}]},{"group":"Admin Assistants","pages":[{"title":"Bulk soft-delete multiple assistants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/assistants/bulk-delete","href":"/api-reference/admin-assistants/bulk-soft-delete-multiple-assistants"},{"title":"Retrieve filtered list of assistants","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/assistants","href":"/api-reference/admin-assistants/retrieve-filtered-list-of-assistants"}]},{"group":"Admin Users","pages":[{"title":"Search and retrieve users for admin management","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/users","href":"/api-reference/admin-users/search-and-retrieve-users-for-admin-management"},{"title":"Bulk-set the status of multiple users","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/users/bulk-status","href":"/api-reference/admin-users/bulk-set-the-status-of-multiple-users"},{"title":"Bulk soft-delete multiple users","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/users/bulk-delete","href":"/api-reference/admin-users/bulk-soft-delete-multiple-users"},{"title":"Live 24h cap-effectiveness analytics","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/users/cap-effectiveness","href":"/api-reference/admin-users/live-24h-cap-effectiveness-analytics"},{"title":"Get user details by ID (Admin only)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/user/{userId}","href":"/api-reference/admin-users/get-user-details-by-id-admin-only"},{"title":"Edit a user (Admin only)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/user/{userId}","href":"/api-reference/admin-users/edit-a-user-admin-only"},{"title":"Delete a user by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/user/{userId}","href":"/api-reference/admin-users/delete-a-user-by-id"},{"title":"Create a user, or add an existing account to a digital twin","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/user","href":"/api-reference/admin-users/create-a-user-or-add-an-existing-account-to-a-digital-twin"},{"title":"Merge a source user into a target user","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/users/merge","href":"/api-reference/admin-users/merge-a-source-user-into-a-target-user"}]},{"group":"Admin Entitlements","pages":[{"title":"Get user institutions by user ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/userInstitutionsByUserId/{userId}","href":"/api-reference/admin-entitlements/get-user-institutions-by-user-id"},{"title":"Bulk hard-delete multiple entitlement memberships","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/userInstitutions/bulk-delete","href":"/api-reference/admin-entitlements/bulk-hard-delete-multiple-entitlement-memberships"},{"title":"Get users associated with institutions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/userInstitutions","href":"/api-reference/admin-entitlements/get-users-associated-with-institutions"},{"title":"Update user institution attributes such as account type, status, etc.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json put /api/admin/userInstitution/{userId}","href":"/api-reference/admin-entitlements/update-user-institution-attributes-such-as-account-type-status-etc"},{"title":"Revoke a member's Canvas API token","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/userInstitution/{id}/canvasToken","href":"/api-reference/admin-entitlements/revoke-a-members-canvas-api-token"},{"title":"Delete a user institution by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/userInstitution/{id}","href":"/api-reference/admin-entitlements/delete-a-user-institution-by-id"},{"title":"Get users eligible to enroll in an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/userInstitutions/eligible","href":"/api-reference/admin-entitlements/get-users-eligible-to-enroll-in-an-institution"},{"title":"Enroll users into an institution","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/userInstitutions/enroll","href":"/api-reference/admin-entitlements/enroll-users-into-an-institution"}]},{"group":"Admin Payments","pages":[{"title":"List payments","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/stripePayments","href":"/api-reference/admin-payments/list-payments"}]},{"group":"Admin Tools","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/tools","href":"/api-reference/admin-tools/list-tools"}]},{"group":"Admin Uploads","pages":[{"title":"Get upload by ID","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/upload/{id}","href":"/api-reference/admin-uploads/get-upload-by-id"}]},{"group":"Admin Usage Limits","pages":[{"title":"Usage-vs-cap reporting (per-user) or account-wide at-limit counts.","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/usage-limits","href":"/api-reference/admin-usage-limits/usage-vs-cap-reporting-per-user-or-account-wide-at-limit-counts"}]},{"group":"Exports","pages":[{"title":"Queue an async full-dataset CSV export","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/exports","href":"/api-reference/exports/queue-an-async-full-dataset-csv-export"}]},{"group":"Admin","pages":[{"title":"List a target user's active MFA-trusted devices (admin)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/users/{userId}/trusted-devices","href":"/api-reference/admin/list-a-target-users-active-mfa-trusted-devices-admin"},{"title":"Revoke ALL trusted devices for a target user (admin)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json delete /api/admin/users/{userId}/trusted-devices","href":"/api-reference/admin/revoke-all-trusted-devices-for-a-target-user-admin"},{"title":"List Praxis Shield threat incidents for the caller's managed institutions","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/security/threats","href":"/api-reference/admin/list-praxis-shield-threat-incidents-for-the-callers-managed-institutions"},{"title":"Get a full Praxis Shield incident (with evidence + LLM assessments)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/security/threats/{incidentId}","href":"/api-reference/admin/get-a-full-praxis-shield-incident-with-evidence-+-llm-assessments"},{"title":"Update a Praxis Shield incident (status / severity / categories)","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json patch /api/admin/security/threats/{incidentId}","href":"/api-reference/admin/update-a-praxis-shield-incident-status-severity-categories"},{"title":"Get the live flagged history records cited by a Praxis Shield incident","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json get /api/admin/security/threats/{incidentId}/history","href":"/api-reference/admin/get-the-live-flagged-history-records-cited-by-a-praxis-shield-incident"},{"title":"Add a reviewer note to a Praxis Shield incident","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/security/threats/{incidentId}/notes","href":"/api-reference/admin/add-a-reviewer-note-to-a-praxis-shield-incident"},{"title":"Record a reviewer action intent on a Praxis Shield incident","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/security/threats/{incidentId}/actions","href":"/api-reference/admin/record-a-reviewer-action-intent-on-a-praxis-shield-incident"},{"title":"Suspend the user flagged by a Praxis Shield incident","deprecated":null,"version":null,"openapi":"/mdx/api-reference/admin/admin-api.json post /api/admin/security/threats/{incidentId}/suspend-user","href":"/api-reference/admin/suspend-the-user-flagged-by-a-praxis-shield-incident"}]}]}]},{"tab":"LXP","pages":[{"title":"LXP","href":"/mdx/lxp/introduction"}]},{"tab":"What's New?","pages":[{"title":"What's New?","href":"/mdx/changelog"}]}]},"title":"Embed your Digital Twin - praxis-ai","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-m8-xYP3Y.js","dist-1ms6tsT-.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-DMKzROTp.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","Frame-CIbhtp2j.js","DynamicMarkdown-CtpgKJwj.js","zoom-image-lightbox-CVZVK4hN.js","lightbox-handle-r17bVUz3.js"]}