This guide walks through the complete lifecycle of setting up a customer org — from creation to a fully trained AI agent handling live conversations.Documentation Index
Fetch the complete documentation index at: https://docs.open.cx/llms.txt
Use this file to discover all available pages before exploring further.
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: Grant dashboard access
Your customers need dashboard access to manage their inbox, handle human handoffs, and review conversations. Use Login Links to give them frictionless access — no emails, no forms, no org picker.url. If no account exists, one is created automatically. The user lands directly in the dashboard with your partner branding (logo, app name) — not the OpenCX defaults.
Login links expire after 15 minutes and are single-use. Generate a new link each time a user needs to access the dashboard from your platform.
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.