Widgets and the widget API authenticate with the workspace token (widget_token). The token is shared by every widget in the workspace; you point to a specific widget with its id.
- Sign in at app.prosecaptain.com.
- Open AI Agent and choose a widget (or create one).
- Go to the Installation tab.
- The Embed Code card has ready-made code with
data-widget-token(the token) anddata-widget-id(the widget id).
Security
The widget token is visible in your page source, because the widget runs in the visitor’s browser. It only allows chatting with your workspace’s assistant. The content generation API uses a separate token, described in the Article API section.