Install the Widget in Mintlify
Mintlify can load custom JavaScript from your docs repository. Use that to add the Woes widget once, then let it appear across every page in your documentation site.The widget uses a browser-safe public widget key such as
trovw_..., trovw_agent_..., or woesw_.... Do not use a woesk_ REST API key, workspace secret, or widget identity secret in browser code.Before You Start
You need:- Access to your Mintlify docs repository.
- A Woes workspace or agent widget key from Settings → Keys.
- The production widget loader:
https://woes.dev/widget.js.
AI Agent Install Prompt
If you want Codex, Cursor, Claude Code, or another coding agent to install the widget for you, copy this prompt and run it from your Mintlify docs repository.Recommended Install
Create a JavaScript file in the root of your Mintlify docs content directory, next todocs.json or mint.json.
For example, create woes-widget.js:
YOUR_WIDGET_PUBLIC_KEY with the public widget key copied from your own Woes workspace or agent.
Deploy The Change
Commit and push the file to the Git repository connected to Mintlify.Direct Snippet
If your Mintlify setup supports adding a raw script directly, use the same snippet Woes provides in Settings → Channels → Live chat:Identify Signed-In Readers
Most public documentation sites can run anonymously. If your Mintlify docs are behind authentication and you can safely provide reader identity, callwindow.Woes("identify", ...) after your application receives identity from a backend endpoint.
Unsigned identity can help operators recognize a reader, but it is not trusted identity proof.
Cache-Control: no-store and should never expose WOES_WIDGET_IDENTITY_SECRET.
Browser code should retry window.Woes("identify", ...) after login/session load, when widget.js loads, on window focus, and when the page becomes visible again. Repeating the same verified identity is safe.
Test The Install
After Mintlify deploys:- Open the docs site in a private browser window.
- Confirm the Woes launcher appears.
- Open the widget and send a test question.
- In Woes, open Inbox and confirm the conversation arrives.
- If you used an agent widget key, confirm the conversation is labeled with the expected agent.
- If you used signed identity, confirm Woes shows the reader email/name and
identity_sourceofwidget-token.
