Get Started
Developer overview
Developer docs for Assistrio: embed the chat widget, control it with JavaScript, verify signed-in users, sync contacts by API, and receive webhooks.
Most teams launch Assistrio without writing code: copy the install code from your agent's Deploy page and paste it into your site. These guides are for when you want more control — opening the chat from your own buttons, telling the agent who a signed-in user is, syncing customer data, or sending leads to your own systems.
Building blocks
| What | Use it to | Guide |
|---|---|---|
| Chat Widget | Add a floating chat launcher to every page. | Chat Widget embed |
| Center Stage | Add an “Ask AI” message box at the bottom center of the page. | Center Stage |
| Iframe | Show the full chat inside one page, such as /support. | Iframe embed |
| JavaScript API | Open, close, mount, or unmount the chat from your code. | JavaScript API |
| Identity verification | Tell the agent who a signed-in user is, securely. | Identity verification |
| Contacts API | Sync customers so the agent knows their name, plan, and details. | Contacts API |
| Webhooks | Receive leads, form answers, and collected data on your server. | Webhooks |
| API call actions | Let the agent call your API mid-conversation (order status, bookings). | API call actions |
| Zapier | Connect leads and answers to thousands of apps without code. | Zapier |
IDs and keys
- Agent ID — public. It goes in the install code and tells the widget which agent to load. Find it on the agent's Deploy page.
- Secret key — per agent, private. Used only on your server to sign users for identity verification. Shown on the Deploy page; you can rotate it.
- API key — per workspace, private, starts with
ak_. Used for the Contacts API and Zapier. Create one under Workspace Settings › API keys. - Webhook secret — per webhook, private, starts with
whsec_. Used to verify that a webhook request came from Assistrio.
Important
Never put a secret key, API key, or webhook secret in browser code, HTML, or your repository. Read them from environment variables on your server.
Hosts
| Host | Used for |
|---|---|
widget.assistrio.com | The widget script and stylesheet (assistrio-chat.js, assistrio-chat.css). |
chat.assistrio.com | Chat runtime — the apiBaseUrl in your install code. |
app.assistrio.com | Your dashboard, hosted help pages, and iframe chats. |
api.assistrio.com | The Contacts API and the Zapier API. |
Was this page helpful?
Need help? Contact support — we reply within one to two business days.
