Cloud
Messaging Channels
Web Chat
Adding to your website
WordPress

Embedding the Web Chat in a Wordpress website

Integration channels

Prerequisites

  1. A Wordpress (opens in a new tab) website with a Business Plan upgrade for accessing WPCode (opens in a new tab) plugin to add custom scripts.
  2. A Botpress (opens in a new tab) account with an active bot.

Installing WPCode Plugin in Wordpress

WPCode plugin

  1. Log in to your Wordpress (opens in a new tab) dashboard.
  2. Go to WPCode (opens in a new tab) and click Install and activate.
  3. Once activated, you'll notice a new menu item labeled Code Snippets on your WordPress dashboard's left-hand sidebar.

Adding the Botpress Web Chat Script

WPCode plugin

  1. Log in to your Botpress (opens in a new tab) account and navigate to your bot's Integrations tab.
  2. Click on the Webchat tile and copy the Embedded script from the Pre-configured tab.
  3. In the WPCode dashboard, navigate to the Code Snippets menu item and click Headers and Footers.
  4. Paste the Embedded script in the Body section and click Save Changes.

Testing the Integration

WPCode plugin

  1. Navigate to your Wordpress website and refresh the page.
  2. You should see the Botpress Web Chat widget on the bottom right corner of your website.