Once you’ve installed the SDK and selected your components (Sidebar, Spotlight, or both), the next step is to configure how the agent behaves in your environment. This includes setting up: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.
- Your app and API URLs
- Secure headers for API access
- Organization branding and theming
Theme Configuration
Adopt automatically applies your organization’s brand theme to the Agent Experience. You can configure:- Primary and secondary colors
- Typography
- Component styling (e.g. form fields, buttons)
- Copilot trigger icon appearance
API Configuration
You can control the backend environment the agent communicates with by passing in:apiBaseUrl– Your API server domainappBaseUrl– Your frontend app’s root URLcopilotHeaders– Headers needed for authentication, tracking, or custom logic
boot() call.
Script/CDN Example:
NPM Package Example:
Updating Copilot Headers Dynamically
If your app uses expiring tokens (e.g. for session-based auth), you can update headers on the fly usingsetCopilotHeaders().
Script/CDN:
NPM Package:
Note - This is useful after a token refresh or when switching user permissions mid-session.