# Widgets on WordPress

> Chat, FAQ and Ask AI on WordPress with the ProseCaptain plugin, without pasting code.

On WordPress you add the widgets with the ProseCaptain plugin, without pasting code.

## Chat widget

1. In the WordPress admin open **Agent** → **Assistant** tab.
2. In the **Chat bubble** section tick **Enable**.
3. Pick a widget from **Select Widget**, or enter the **Widget ID** and **Widget Token** (in the app: **AI Agent** → your widget → **Installation**).
4. Set the **Theme**, the pages it shows on (**Show On**) and excluded pages (**Exclude Pages**, one path per line).
5. Click **Save Chat bubble**.

## FAQ and Ask AI widgets

Add a shortcode to a post or page:

```text
[prosecaptain_faq]
[prosecaptain_ask]
```

Both take an optional `theme` attribute:

```text
[prosecaptain_faq theme="dark"]
```

The shortcodes use the widget and token set in **Chat bubble**. Answers open in the chat window, so the chat widget must be enabled and shown on that page (check **Show On** and **Exclude Pages**).