Add the widget
Copy your agent ID from the Agents dashboard, then paste the following snippet into your HTML:YOUR_AGENT_ID with the ID shown on your agent’s overview page. The widget loads asynchronously and does not block page rendering.
Where to find your agent ID
1
Open the dashboard
Go to the Agents section in your XUNA AI dashboard.
2
Select your agent
Click the agent you want to deploy.
3
Copy the agent ID
The agent ID appears on the Overview tab. It looks like
agent_7101k5zvyjhmfg983brhmhkd98n6.Example: static HTML page
Here is a minimal complete HTML page with the widget embedded:Example: WordPress or CMS
If your CMS lets you inject HTML into the<body> or use a custom HTML block, paste the same two-line snippet. No server-side code is needed.
Private agents
By default, the widget uses the public agent endpoint. If your agent is private, you must supply a signed URL instead of anagent-id. Generate the signed URL on your server (see Authentication) and pass it to the widget:

