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.AdoptAI
object 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.