Quick setup
Add a single script tag to your website’s HTML:YOUR_AGENT_KEY with the API key from your agent’s settings. The widget handles everything else.
Getting an API key
1
Open agent settings
Navigate to the agent you want to embed and open its settings.
2
Create an API key
In the API keys section, create a new key. Give it a descriptive name (e.g., “Company Website Widget”).
3
Set domain restrictions (recommended)
Restrict the API key to specific domains (e.g.,
yourdomain.com) so it can only be used from your website.4
Copy the key
Copy the API key and add it to the script tag URL’s
apiKey parameter.