Wordpress

Embedding the Web Chat in a Wordpress website

Prerequisites

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

Installing WPCode Plugin in Wordpress


  1. Log in to your Wordpress dashboard.
  2. Go to WPCode 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


  1. Log in to your Botpress 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


  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.