Embedding an agent, Front-end script
mindset-sdk2.js
script
MINDSET-SDK-URL
with the URL provided by Mindset AI.<mindset-agent>
HTML tag
YOUR-AGENT-UID
with the AgentUid you want to embedauthToken
from your Back-end
mindset.init()
method
YOUR-APP-UID
with yoursParameter | Description |
---|---|
MINDSET-SDK-URL | This will be provided by the Mindset AI team. |
YOUR-BACKEND-API-RETURNING-AUTHTOKEN | your BE script URL which need in the request to get the user Email and which will ask the Auth Token to your Mindset app instance (see the Backend-end script below). |
YOUR-APP-UID | Your appUid is provided by mindset. |
YOUR-AGENT-UID | The agent Uid you want the user chat with. You can find that Agent Uid in the setting of the agent in the Agent Management Portal. |
theme
parameter to the mindset.init()
method.
Please read the Agent UI color theme documentation for more details about the available options.
<mindset-agent>
tag can be wrapped in any <Div>
element of your page.
But if you prefer to have a more flexible UI for your agent and you need to let the agent Ui always visible anywhere but without being intrusive, there is the option to enable the Flexible agent UI mode.
Please read the Flexible Agent UI documentation for more details.