Overview
Step 1: Create the org
Use your Partner API key to create an org for your customer.id and widget_token from the response — you’ll need both.
The
ai_instructions field is the AI profile — the system prompt that defines the agent’s personality, knowledge scope, and behavior. Write it as if you’re briefing a new support agent — who they work for, what they help with, and how they should behave.Step 2: Create an org API key
The Partner API creates the org, but to train the AI and manage the org, you need an org-level API key. Create one with your partner key:api_key from the response — this is the org-level API key you’ll use for all subsequent calls.
All subsequent API calls use the org key:
Step 3: Crawl the customer’s website
The fastest way to train the AI is to crawl the customer’s website. The crawler indexes every page into the knowledge base automatically.Step 4: Add custom training
Website content gives the AI factual knowledge. Training scenarios teach it how to behave — tone, policies, edge cases, and workflows."type": "BEHAVIORAL" for always-active instructions (tone, guardrails) that apply to every conversation:
Step 5: Invite users to the dashboard
Your customers need dashboard access to manage their inbox, handle human handoffs, and review conversations.Duplicate invitations to the same email are rejected. If a user is already a member of the org, the request returns an error.
Step 6: Embed the widget
Use thewidget_token from step 1 to embed the chat widget on your customer’s site.
Putting it all together
Here’s a complete example that provisions a customer from scratch:What’s next
After provisioning, the org is fully operational. The AI will:- Answer questions using crawled website content and training scenarios
- Hand off to humans when it can’t resolve an issue (configurable via Handoff settings)
- Re-crawl the website on the configured interval to stay up to date
Autopilot Settings
Configure which channels the AI operates on and its behavior mode.
Office Hours
Set business hours — the AI behaves differently outside office hours.
Tags
Auto-tag conversations for categorization and reporting.
Contacts
Manage customer contacts and their metadata.