# Chatbot shortcodes

> Every shortcode that places the chatbot on a page, opens it from a link or button, or shows the visitor's cart and products, with all attributes.

Source: https://www.wpbot.pro/help/dev-chatbot-shortcodes/  
Section: Developers › Shortcodes and blocks  
Updated: 2026-11-26

These shortcodes put the chatbot inside a page instead of (or next to) the floating chat button. You find the same list, with your own custom intents, in **WPBot Pro → Help** and in **WPBot Pro → ChatBot**, section **Embed & Click to Chat**.

## Quick reference

| Shortcode | What it shows | Floating chat button on that page |
| --- | --- | --- |
| `[wpbot-page]` | The chat window inside the page | Hidden |
| `[chatbot-widget]` | The chat window as a box of a set width | Hidden |
| `[wpbot-click-chat]` | A link or button that opens the chat | Shown (or hidden with `bot_visibility="hide"`) |
| `[wpwbot]` | Nothing in the page; with `template="…"` the floating chatbot uses that template on this page | Shown |
| `[wpbot-floating-icon]` | The floating chat button where you place the shortcode | – |
| `[wpbot-skip-gretting]` | Nothing; starts a fresh chat on that page | Shown |
| `[wpwbot_app]` | The full-screen chat of the "wpwBot Mobile App" page, used by the embed code | – |
| `[wpwbot_products]` | The visitor's recently viewed WooCommerce products | – |
| `[wpwbot_cart]` | The visitor's WooCommerce cart | – |
| `[qcpress_user]` | The logged-in user's own past chat sessions | – |

The spelling `wpbot-skip-gretting` is the shortcode's real name; type it exactly like this.

## The chat inside a page: \[wpbot-page\]

Shows the full chat window in the page content. The floating chat button is not loaded on that page.

| Attribute | Values | Default |
| --- | --- | --- |
| `intent` | An intent to start with (see "Intents" below) | empty (the normal greeting) |
| `dark_design` | `true` for the dark look | empty |

```
[wpbot-page intent="Send Us Email"]
[wpbot-page dark_design="true"]
```

## A chat box: \[chatbot-widget\]

Shows the chat window as a box, for example in a sidebar or a column. The floating chat button is not loaded on that page.

| Attribute | Values | Default |
| --- | --- | --- |
| `width` | Pixels or percent, for example `400px` or `100%` | `400px` |
| `intent` | An intent to start with | empty |
| `hud_design` | `lite` or `dark` for the Lightcycle design in light or dark | empty (your normal design) |

```
[chatbot-widget width="100%" intent="Request Callback"]
```

Note

Old pages may still carry `gpt_assistant_id="…"`. It is accepted so the page keeps working, but it does nothing: OpenAI has shut down the Assistants API.

## A chat link or button: \[wpbot-click-chat\]

Prints a link (or button) that opens the chatbot, optionally at a given intent.

| Attribute | Values | Default |
| --- | --- | --- |
| `text` | The link text | `Click to Chat` |
| `display_as` | `link` or `button` | `link` |
| `intent` | An intent to start with | empty (the start menu) |
| `bot_visibility` | `show` or `hide` the floating chat button on this page | `show` |
| `bgcolor` | A colour: `#3389a9`, `rgb(…)` or a colour name | empty |
| `textcolor` | A colour | empty |

```
[wpbot-click-chat text="Ask us anything" display_as="button" intent="Faq" bgcolor="#3389a9" textcolor="#fff"]
```

Colours accept only plain colour values, so the shortcode is safe to use in content written by other editors.

Tip

To open the chat from any element of your theme without a shortcode, give it the class `wpbot-click-chat`. See [JavaScript: open the chatbot from your own buttons and scripts](/help/dev-javascript-api/).

## Intents

`intent` starts the conversation at a built-in flow or one of yours:

- Built in: `Faq`, `Email Subscription`, `Site Search`, `Send Us Email`, `Leave A Feedback`, `Request Callback`.
- Yours: the names of your custom intents and conversational forms. **WPBot Pro → Help**  lists the exact names on your site.

## Other chat shortcodes

- **`[wpwbot template="template-01"]`**  prints nothing in the content, but the floating chatbot on that page uses the template you name, even when the chatbot is otherwise turned off for that page. Without `template` it keeps the floating chatbot off that page.
- **`[wpbot-floating-icon]`**  prints the floating chat button at the place of the shortcode (attribute `template`, default `01`).
- **`[wpbot-skip-gretting]`**  anywhere in a page's content starts a fresh chat on that page: the conversation saved in the visitor's browser and the name they gave are cleared, and a new chat session begins. Useful on a landing page that should always start with the greeting.
- **`[wpwbot_app]`**  is used on the page WPBot creates for the embed code ("wpwBot Mobile App"). You do not add it yourself; see [Embed the chatbot on another website](/help/dev-embed-chatbot-on-other-sites/).
- **`[qcpress_user]`**  lists the logged-in user's own chat sessions (date, session, name, transcript). Guests see "No user logged in."

## WooCommerce shortcodes

`[wpwbot_products]` lists the products the visitor viewed recently, and `[wpwbot_cart]` shows their cart, in the chatbot's style. Both show nothing on a site without WooCommerce, and `[wpwbot_cart]` also shows nothing where the cart is not loaded (for example in the block editor's preview).

## Tips for page builders and caching

- Shortcodes work in the block editor's **Shortcode**  block, Elementor's **Shortcode**  widget and any builder that runs WordPress shortcodes.
- A page with one of the chat shortcodes loads the chatbot's scripts right away instead of waiting for the first click on the chat button.
- Use only one in-page chat (`[wpbot-page]` or `[chatbot-widget]`) per page.

## Availability

The chat shortcodes (`[wpbot-page]`, `[chatbot-widget]`, `[wpbot-click-chat]`, `[wpwbot]`, `[wpbot-floating-icon]`, `[wpbot-skip-gretting]`, `[wpwbot_app]`) and the WooCommerce shortcodes are in every WPBot Pro edition. `[qcpress_user]` works in every edition, including WPBot Free. In **WPBot Free**, `[wpwbot_products]` and `[wpwbot_cart]` show nothing and the other chat shortcodes are not available; Free shows the floating chatbot only.
