Chatbot shortcodes

On this page

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

ShortcodeWhat it showsFloating chat button on that page
[wpbot-page]The chat window inside the pageHidden
[chatbot-widget]The chat window as a box of a set widthHidden
[wpbot-click-chat]A link or button that opens the chatShown (or hidden with bot_visibility="hide")
[wpwbot]Nothing in the page; with template="…" the floating chatbot uses that template on this pageShown
[wpbot-floating-icon]The floating chat button where you place the shortcode–
[wpbot-skip-gretting]Nothing; starts a fresh chat on that pageShown
[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.

AttributeValuesDefault
intentAn intent to start with (see "Intents" below)empty (the normal greeting)
dark_designtrue for the dark lookempty
[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.

AttributeValuesDefault
widthPixels or percent, for example 400px or 100%400px
intentAn intent to start withempty
hud_designlite or dark for the Lightcycle design in light or darkempty (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.

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

AttributeValuesDefault
textThe link textClick to Chat
display_aslink or buttonlink
intentAn intent to start withempty (the start menu)
bot_visibilityshow or hide the floating chat button on this pageshow
bgcolorA colour: #3389a9, rgb(…) or a colour nameempty
textcolorA colourempty
[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.

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.
  • [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.

Got more questions?

Contact our ChatBot Support Heroes. They’ll provide you with all the information you need.

Contact us

Customer support is very responsive and professional. The script is awesome and with many features, including A.I. from Dialogflow. High quality.

Newpolaris

If have a 7 Stars won’t hesitate to rate that chatbot as a 7stars+++ Very helpful prompt team support Cannot find enough words express my happiness for purchasing that CHATBot Good Luck for you and your items

Ahsmartsolutions

© 2002- 2026 QuantumCloud

Black Friday! Use coupon code monster for a discount during checkout!

DISCOUNT!

X
Let's chat if you need any help finding the right product or need support.
FAQSend Us Email