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

WhatUse it toGuide
Chat WidgetAdd a floating chat launcher to every page.Chat Widget embed
Center StageAdd an “Ask AI” message box at the bottom center of the page.Center Stage
IframeShow the full chat inside one page, such as /support.Iframe embed
JavaScript APIOpen, close, mount, or unmount the chat from your code.JavaScript API
Identity verificationTell the agent who a signed-in user is, securely.Identity verification
Contacts APISync customers so the agent knows their name, plan, and details.Contacts API
WebhooksReceive leads, form answers, and collected data on your server.Webhooks
API call actionsLet the agent call your API mid-conversation (order status, bookings).API call actions
ZapierConnect 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

HostUsed for
widget.assistrio.comThe widget script and stylesheet (assistrio-chat.js, assistrio-chat.css).
chat.assistrio.comChat runtime — the apiBaseUrl in your install code.
app.assistrio.comYour dashboard, hosted help pages, and iframe chats.
api.assistrio.comThe Contacts API and the Zapier API.

Was this page helpful?

Need help? Contact support — we reply within one to two business days.