Build a custom client around the API

Custom Integration

Build a custom client around the API instead of using the widget.

When to use this

  • You want a bespoke UI
  • You need server-side control of prompts or tools
  • You need tighter auth or logging

Basic flow

  1. Create a Site
  2. Store your API key server-side
  3. Send
    text
    POST /api/chat
    requests with
    text
    message
    and
    text
    session_id
  4. Render responses using a markdown library (e.g.,
    text
    marked
    )
See API Overview and Chat Endpoint for details.