Integration guide

GoChat is the UI only. Your backend owns models, keys, and business logic.

Per-project settings

Open a project and use the Integration tab in the builder to set allowed domains, endpointUrl, connector type, and custom headers for that version.

Go to dashboard

Endpoints

Point endpointUrl in the widget JSON at your server. Never ship API keys in exported HTML/JS — minification is not security.

  • HTTP API — POST JSON {"message","history"}{"message"}
  • SSE — GET stream with ?message=; stream data: lines; finish with done event
  • WebSocket — send {"type":"message","message":"..."}; receive chunks then {"type":"done"}

Hosted URL

MVP: /public/chat/{public_id} on this deployment. Later: {uuid}.gochat.repkit.ai with DNS CNAME — not static IPs.

Export ZIP

Contains gochat.min.js (esbuild), gochat.css, README.md, and examples/*.md.