Prerequisites
- An AGO instance with at least one agent configured
- Admin access to get your base path URL and configure allowed domains
- Access to your website’s HTML or CMS
1
Get Your Base Path URL
- Navigate to Settings > Integrations
- Find your base path URL
- Add the domain where you will embed the widget to the allowed domains list
2
Add the Widget Script
Add the following code to your website, just before the closing Replace
</body> tag:YOUR-DOMAIN with your actual base path.3
Customize Appearance
You can customize the widget’s look and feel through the configuration object:For the full list of configuration options (position, size, colors, behavior), see Widget Configuration.
4
Set Up Authentication
Anonymous Users (default)
By default, the widget works without authentication. Users are identified by a session cookie. This is suitable for public-facing help widgets.Authenticated Users
To identify users and personalize responses, pass a signed JWT token:5
Test the Widget
- Load your website with the widget code added
- Click the widget button — it should open the chat interface
- Send a test message and verify the agent responds
- Check that the correct agent is handling the conversation
- Test in multiple browsers (Chrome, Firefox, Safari) and on mobile
Troubleshooting
6
Advanced -- Use the JavaScript SDK
For building custom chat interfaces with full control over messaging, events, and UI, use the JavaScript SDK (
@useago/sdk). The SDK connects to the same backend as the widget but gives you programmatic access to conversations, messages, and agent interactions.See SDK Integration for installation and usage, and Client Functions for registering browser-side functions that agents can invoke.Related
- Widget Configuration — full configuration reference
- Widget & SDK Authentication — authentication setup
- API Key Authentication — server-to-server authentication
- SDK Integration — JavaScript SDK reference
- Client Functions — programmatic widget control
