# In-app help widget

Source: https://helpcenterkit.com/docs/en/widget

Paste this before `</body>` on every page of your app (copy the exact line, with your knowledge base filled in, from *Portal settings → In-app help widget*):

```html
<script src="https://helpcenterkit.com/widget.js" data-kb="your-kb" async></script>
```

A help button appears in the corner. It opens a panel with:

- **Suggested articles** for the page the user is on, picked from the page address,
- **Search** across your published articles,
- **Ask AI** with cited answers,
- a **Contact us** link (set it under *Look and feel → Contact link*) when nothing helps.

The widget uses your brand colour and keeps its styles separate from your app, so it never breaks your layout.

## Private knowledge bases

For a private knowledge base, sign the user in with [JWT sign-in](/docs/en/private-kbs-sso) first; the widget then works for them.
