Mindset AI agents on SDK 3.0 use simpler visual option configuration and have additional configuration options. Please speak to your customer success manager to enable these options in your Agent Management Studio.
Important: SDK 3.0 Configuration Behavior
Before migrating, understand how SDK 3.0 configuration affects your existing agents:Options configuration is version-specific:
- Options configuration will only apply to agents deployed using SDK 3.0 and will not impact agents deployed with SDK 2.0. Feel free to experiment before updating live agents to use SDK 3.0.
- SDK 2.0 options will not be available while the Agent Management Studio is set to manage SDK 3.0 agents. If you need to make configuration changes to options for your active agents deployed using SDK 2.0, please speak with your customer success manager.
Migration Steps
1
Replace the SDK Script
Update the script source to use SDK 3.0:
2
Add the Agent HTML Tag
Add the Replace
<mindset-agent> tag to your HTML body:YOUR-AGENT-UID with your agent’s unique identifier.3
Remove SDK 2.0 Methods
Remove the JavaScript code that uses SDK 2.0 methods (
initApp() and render() or startAgentThread()).Old SDK 2.0 code to remove:4
Create Authentication Function
Wrap your existing authentication code into an async function:
This function fetches the authentication token from your backend and returns it to the SDK.
5
Initialize SDK 3.0
Pass your authentication function to the Replace
mindset.init() method:YOUR-APP-UID with your application UID.Complete Migration Example
Here’s what your complete SDK 3.0 implementation should look like:Need help with migration? Contact your customer success manager or reach out to [email protected].