- Control the widget on your own page. The widget SDK and tracking events run in the browser, next to the chat widget.
- Get events out to your systems. Webhooks send messages, leads, and escalations to a URL you own.
- Manage your account from code or an AI agent. The API v2, the SDKs, the CLI, and the MCP server all act on the same account data.
Browser surfaces
The widget SDK and tracking events need the chat widget on your page. See Add SiteGPT to your website to install it.Widget SDK
Open and close the chat, send or prefill messages, add page context, sign in known visitors, and add CSS.
Tracking events
Send widget events such as
chat_opened and lead_submitted to Google Tag Manager, GA4, or your own code.Server-to-server events
Webhooks
SiteGPT sends a POST request to your URL for each message, lead, and escalation.
Account automation
The API v2, the SDKs, the CLI, and the MCP server all act on your account through API v2. Each one can do only what your dashboard role allows. They need the Growth plan or above. See Authentication. The A2A agent is different. It answers questions about SiteGPT and cannot access your account.API v2
A REST API for chatbots, content, conversations, leads, settings, and members. Includes an OpenAPI document.
TypeScript SDK
@sitegpt/sdk, a typed client for API v2.Python SDK
sitegpt, a client for API v2 that uses only the Python standard library.Go SDK
A client for API v2 in Go.
Convex component
@sitegpt/convex, for answers and content sync in a Convex backend.CLI
Manage chatbots from the terminal, in scripts, or through a coding agent.
MCP server
Connect AI assistants such as Claude or Cursor to your SiteGPT account.
A2A agent
Ask the SiteGPT support agent questions about SiteGPT from your own agent.
Which tool to use
Credentials
Each surface uses one kind of credential:
Authentication explains tokens, scopes, access levels, device login, and the legacy API key.