What You’ll Need Before You Start
- Access to your application’s codebase (or help from an engineer)
- Your organization license key, found in Settings → SDK Configuration inside the Adopt platform
- A staging or demo environment for safe testing (recommended)
Step 1: Choose Your Integration Method
Adopt supports two integration methods:Method | Best For | Notes |
---|---|---|
Script / CDN (Recommended) | Simple setups, fast testing, or marketing sites | Auto-initializes the SDK. Minimal setup needed. |
NPM Package | React/Vue/SPA apps with build tools | Gives full control over lifecycle and configuration. |
Step 2a: Script / CDN Setup
This is the easiest and fastest way to get started.1. Add the Widget Container
Place this wherever you want the Copilot to appear:2. Include the SDK Script
ReplaceYOUR_ORG_LICENSE_KEY
with your actual license key:
window.AdoptAI
global object
3. Boot the Agent
Trigger the agent for the active user:Step 2b: NPM Package Setup
Recommended for applications using modern frameworks or custom build pipelines.1. Install the SDK
2. Import and Initialize
**Important - ** init() must be called before boot() when using the NPM package. If skipped, the agent will not load.
Finding Your License Key
Your license key is a unique ID that connects your app environment to Adopt’s backend. You can find it in the Adopt dashboard → Settings → SDK Configuration tab. Copy this into your script tag (data-adopt-license-key
) or pass it to init()
if using the NPM package.