=== Aisk – AI Powered Chatbot | Support Assistant | Support Bot | Live Chat === Contributors: aisk, zrshishir, ahmmedsabbirbd Tags: chatbot, live chat, customer support, live support, woocommerce Requires at least: 5.0 Tested up to: 6.8 Stable tag: 2.0.2 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html AI-powered chatbot with WhatsApp & Telegram integration. Provides instant support from the KB, product recommendations, and order status. == Description == Aisk AI Chatbot is a powerful AI-powered customer support solution for WordPress and WooCommerce websites. It provides instant answers to customer queries, product recommendations, order status updates, and more. = Key Features = * 💬 AI-powered chat support * 📱 WhatsApp & Telegram integration * 🛍️ WooCommerce product recommendations * 📦 Order tracking and status updates * 📄 PDF document processing * 🔍 Smart product search * 📊 Real-time analytics * 🌐 Multi-language support = Requirements = * WordPress 5.0 or higher * PHP 7.4 or higher * WooCommerce (optional, for e-commerce features) == Installation == 1. Upload the plugin files to the `/wp-content/plugins/aisk-ai-chat` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Use the Settings->Aisk AI Chat screen to configure the plugin. 4. Enter your OpenAI API key in the settings. 5. Generate embeddings to create your AI knowledge base. 6. Configure WhatsApp and Telegram integrations (optional). == Frequently Asked Questions == = Do I need Composer to use the plugin? = No, the basic chat functionality works without Composer. However, advanced features like PDF processing require Composer dependencies. You'll see a notice in the WordPress admin if these dependencies are missing. = How do I install Composer? = 1. Visit [getcomposer.org/download/](https://getcomposer.org/download/) 2. Follow the installation instructions for your operating system 3. After installation, run `composer install` in the plugin directory = Which features require Composer? = The following features require Composer dependencies: * PDF processing and text extraction * Advanced embeddings handling * External API integrations * Advanced product recommendations All other features work without Composer. = Do I need OpenAI keys to use Aisk.chat? = Yes, Aisk.chat requires an OpenAI API key to function. This is because we leverage OpenAI's powerful language models to provide intelligent responses to customer inquiries. You'll need to create an OpenAI account and obtain an API key, which you'll enter in the Aisk dashboard during setup. = Can I train Aisk from my own knowledge base? = Absolutely. Aisk is designed to learn from your specific business content. During setup, the "Generate Embeddings" process analyzes your website pages, product descriptions, FAQs, and other content to create a customized knowledge base. = What happens when the AI can't answer a customer's question? = If Aisk couldn't find any answer in the provided knowledge or products, it will offer support information or ask if you would like to create a support ticket. Thus Aisk behaves super friendly when it comes to customer satisfaction and ease. == Screenshots == 1. Chat widget interface 2. Admin dashboard 3. Settings panel 4. WhatsApp integration 5. Telegram integration 6. Product recommendations 7. Order tracking 8. PDF processing 9. Analytics dashboard 10. Customization options 11. Knowledge base management 12. Integration settings 13. Support ticket creation == Changelog == = 2.0.2 = * Updated version number for maintenance release * Remove openai api key from requests to classify intent api = 2.0.1 = * Improved Composer dependency handling * Enhanced error logging for missing dependencies * Better initialization of admin class * More robust plugin activation process * Updated Composer autoloader check to be more graceful * Improved error handling during plugin initialization * Enhanced admin menu registration process * Better handling of plugin dependencies * Fixed issue with admin menu not appearing in WordPress dashboard * Resolved plugin initialization timing issues * Fixed silent failures in plugin activation * Improved error reporting for missing dependencies = 2.0.0 = * Major performance improvements in PDF processing * Enhanced text extraction and cleaning capabilities * Optimized memory management for large files * Improved batch processing for embeddings * Advanced caching system for processed content * Better error handling and recovery mechanisms = 1.2.3 = * Replaced discouraged `set_time_limit()` function with WordPress filters * Improved time limit handling in PDF processing and URL crawling * Enhanced error handling for time-sensitive operations * Fixed PHP warnings related to time limit management * Improved compatibility with strict PHP settings = 1.2.2 = * Fixed missing version parameter in wp_register_style() calls * Improved asset versioning for better cache control * Enhanced style loading reliability * Fixed product image sequential display issues * Added support for managing unsupported image extensions = 1.2.1 = * Removed PDF queue handler system * Simplified PDF processing workflow * Improved frontend component organization * Enhanced PDF functionality reliability * Cleaned up backend code = 1.2.0 = * Improved timezone handling across all environments * Enhanced date/time consistency in database and API * Better user timezone display in frontend * Fixed timezone-related issues in admin dashboard * Improved documentation for timezone handling == Upgrade Notice == = 2.0.2 = This is a maintenance release with version number updates. If you're using version 2.0.1, this update is optional. **IMPORTANT**: This release removes the OpenAI API key from requests to classify intent. = 2.0.1 = This update improves Composer dependency handling and plugin initialization. Includes enhanced error logging, more robust activation process, and fixes for admin menu visibility issues. Recommended update for all installations. = 2.0.0 = Major update with performance improvements for PDF processing and content handling. Includes optimized memory management, advanced caching, and improved text extraction. Better error handling and resource management for large files. = 1.2.3 = Improves time limit management by replacing set_time_limit() with WordPress filters. Enhances compatibility with strict PHP settings and improves reliability of long-running operations. == Development == This plugin uses modern development tools and follows WordPress coding standards. Here's how to set up the development environment: === Requirements === * Node.js 16+ and npm * PHP 7.4+ and Composer * WordPress development environment === Setup === 1. Clone the repository: ``` git clone https://github.com/your-username/aisk-ai-chat.git cd aisk-ai-chat ``` 2. Install dependencies: ``` # Install PHP dependencies composer install # Install Node.js dependencies npm install ``` 3. Development workflow: ``` # Start development server with hot reload npm run dev # Build for production npm run build # Watch for changes npm run watch ``` === Building for WordPress.org === To create a WordPress.org-ready zip file: ``` npm run build:wp ``` This will: 1. Clean the dist directory 2. Copy necessary files while excluding development files 3. Install production Composer dependencies 4. Create a zip file ready for submission == External Services == This plugin connects to several external services to provide its functionality: == OpenAI API == * **Purpose**: Used for generating AI responses and creating embeddings * **Data Sent**: Content from your website, user queries, custom knowledge base * **Links**: [Terms of Service](https://openai.com/policies/terms-of-use), [Privacy Policy](https://openai.com/policies/privacy-policy) == Telegram Bot API == * **Purpose**: Enables chat functionality through Telegram messenger * **Data Sent**: User messages, bot responses, product information * **Links**: [Terms of Service](https://telegram.org/terms), [Privacy Policy](https://telegram.org/privacy) == Twilio API == * **Purpose**: Enables WhatsApp integration for customer support * **Data Sent**: User messages, bot responses, product information * **Links**: [Terms of Service](https://www.twilio.com/legal/tos), [Privacy Policy](https://www.twilio.com/legal/privacy) == IPAPI.co == * **Purpose**: Used to detect user's location for chat list display * **Data Sent**: User's IP address * **Links**: [Terms of Service](https://ipapi.co/terms/), [Privacy Policy](https://ipapi.co/privacy/) == Support == Visit [aisk.chat](https://aisk.chat) for documentation and support. == Privacy Policy == This plugin collects and processes data as described in the External Services section above. All data transmission is done securely using HTTPS. You can control what data is sent by: 1. Configuring which content types are included in the knowledge base 2. Managing integration settings in the plugin dashboard 3. Using the privacy settings to control data collection == License == This project is licensed under the GPL-2.0+ License - see the LICENSE file for details. Developed with ❤️ by [Aisk.chat Team](https://aisk.chat)