SDK 2.0
Migrating to SDK 2.0
Steps for migrating from SDK 1.0 to SDK 2.0
Steps to follow for migrating to SDK 2.0
Step 1
Replace the Mindset SDK 1.0 file name mindset-sdk.js
by mindset-sdk-2.js
Step 2
Add the <mindset-agent>
HTML tag in your HTML body
Step 3
Replace the javascript code that uses the SDK 1.0 methods (initApp()
and render()
or startAgentThread()
). Your existing script should look like this:
Replace the above with this javascript code which builds the <mindset-agent>
initial-data attribute:
Please check a full example of a SDK 2.0 front-end page here : Front-end full example