Chatbot Integration with WordPress
This guide will walk you through the process of integrating our chatbot with your WordPress site. After completing all steps, your customers will be able to communicate with the chatbot directly on your website.
Table of Contents
Choose your starting point
Widget configuration
I don't have a configured chatbot widget yet
Integration with WordPress
I already have a configured widget and want to add it to my WordPress site
Integration process overview
Chatbot integration with WordPress is a simple process consisting of several main stages:
- Chatbot widget configuration - creating and configuring the chatbot on our platform.
- WordPress plugin installation - downloading and installing the dedicated AI Chat Widget plugin.
- Getting the embed code - copying the code from our platform.
- Plugin configuration - pasting the code and configuring display settings.
- Integration testing - checking the proper functioning of the chatbot on WordPress site.
- WordPress admin panel with plugin installation privileges
- Account on our AI Chatbot platform with active subscription
- Configured chatbot widget
Chatbot widget configuration
The first step of integration is to create and configure the chatbot widget on our platform. This widget will then be embedded on your WordPress site.
If you don't have a configured chatbot widget yet, follow the instructions below. If you already have a configured widget, you can go directly to step 2.
After configuring the chatbot widget according to the guide, return to this page to continue the WordPress integration process.
Going to WordPress admin panel
After configuring the chatbot widget, the next step is to go to the WordPress admin panel, where we will install the dedicated plugin.
Detailed instructions:
- Open a web browser and go to your WordPress admin panel address. Usually it is https://yourdomain.com/wp-admin/ or https://yourdomain.com/wp-login.php.
- Log in to the admin panel using your credentials (username and password).
- After logging in, you will be redirected to the WordPress Dashboard, which is the main admin panel.
AI Chat Widget plugin installation
In this step, we will install the dedicated AI Chat Widget plugin, which will enable chatbot integration with your WordPress site.
Detailed instructions:
- In the WordPress sidebar find the option Plugins and click on it.
- In the Plugins section, click the button Add New located at the top of the page.
- Click the button Upload Plugin located at the top of the screen on the left side.
- Download the AI Chat Widget plugin by clicking the button below:
- After downloading the ZIP file, return to the WordPress panel and click the button Choose File.
- Select the downloaded AI Chat Widget plugin ZIP file.
- Click the button Install Now.
- After installation is complete, click the button Activate Plugin.
Solving common installation problems:
This error occurs when the plugin file size exceeds the limit set on the server.
Solution:
- Contact the server administrator and ask to increase the upload_max_filesize limit in the php.ini file.
- Alternatively, you can install the plugin manually via FTP:
- Extract the downloaded ZIP file on your computer
- Connect to the server via FTP
- Go to the wp-content/plugins/ directory
- Upload the extracted plugin folder
- Return to WordPress panel and activate the plugin in the Plugins section
This error occurs when WordPress does not have sufficient write permissions in the plugins directory.
Solution:
- Contact the server administrator and ask to grant appropriate permissions to the wp-content/plugins/ directory.
- Typical permissions for the plugins directory are 755 (rwxr-xr-x).
- Alternatively, install the plugin manually via FTP as described above.
Sometimes a plugin may be installed but does not appear on the plugin list.
Solution:
- Refresh the page with the plugin list.
- Check if the plugin is not hidden on subsequent pages of the list (if you have many plugins).
- Use the search function on the plugins page to find "AI Chat Widget".
- If the plugin is still not visible, try clearing the browser cache or logging in to the WordPress panel again.
Getting the embed code
After installing the plugin, we need to copy the chatbot embed code from our platform, which we will then paste into the WordPress plugin configuration.
Detailed instructions:
- Open a new tab in the browser and log in to your account on the AI Chatbot platform.
- Go to the section Dashboard in the navigation panel.
- Find the previously configured chatbot widget and click
Options and then Embed Code. - A window will appear with the JavaScript code for embedding the chatbot.
- Click the button Copy or select all the code and copy it to the clipboard (Ctrl+C or Cmd+C).
Plugin configuration in WordPress
Now we will return to the WordPress panel to configure the AI Chat Widget plugin and paste the copied embed code.
Detailed instructions:
- Return to the WordPress admin panel.
- In the sidebar menu find the newly added option AI Chat Widget and click on it. If you don't see this option, you can find the plugin by going to the Plugins section, then to Installed Plugins and searching for the plugin by name "AI Chat Widget". For the plugin to be visible in the sidebar menu, you need to click the Activate button.
- You will be redirected to the AI Chat Widget plugin configuration page.
- On the plugin configuration page find the section Chatbot embed code.
- Click the button Edit code and paste the previously copied embed code (Ctrl+V or Cmd+V). Confirm the entered script by clicking the Apply Changes button.
- Click the button Save Changes at the bottom of the page to save the changes.
Selecting pages to display chatbot
In this step, we will configure on which pages and subpages of your WordPress site the chatbot should be displayed.
Detailed instructions:
- On the AI Chat Widget plugin configuration page, scroll down to the section Display settings.
- Here you will find options to select pages where the chatbot should be displayed:
- On all pages - the chatbot will be displayed on every page and subpage of your site
- Only on homepage - the chatbot will be displayed only on the homepage
- On selected pages - the chatbot will be displayed on all checked pages
- Select the appropriate option according to your preferences.
- If you selected the option On selected pages, a list of your site pages will appear. Check the appropriate pages according to your preferences.
- After making your selection, click the button Save Changes, to confirm the configuration.
Integration testing
After configuring all necessary elements, it's time to test the integration and make sure the chatbot works as expected on your WordPress site.
Detailed testing instructions:
- Chatbot visibility test:
- Open your WordPress site in a new browser tab
- Go to one of the pages where you configured chatbot display
- Check if the chatbot icon is visible in the right place (usually in the bottom right corner)
- If you don't see the icon, refresh the page (sometimes this is necessary after the first installation)
- Chatbot interaction test:
- Click on the chatbot icon to open it
- Make sure the chatbot opens correctly and displays a welcome message
- Send a test message, e.g. "Hello" or "Good morning"
- Check if the chatbot responds to the message
- Test on different pages:
- Go to other pages of your site to check if the chatbot appears according to configuration
- Check both pages where the chatbot should be visible and those where it should not appear
- Test on different devices:
- Check how the chatbot looks and works on a mobile device (you can use browser developer tools to simulate a mobile device)
- Make sure the chatbot is useful and does not interfere with using the site on a small screen
Rate Limiting
Rate limiting is a mechanism that limits the number of messages a user can send to the chatbot in a specific time. This protects the system from excessive load and ensures fair use of resources.
How Rate Limiting works:
- Limit per user: Each user has their own limit (not shared with others)
- Time window: 60 seconds
- Automatic reset: Counter resets every minute
- Configurable limit: Each user can have a different limit set by the administrator
What this means for users:
When a user reaches their message limit within a minute, the chatbot will display a message informing them of the need to wait before sending another message. After a minute from the first message in the given time window, the counter automatically resets.
Increasing rate limiting limits:
If the standard rate limiting limits are not sufficient for your use case (e.g. for chatbots with very high traffic or specialized applications), you can request an increase.
Troubleshooting
Despite carefully completing all integration steps, sometimes problems with chatbot operation may occur. In this section we present solutions to the most common problems.
Common problems and their solutions:
Possible causes:
- The embed code was not correctly pasted or saved
- Plugin is not active
- Conflicts with other plugins or WordPress theme
- Display settings exclude the current page
- Browser cache or WordPress caching system problems
Solution:
- Make sure the AI Chat Widget plugin is active in the Plugins section
- Check if the embed code was pasted correctly in the plugin configuration
- Verify display settings and make sure the chatbot is configured to display on the page you are testing
- Clear browser cache and refresh the page
- If you use a caching plugin (e.g. WP Super Cache, W3 Total Cache), clear the page cache
- Temporarily disable other plugins to check if they are causing a conflict
Possible causes:
- Problems with connection to chatbot server
- Errors in chatbot configuration on AI Chatbot platform
- Expired access token or incorrect chatbot identifier
- Browser blocks (e.g. script blocking, Same-Origin policy)
Solution:
- Open the browser developer console (F12 or Ctrl+Shift+I) to check for JavaScript errors
- Log in to AI Chatbot platform and make sure the chatbot is active and working properly in the test environment
- Generate new embed code on the platform and update it in the plugin configuration
- Disable browser extensions that may block scripts (e.g. adblocker, tracking blockers)
- Check if your site uses HTTPS - the chatbot may require a secure connection
Possible causes:
- Conflicts with WordPress theme styles
- Responsive problems on mobile devices
- Custom CSS modifications on the page
- Incompatible JavaScript library versions
Solution:
- Check if the chatbot looks incorrect only on specific pages or on the entire site
- Use browser developer tools to identify CSS conflicts
- Contact the theme creator if you suspect the theme is causing problems
- Check the jQuery version used by your site - some older themes may use outdated versions
Possible causes:
- Plugin incompatibility with new WordPress version
- Changes in script loading method in new WordPress version
- Cache problems after update
- Errors in WordPress update
Solution:
- Check if the AI Chat Widget plugin is up to date - it may require an update to the latest version
- Clear all buffers and cache after WordPress update
- Disable and re-enable the AI Chat Widget plugin
- Check if new errors appear in the browser developer console
- Download the latest version of the plugin from our site and install it again
- If the problem persists, contact our support team