What is the AMS SDK?
AMS SDK lets your tenants create, build, and manage custom AI agents directly inside your application—without you building the UI or managing hundreds of custom agent requests. Embed pre-built components that give your customers the power to create, configure, and manage their own agents in minutes.The AMS SDK is a premium feature that enables you to embed agent-building capabilities directly into your product.
Currently Available Components
Agent Management:- Agents Manager (
<mindset-agents-manager>) - List and manage AI agents - Agent Configuration (
<mindset-agent-configuration>) - Create and edit individual agents
- Contexts Manager (
<mindset-contexts-manager>) - List and manage knowledge contexts - Context Configuration (
<mindset-context-configuration>) - Create and edit individual contexts
How It Works
The AMS SDK uses custom HTML elements that you embed directly in your web pages:1
Load JavaScript
Load Mindset AI’s JavaScript via a
<script> tag2
Place Custom Elements
Place custom HTML elements in your page
3
Initialize the SDK
Call
window.mindset.init() to configure and initialize4
Components Render
Components render automatically with full functionality
Quick Start Example
Here’s a minimal working example:Available Components
Tab Control Works for Both Component TypesThe
displayTabs attribute works identically for both Manager and Configuration components:- Manager components (
<mindset-agents-manager>,<mindset-contexts-manager>) - Controls tabs in the built-in create/edit dialogs - Configuration components (
<mindset-agent-configuration>,<mindset-context-configuration>) - Controls tabs in the standalone interface
displayTabs to show only the tabs your tenants need, regardless of which component type you choose.1. Agents Manager - <mindset-agents-manager>
Displays a list of all agents for the tenant with the ability to:
- View all agents
- Create new agents
- Edit existing agents
- Delete agents
- Search and filter agents
| Attribute | Type | Description |
|---|---|---|
| displayTabs | string (optional) | Comma-separated list of tabs to display when creating or editing agents. Available tabs: Policy, Options, LLM, Contexts, Bias, Preview. Works the same as in <mindset-agent-configuration>. |
2. Agent Configuration - <mindset-agent-configuration>
Displays the agent creation or editing dialog for a single agent. This component is useful when you want to:
- Embed agent creation/editing in a form
- Control when and how the configuration interface appears
- Build your own custom list view UI
| Attribute | Type | Description |
|---|---|---|
| agentUid | string (optional) | UID of agent to edit. If omitted, creates new agent |
| onClose | string (optional) | JavaScript code to execute when configuration UI is dismissed |
| displayTabs | string (optional) | Comma-separated list of tabs to display. Available tabs: Policy, Options, LLM, Contexts, Bias, Preview |
Agent Configuration Tabs
The<mindset-agent-configuration> component displays multiple configuration tabs:
Always Displayed:
- Settings - Basic agent configuration (name, description, etc.)
- Personality - Agent behavior and tone
- Policy - Agent policies and guidelines
- Options - Additional agent options
- LLM - Language model configuration
- Contexts - Knowledge base associations
- Bias - Bias detection configuration
- Preview - Agent preview
Settings and Personality tabs are always displayed regardless of the
displayTabs value.3. Contexts Manager - <mindset-contexts-manager>
Displays a list of all knowledge contexts for the tenant with the ability to:
- View all contexts
- Create new contexts
- Edit existing contexts
- Delete contexts
- Search and filter contexts
| Attribute | Type | Description |
|---|---|---|
| displayTabs | string (optional) | Comma-separated list of tabs to display when creating or editing contexts. Available tabs: Prompts, Bias. Works the same as in <mindset-context-configuration>. |
What are Knowledge Contexts?
Knowledge Contexts are bundles of files, links, and data that agents can reference—essentially a dynamic library for your agents.- Contexts - Documents, articles, and structured knowledge
- Custom Prompts - Instructions that guide the AI’s responses
- Bias - Overview of bias within your Contexts
4. Context Configuration - <mindset-context-configuration>
Displays the context creation or editing dialog for a single knowledge context. This component is useful when you want to:
- Embed context creation/editing in a form
- Build your own custom list view UI
| Attribute | Type | Description |
|---|---|---|
| contextUid | string (optional) | UID of context to edit. If omitted, creates new context |
| onClose | string (optional) | JavaScript code to execute when dialog closes |
| displayTabs | string (optional) | Comma-separated list of tabs to display. Available tabs: Prompts, Bias |
Context Configuration Tabs
The<mindset-context-configuration> component displays configuration tabs:
Always Displayed:
- General - Basic context information (name, description, type)
- Prompts - Custom system prompts and instructions
- Bias - Allows you to analyze the bias within your content
Integration Patterns
Pattern 1: Manager Components Only (Recommended)
Use manager components for a complete, zero-configuration experience:Pattern 2: Configuration Component Integration
Use configuration components in forms if you want to create your own list view UI.Appendix: Complete Component Reference
Agent Components
<mindset-agents-manager>
| Feature | Details |
|---|---|
| Purpose | Complete agent management interface |
| Includes | List view, create, edit, delete |
| Attributes | displayTabs (optional) |
| Min Height | 600px |
<mindset-agent-configuration>
| Feature | Details |
|---|---|
| Purpose | Single agent create/edit interface |
| Includes | Configuration dialog only |
| Attributes | agentUid (optional), onClose (optional), displayTabs (optional) |
| Available Tabs | Policy, Options, LLM, Contexts, Bias, Preview |
| Always Shown Tabs | Settings, Personality |
| Min Height | 400px |
Context Components
<mindset-contexts-manager>
| Feature | Details |
|---|---|
| Purpose | Complete context management interface |
| Includes | List view, create, edit, delete |
| Attributes | displayTabs (optional) |
| Min Height | 600px |
<mindset-context-configuration>
| Feature | Details |
|---|---|
| Purpose | Single context create/edit interface |
| Includes | Configuration dialog only |
| Attributes | contextUid (optional), onClose (optional), displayTabs (optional) |
| Available Tabs | Prompts, Bias |
| Always Shown Tabs | General |
| Min Height | 400px |