SDK Reference
Customer Agent browser SDK surfaces, methods, options, and events.
Customer Agent exposes independent conversation clients and an optional Messenger for host pages and applications: open it, close it, pass identity and context, read support and interview state, resolve sessions, and subscribe to events.
These pages are reference-first. They describe the public contract with enough detail for a developer or AI assistant to plan an integration: entrypoints, options, method signatures, event payloads, return values, and direct effects.
Start Here
- Script entry:
window.CustomerAgent - ESM entry:
@customer-agent/sdk - Headless client: client lifecycle, message state, sending, and subscriptions
- Options:
CustomerAgentWidgetOptions - Methods:
boot,update,show,hide,toggle,shutdown,identify,setContext,on,getState,getSession,getSupportState,getInterviewState,getInterviewSession,ensureInvitation,startInterview,startInvitation,chooseInvitation,sendInterviewMessage,loadInterviewReward - Identity and context:
CustomerAgentUser,CustomerAgentContext,SetContextOptions - Events: event names and payloads
- Support and interview sessions: support/interview state, targets, and session methods
- React: React hook exports
- AI docs:
llms.txt,llms-full.txt, and markdown endpoints
SDK imports have no server-side side effects. Methods that control the Messenger are browser behavior.