The Adopt AI JavaScript SDK allows you to embed the Agent Experience directly into your web application. It connects the agents you’ve built in the Agent Builder to your live product environment—enabling real users to interact with your Copilot in production. This SDK powers everything from rendering the UI to personalizing responses and executing actions securely in the right user context.Documentation Index
Fetch the complete documentation index at: https://docs.adopt.ai/llms.txt
Use this file to discover all available pages before exploring further.
Why Use the SDK?
Before you deploy the Agent Experience to end users, you need to install the SDK in your web app. The SDK handles:- Initializing the Copilot with your org’s configuration
- Displaying the Sidebar or Spotlight (or both)
- Targeting users based on properties or rules
- Securing API communication through headers and tokens
- Supporting complex environments like SPAs or apps with CSPs
Integration Options
Adopt supports two ways to install the SDK →1. Script/CDN Integration (Recommended for Most Teams)
- Easiest setup—just add a script tag
- Automatically handles initialization
- Use the global
window.AdoptAIobject to trigger functionality
2. NPM Package Integration (Recommended for modern frameworks like React, Vue)
- Full control over when and how the SDK loads
- Better suited for TypeScript or Webpack/Vite-based projects
- You’ll manually import methods like
init(),boot(),shutdown()etc.