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.

  1. Sign in at app.prosecaptain.com.
  2. Open AI Agent and choose a widget (or create one).
  3. Go to the Installation tab.
  4. The Embed Code card has ready-made code with data-widget-token (the token) and data-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.