Chat Widget

Add the chat to your site

Place the Promptor chat on any page or post with the Promptor Chat block or the [promptor_search] shortcode, or show it as a site-wide popup.

You add the Promptor chat to a page with the Promptor Chat block or with a shortcode. The chat then appears inline, as part of the page content. With Pro you can also show it as a floating popup on every page.

Before you add the chat, sync at least one knowledge base, so the assistant has something to answer from. See Quick start.

Add the chat with the block editor

The quickest way is the Promptor Chat block, in Free and Pro.

  1. Open the page or post in the WordPress editor.
  2. Click the + (block inserter) where the chat should go.
  3. Search for Promptor Chat and add the block. The editor shows a preview of the chat.
  4. In the block settings, under Knowledge base › Answer from, choose the knowledge base.
  5. Click Update or Publish.
  6. View the page.

You see the chat with its header ("AI Assistant" by default, in your site's language), your example questions and the message box. For details, see Add the chat with the Gutenberg block.

Use a Shortcode block instead

You can also add a Shortcode block and paste the shortcode:

[promptor_search]

Add the chat in other editors

  • Classic Editor: paste [promptor_search] directly into the content where the chat should appear.
  • Page builders: add the builder's shortcode element and paste [promptor_search] into it.
  • Widget areas: add a Shortcode block (or the Promptor Chat block) to the widget area under Appearance › Widgets.

Choose a knowledge base

[promptor_search] uses the Default knowledge base. To use another knowledge base (Pro), add its key with the context attribute:

[promptor_search context="support"]

The easiest way to get the right shortcode is to copy it from the knowledge base's card on Knowledge Bases › Manage. See Create and manage knowledge bases. With the block, you pick the knowledge base from a list instead.

If the context value doesn't match an existing knowledge base exactly, the shortcode outputs nothing and the page shows no chat. Check the spelling, and remember that keys are lowercase.

context is the only attribute the shortcode accepts. For other shortcode names and details, see the shortcode reference.

How the inline chat fits on the page

  • The chat takes 75% of the screen height, at least 500 pixels and at most 800 pixels.
  • It fills the width of the column you put it in. For a narrower chat, place it in a narrower column or group.
  • Its styles are isolated from your theme, so your theme's CSS doesn't change its look. Change colors and texts under Settings › UI Settings instead. See Customize the chat's appearance.
  • Promptor loads its scripts and styles only on pages that contain the chat, so other pages are not slowed down.

A dedicated page such as "Ask us anything" or "Get a quote" works well for the inline chat. Link to it from your menu and from your service pages.

Show the chat on every page (Pro)

The floating popup shows a chat button in the bottom corner of every page. It's part of Promptor Pro. Compare plans.

Set it up under Settings › UI Settings › Chat Widget Mode, and choose the pages it appears on under Settings › Engagement. See Show the chat as a floating popup.

If the chat doesn't appear

  • Clear your caching plugin's cache and your browser cache, then reload. See Caching plugins.
  • Check that the shortcode is in a Shortcode block, not a paragraph with formatting around it. Or use the Promptor Chat block.
  • Check the context value.
  • See The chat doesn't appear or looks wrong.

Still need help?

Our support team answers every ticket. Tell us your WordPress version, Promptor version and what you see.

Read the FAQSee what changed in each version

Open a support ticket

All help topics