Documentation

Everything you need to connect a website and ship an assistant.

1. Create a project

Sign up, then create a project for each website. A project holds the assistant configuration, knowledge sources and conversations.

2. Add knowledge

You can feed the assistant from three source types:

Re-crawling a source replaces its previously indexed content.

3. Embed the widget

Paste this snippet before </body>:

<script>
  window.TalkToSiteConfig = {
    project: "pk_live_…",
    api: "https://api.your-domain.com"
  };
</script>
<script src="https://cdn.your-domain.com/loader.js" async></script>

The embed key is public. Configure the domain allowlist in project settings to restrict where the widget may run.

API reference

Authentication

Dashboard and admin endpoints use Authorization: Bearer <access_token>. Access tokens are short-lived; use POST /api/auth/refresh to rotate.

Widget endpoints

Dashboard endpoints

Security