Chatbot with ChatGPT WordPress


Advanced Chatbot with ChatGPT for Intuitive Customer Interaction and Smart Search on WordPress. Quick interface for relevant results.

SmartSearchWP is a powerful natural language processing tool for websites. It offers relevant search results through an intuitive interface and customizable settings, enhancing user experience.

Please note that the chatbot will only use the context provided by the user in its responses.

Administrators can now customize the chatbot’s context by selecting which pages to include or exclude. This ensures that the chatbot only provides information that is relevant to your website.

The chatbot uses OpenAI as a third-party service to generate its answers.
You can find more information about OpenAI by following this link: and consult their privacy policy here:

Why Choose SmartSearchWP?

Intelligent Search: Understands user queries through natural language processing to provide relevant results.

Context Customization: Administrators can tailor the chatbot’s context for more accurate responses.

Easy to Install and Configure: Get up and running in minutes with our intuitive user interface.

OpenAI Integration: Powered by ChatGPT3.5 & ChatGPT4 for quick and natural responses.

Secure and Private: Only uses the context provided by the user, ensuring data privacy.

Responsive Support: Quick and effective technical support for all your queries.

Regular Updates: Stay up-to-date with frequent new features and improvements.

Wide Compatibility: Tested with the latest WordPress and PHP versions.

Comprehensive Documentation: Detailed guides and FAQs to help you get started.

Multilingual Support: Use SmartSearchWP globally with multiple language support.


  • Main interface when interacting with the chatbot.
  • Several settings available to modify and enhance your experience.


  1. Upload the directory plugin to the ‘/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the SmartSearchWP screen to configure the plugin base settings.


How do I activate the bot?

The bot will not appear in your website until you have activated it.
To activate the bot, you need to generate and activate the embeddings for the pages and posts you want to use, as well as the general settings.

General settings:
1. Go to the SmartSearchWP settings page.
2. Enter your chatGPT API key.
3. Modify the settings to your needs.
4. Save the settings.

How do I customize the chatbot’s context?

Generate and activate pages:
1. Go to the SmartSearchWP ‘Summaries’ page.
2. Click on the ‘Generate Embeddings’ button under the page or post you want to use.
3. Once their embeddings have been generated, click on the ‘Activate’ button under the page or post you want to use.
4. Repeat steps 2 and 3 for all the pages and posts you want to use.


فبروري 1, 2024
SmartSearchWP is a game-changer for WordPress sites! The advanced ChatGPT integration provides not just a smart search solution but also an intuitive customer interaction platform. It’s incredibly user-friendly, offering quick and accurate search results that greatly enhance site usability. The customizable chatbot functionality has elevated our customer support, providing real-time, relevant responses. Highly recommend for developers looking to upgrade their site’s functionality and user engagement. Five stars for making complex technology accessible and effective!
Read all 1 review

Contributors & Developers

“Chatbot with ChatGPT WordPress” is open source software. The following people have contributed to this plugin.


