=== Doobert Chatbot ===
Contributors: DoobertChris
Tags: chatbot, ai, customer support, animal rescue, chatgpt
Requires at least: 6.3
Tested up to: 7.0
Stable tag: 1.8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.4
 
A WordPress plugin to allow a chatbot on the WordPress site that answers questions based upon their site content.
 
== Description ==
 
This plugin uses the power of ChatGPT LLM to act as a ChatBot answering questions based only on YOUR site’s pages and posts.    When users ask a question, the ChatBot will use only the information on your site to answer their questions.

Please note: This plugin uses the Doobert.com service as a back end to index your pages and posts, and translate them for multi-lingual ChatBot capabilities.  A Doobert organization account is required for using this plugin.  You can learn more about the Doobert.com service as well as read our terms of service and privacy policy at https://doobert.com/terms-conditions/ and https://doobert.com/privacy-policy/.   
 
== Installation ==
 
1. Upload the plugin folder to your /wp-content/plugins/ folder.
1. Go to the **Plugins** page and activate the plugin.
 
== Frequently Asked Questions ==
Q: What is Doobert.com?  Do I need an account to use the ChatBot?
A: Doobert.com is online software specifically designed for animal rescues and animal shelters to help them save more animals.  A Doobert.com organization account is required (it's free) to use the ChatBot.  Just head over to https://app.doobert.com/org-signup to get your free organization account.

Q: What information is being sent to Doobert.com?
A: The ChatBot will index your WP pages and WP post text content and send to your Doobert.com Organization account.  Your pages and post content text is indexed to send to ChatGPT API to answer your customers questions.  It is also translated into other languages you select in the ChatBot. 


= How to uninstall the plugin? =
 
Simply deactivate and delete the plugin.
 
== Screenshots ==
1. Shows ChatBot screen when opened.
 
== Changelog ==

= 1.8 =
* Chatbot widget now loads from the Doobert CDN via a small loader stub, so widget updates no longer require a plugin release.
* Hardened API token storage with AES-256-CBC encryption derived from WordPress auth salts and a random IV per write; existing installs migrate automatically on first load.
* AJAX handlers for token verification and dashboard sync now require manage_options capability plus a nonce, and respond with wp_send_json_*.
* Activation no longer blocks the admin — initial site sync is deferred to WP-Cron and runs ~10 seconds after activation.
* Site-content CSV is now built in-memory and streamed directly in the upload payload instead of being written to the plugin directory.
* Redesigned settings page with a two-column card layout and a Status panel showing API-key and training-data state at a glance.
* Resource Library FAQ strings are now translatable via the doobert-chatbot text domain.
* All admin links and API endpoints now point at production (app.doobert.com).
* Prefixed script/style handles to avoid collisions, removed dead commented code, an orphaned stylesheet, and IDE template artifacts.

= 1.7 =
*Offers a more optimized process for pet adoption and enables the creation of offline content listings.

= 1.6 =
*Integrated the Adopt-a-Pet chatbot module to streamline the process of discovering adoptable pets.
*Enabled seamless integration with Petco Love services for enhanced user interaction.

= 1.5 =
*Fixed broken hyperlink: Corrected broken hyperlink by updating 'chatbot-upgrade-premium' to 'chatbot-premium-plans' and modifying the base URL.

= 1.4 =
*Integrated PetCo love API for pet management functionality.
*Added support for seamless interaction with PetCo love services.
*Integrated Adopt-a-Pet chatbot module to help users discover adoptable pets effortlessly.
*Implemented intelligent prompts to collect user preferences including species, age, gender, hair length, and color for personalized results.

= 1.3 =
*Fixed broken hyperlink: updated "upgrade-chatbot" to "chatbot-upgrade-premium" for correct redirection.

= 1.2 =
*Ensured proper support for both HTTP and HTTPS to improve Azure AI responses.
*Enhanced website URL handling for seamless HTTP/HTTPS compatibility in Azure AI.

= 1.1 =
* Added new features and fixed some old bugs.
*Mobile Issues solved
*Resource Library Tab Added.
*User can view live design on admin area.
*Punctuation issues fixed.
*Admin can set position of Chatbot on front end.

= 1.0 =
* Initial plugin release.


==Upgrade Notice==

==Third-Party Service==

This plugin relies on the following third-party service:

- **Doobert Chatbot**: This plugin interacts with the Doobert chatbot service to provide AI-powered communication features. The chatbot service is hosted by Doobert, a third-party provider specializing in AI technologies for chatbots.

= Service Links =

- **Verify API token**: (https://app.doobert.com/api/v1/plugin/verify-token)
- **Send site content for indexing**: (https://app.doobert.com/api/v1/plugin/add-action)
- **Save chatbot settings**: (https://app.doobert.com/api/v1/chatbot/save_chatbot_setting)
- **Update WordPress post URLs**: (https://app.doobert.com/api/v1/chatbot/update_wordpress_url)
- **Chatbot widget script**: (https://cdn.doobert.com/chatbot.js)
- **Doobert Premium Plans**: (https://app.doobert.com/chatbot-premium-plans)

==Usage==

To use this plugin, users need to sign up for a Doobert account and obtain an access token. Please refer to the documentation provided by Doobert for more information on how to set up and configure the plugin.
