mindset.init() Method
Themindset.init() method initializes the Mindset AI SDK with your specific configuration.
Quick Start Guide
See the Agent Front-end documentation for implementation examples
Parameters
A function that returns a Promise resolving to the authentication token for the user. This token authenticates the user with the Mindset AI server.Only provide this parameter if your agent uses authenticated access (default mode).
The unique identifier for your Mindset AI application. This is provided by the Mindset AI team.
An object containing the color theme for the agent UI.
Theme Customization
See Agent UI Color Theme documentation
An object containing the custom font theme for the agent UI. Specify custom fonts for the agent’s text elements.
Font Customization
See Agent Fonts Customization documentation
Enable or disable voice interaction with the agent.
Voice Features
See Agent Voice documentation
Examples
<mindset-agent> Tag
The <mindset-agent> tag embeds a Mindset AI agent within your application.
Implementation Guide
See Agent Front-end documentation for setup details
Attributes
The unique identifier for the agent you want to embed.You can also pass an
agentSessionUid to load the agent with existing session context.Session Management
See Agent and Knowledge Context Provisioning
A question to pre-fill the chat input field when the agent loads. This question is also transmitted each time the user starts a new thread.
A stringified JSON object containing key-value pairs of variables to pass to the agent. These variables customize agent behavior, particularly for external source URLs.Format: Must be a stringified JSON object
<mindset-container> Tag
The <mindset-container> tag enables flexible UI mode for Mindset AI agents. It acts as a wrapper for the <mindset-agent> tag, allowing you to customize the appearance and behavior of the embedded agent.
Flexible UI Guide
See Agent Flexible UI documentation for implementation details