“Chatbot with ChatGPT WordPress” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Chatbot with ChatGPT WordPress” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Resolved an issue to SQL & XSS injection in the chatbot interface and user restriction to purge logs.


  • Resolved an issue where the answer stream was truncate.


  • Resolved an issue where the answer couldn’t be written in the interface due to empty chunks.


  • Resolved a problem where the Text-to-Speech function was incorrectly processing HTML and Markdown tags in the speech.
  • Introduced notifications within the admin panel to alert users about pending updates for addons.
  • Corrected a glitch causing the chat interface to scroll to the top upon submitting a prompt.
  • Addressed an issue encountered when viewing the chatbot on a WooCommerce product page.


  • Resolved a visual inconsistency issue with the Text-to-Speech (TTS) button on specific websites.
  • Introduced a feature that allows users to halt the Text-to-Speech function by clicking the button a second time after it has been activated.
  • Implemented a prevention mechanism to avoid the accumulation of Text-to-Speech tasks in the queue, enhancing the overall user experience.


  • The chat now includes built-in Text-to-Speech and speech recognition features! A new button, located to the left of the input field, has been introduced to capture and transcribe user’s spoken input. Additionally, each message can be audibly read out using the Text-to-Speech option.


  • Resolved an issue where existing CSS rules on a WordPress site could potentially override the visual style of the chatbot plugin.


  • The small notification bubble above the chat icon has been reinstated! It’s now compatible with the customization addon and will display correctly based on the position set within the addon.
  • We’ve eliminated the random number that used to appear on top of the chatbot icon, as the notification bubble now serves the same function.
  • The greeting message is now customizable! If you don’t alter them in the settings, it will default to the standard translations. This feature has also been implemented for the chatbot bubble.


  • Cleaned up contexts’ embeddings generation.
  • Prevent the user from regenerating embeddings when there is no need to.


  • Fixed a pagination issue inside the contexts’ interface, and only show contexts based on the current language if the user is using WPML.


  • Upgraded to gpt4-o from gpt-4 for faster answer generation and reduced token cost. This change is automatically applied within your plugin.
  • With gpt4-o, the generated answers can be up to three times longer compared to gpt4 and gpt-3.5-turbo.
  • Resolved an intermittent issue where the addons’ catalog was not properly receiving data from the website.
  • Fixed a problem with the premium license verification. It should now renew itself correctly. This issue did not affect your license but was not properly automated.
  • Added a clickable permalink next to the context’s title in the contexts’ interface for easy page access.
  • Integrated WPML support in the contexts’ interface to identify the page language, useful when dealing with pages of the same name in different languages.
  • Resolved an issue where Markdown was not always correctly applied when generating answers. This fix is also applied to the logs.
  • Introduced a filter in the context’s interface to display only posts or pages with the selected status, such as active or having embeddings.
  • Fixed an issue where the search box was not functioning correctly under certain conditions.
  • Corrected an issue where translations were not properly applied in the addons manager during premium license verification.


  • Rectified a situation wherein the image and title of an addon within the catalog were mistakenly perceived as buttons, rather than directing to the appropriate addon.
  • Resolved an issue occurring when the user’s API key lacked credit, resulting in improper verification of results.
  • Presenting a fresh look! The chat interface now boasts an enhanced default appearance compared to its predecessor.
  • Addressed an issue where the disclaimer occasionally extended beyond the confines of the chat frame, subsequently augmenting its size.
  • Implemented spacing between the input field and the send button for improved user experience.
  • Enhanced aesthetics and space efficiency by substituting the chat’s name with its icon when generating responses.
  • Optimized the ellipsis used as a loading indicator for improved functionality.


  • Premium addons are now available! You can access them via the “Addons” submenu within the admin page. There’s also a free license available for any potential free addons.
  • We’ve resolved an issue where the chatbot container would occasionally hide behind other elements. The container will now consistently maintain its priority.
  • Fixed an issue that could sometimes prevent the user from deactivating the plugin.
  • Added a verification for the required ‘allow_url_fopen’ server setting.


  • Added a new disclaimer below the chat interface to inform users that artificial intelligence can occasionally make mistakes. Users are advised to verify critical information.
  • Improved answer generation for a more seamless reading experience for users.
  • Fixed an issue that prevented links from being clickable while the chatbot was generating a response.
  • Resolved an issue where certain segments of words could be omitted during answer generation, leading to potential problems in the output.
  • Addressed an issue where certain characters were displayed as their HTML codes instead of their readable forms (e.g., € was displayed as €).
  • Corrected a problem where the general settings sliders did not update their values correctly upon page reload.
  • Enhanced visual appeal! The answers now support markdown and parse them for users to enjoy a better experience, such as bold or italics. This is also in effect inside the chat logs and the reporting.

  • Fixed an issue that could occur if the posts had a special encoding.

  • Fixed an issue with the counting of tokens when using GPT-4.

  • Added a verification for users that had updated to 1.1.8 before.

  • Fixed an issue that prevented some users from correctly updating the database.


  • Added a new validation inside the admin page to verify that the API key is valid.
  • Added a new validation inside the admin page to verify if your current API key is able to use gpt-4.
  • Added a reporting that the current API key has insufficient credits to be used.
  • Added a new validation inside the admin page to let the user know if the OpenAI API is having issues.
  • Added a toggle to enable/disable the chatbot on the front-end.
  • Fixed an issue with translations not being loaded correctly in the administration page.
  • Added a new color inside the administration interface for contexts that have been activated, but their embeddings are not “up to date” with the content of the page.
  • Added a legend on top of the contexts table to explain the different colors.
  • Added a new chat bubble next to the interface to better show the chatbot to the users. This bubble can be hidden directly, or 5 seconds after the page has been loaded.
  • Added an option to hide the chat bubble completely.
  • Added a new feature to receive, by mails, a PDF that will contain the conversations made by users in the last day or week. This report will run through a cron every day.

  • Fixed an issue with error reporting.


  • Fixed an issue with error reporting on some PHP versions.
  • Fixed an issue with the answer generation with bad formatting of posts.


  • Fixed an issue with bigger contexts using the wrong model.


  • Added missing vendor files.


  • Added a new feature to have the chatbot answer “word by word” instead of waiting for the full answer to be generated.
  • The new feature will also make the chatbot answer faster, especially on long answers.
  • The chatbot will no longer automatically scroll to the bottom when a new answer is generated. This allows the user to start reading the answer while it is being generated.
  • Further fixed the clickable links in the chatbot interface to prevent them from not being interpreted correctly.
  • Fixed an issue with the chatbot logs delete function on some PHP versions.
  • Fixed an issue with the chatbot interface in some resolutions.
  • Fixed an issue when holding a conversation with the chatbot for a long time.
  • Fixed an issue with the chatbot interface when the user is typing a message while the chatbot is generating an answer.
  • Fixed an issue when trying to find the most relevant page to answer a question on certain posts.
  • Fixed an issue when using the previous messages in the conversation when trying to generate an answer.


  • Fixed an issue with previous versions of PHP.
  • Updated minimum PHP version to 7.4.


  • Fix an issue with some model versions for retrieving the chatbot’s answer.


  • Fix issue with some PHP versions.


  • Answer time should now be faster.
  • Optimized the chatbot interface for better performance.
  • Improved the answer generation algorithm for better quality, especially with longer answers.
  • Added a new “reset conversation” button to the chatbot interface.
  • Introduced an “Expand/Compress” button to adjust the width of the chatbot interface.
  • Added colour to better differentiate activated and deactivated pages in the summaries page.
  • Fixed display issues with certain links and line breaks in the chatbot interface.
  • Fixed display issues with certain links and line breaks inside the chatbot logs admin page.


  • Fix issue on the chatbot interface on certain sites.


  • Add link to the SmartSearchWP website in the description of the plugin.


  • Add chatgpt Model selection in settings (chatgtp3.5-turbo or chatgpt-4)
  • Some CSS fixe


  • Initial release.