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