Best practices and known limitations
This page covers the best practices for implementation and the known limitations of the current build.
Last updated: 23/05/2025
Best practices
1. Ensure responsiveness for mobile devices
To guarantee optimal responsiveness and prevent the agent UI text from appearing too small on mobile devices, include the following HTML tag within the <head>
section of your webpage:
This meta tag ensures proper scaling and a good user experience across various devices.
2. Control embedded agent UI dimensions
You can manage the size and position of the agent UI by passing parameters to its style attribute. If necessary, you can also wrap the <mindset-agent>
tag within a parent <div>
container.
For example:
3. Customize embedded agent UI appearance
The <mindset-agent>
tag allows for customization of the following:
- Agent UI Width
- Agent UI Height
- Agent UI Background Color: This is only visible for a few milliseconds while the UI loads completely.
Example with background color:
You can also apply additional standard CSS parameters as needed:
4. Agent UI responsiveness for Videos and Segments
The agent UI is designed to be responsive and will adjust content based on the viewer’s screen size. When video content is played, a “Segment” area allows users to navigate between video segments.
The display of the segment area depends on the screen width:
- Right of the video: If the screen width is greater than 1056px.
- Below the video: If the screen width is less than 1056px.
Limitations
Our current implementation still limits the number of agents per page to one. We are working to remove this limitation as part of SDK 2.1 work and will let you know as soon as this limitation is lifted.