Website Embed
Configuration reference
Every option for window.AssistrioChatConfig and AssistrioCenterStageConfig — agent ID, API base URL, launcher position, user identity, and more.
The install code sets a config object before the script loads. window.AssistrioChatConfig configures the Chat Widget; window.AssistrioCenterStageConfig configures Center Stage and takes the same fields (except position). Appearance — colors, avatar, welcome message, suggested questions — is set in the dashboard, not here.
Fields
| Field | Type | Description |
|---|---|---|
agentId | string, required | Your agent's ID, from the Deploy page. (botId is an older name for the same thing.) |
apiBaseUrl | string, required | The chat runtime: https://chat.assistrio.com. |
position | "right" · "left" | Which corner the launcher sits in. Default "right". Chat Widget only. |
userId | string | Signed-in user's ID (max 200 characters). Use with userHash. See Identity verification. |
userHash | string | HMAC-SHA256 of userId with your secret key, as hex — made on your server. |
persistChatSession | boolean | Keep the visitor's chat in localStorage so it continues across page loads. Default true. |
widgetStrings | object | Override the widget's built-in English labels. |
analyticsEnabled | boolean | Set false to turn off optional widget analytics. Chat, feedback ratings, and conversation details keep working. Default true. |
window.AssistrioChatConfig = {
agentId: "YOUR_AGENT_ID",
apiBaseUrl: "https://chat.assistrio.com",
position: "left",
persistChatSession: true,
// Signed-in users only — both values come from your server:
userId: "user_123",
userHash: "3f1c…e9a2"
};If agentId or apiBaseUrl is missing, or position isn't "left" or "right", the chat stays hidden and an [Assistrio Chat] warning explains why in the browser console.
Note
Older install codes may include accessKey. It's no longer needed — the agent ID alone loads the chat — and you can remove it.
Was this page helpful?
Need help? Contact support — we reply within one to two business days.
