Embed the widget
Add an AgentStack chat widget to a public site.
The embed is the supported way to place an AgentStack chat experience on a website. Configure the agent's public availability and deployment settings in the dashboard before adding the generated snippet to the page where visitors should find chat. Keep the widget configuration associated with the agent that owns its knowledge, prompt, channels, and handoff behavior.
Use the dashboard-provided snippet instead of reconstructing it from an agent identifier. This keeps the integration aligned with the currently supported widget runtime and makes later configuration changes easier to reason about. Test the integration on a real public-origin page, not only a local preview: browser restrictions, allowed domains, and the agent's public setting all affect whether visitors can start a conversation.
The widget is a browser integration, not a place to expose a REST API key. Server-side tasks such as creating agents, exporting contacts, or managing sources belong in your backend through the REST API. Continue with Widget control and Widget events when the host page needs to react to the embedded experience.