We're still building things here! You might notice a few rough edges while we work on improvements. Help us improve by reporting bugs here.

Overview

An overview of the Assistant API and the embeddable widget integration.

What is this?

The Assistant platform provides an API for building conversation-driven assistants and an embeddable widget that can be placed on websites. The typical architecture separates secret-bearing server code from browser code by issuing short-lived widget tokens.

Core Concepts

  • Assistant: a configured conversational agent.
  • Session: a temporary context for a visitor interacting with an assistant.
  • Widget token: short-lived JWT for authenticating widgets in browsers.
  • Auth: JWTs or API key pair headers (X-API-Key + X-API-Secret).

How it works (high level)

  1. Server holds client secret and exchanges it for a short-lived widget token via /api/auth/widget-token.
  2. Browser receives token and initializes the widget; widget uses the token to call API endpoints.
  3. Server-side endpoints accept JWTs or API key header pairs and apply organization-level rate limits.

Next steps

Follow the Quickstart to embed the widget, then consult the API Reference for details.