=== CB AI Autoreply for Contact Form 7 === Contributors: hideyuki999 Plugin URI: https://creators-board.com/wp-plugin/cb-aacf7/ Tags: contactform7, cf7, chatgpt, ai, auto response Requires at least: 5.0 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 2.1.8 License: GPL2 License URI: https://www.gnu.org/licenses/gpl-2.0.html Integrates Contact Form 7 with ChatGPT to deliver intelligent, real-time responses and enhance user engagement through AI-powered automation. == Description == CB AI Autoreply for Contact Form 7 is a powerful WordPress plugin that bridges Contact Form 7 with OpenAI's ChatGPT API, enabling your website to provide intelligent, automated responses to form submissions. Transform your static contact forms into dynamic, AI-powered communication tools that enhance user experience and support conversion goals. = Key Features = * **Real-time AI Responses**: Automatically generate intelligent responses using ChatGPT API * **Seamless CF7 Integration**: Works directly with your existing Contact Form 7 forms * **Flexible Display Options**: Show AI responses via customizable shortcodes * **Email Integration**: Send AI-generated responses directly to users via email * **Multiple Form Support**: Configure different AI responses for different forms * **Data Management**: View, filter, and export form submission data * **API Support**: Compatible with GPT-3.5-turbo, GPT-4, and GPT-4-turbo OpenAI models = Premium Features Available = * **Advanced Prompt Templates**: Pre-built industry-specific response templates * **Conditional Logic**: Dynamic responses based on form field values * **CRM Integration**: Direct connection to popular CRM systems * **Advanced Analytics**: Detailed performance metrics and conversion tracking * **Priority Support**: Direct access to our technical team * **Custom Field Mapping**: Advanced data processing and routing options * **White-label Options**: Remove branding for agency use = How It Works = 1. User submits a Contact Form 7 form 2. Form data is sent to ChatGPT API with your custom prompt 3. AI generates an intelligent response based on the submission 4. Response is displayed on your website and/or sent via email 5. All interactions are logged for review and analysis = Use Cases = * **Customer Support**: Provide instant, intelligent responses to customer inquiries * **Lead Qualification**: Automatically categorize and respond to potential customers * **FAQ Automation**: Generate personalized answers to common questions * **Content Suggestions**: Provide relevant content recommendations based on user input * **Sales Support**: Offer product recommendations and pricing information * **Contact Management**: Streamline communication workflows = Requirements = * WordPress 5.0 or higher * Contact Form 7 plugin (active) * OpenAI API key (requires OpenAI account) * PHP 7.4 or higher = Third-Party Service Notice = This plugin connects to OpenAI's ChatGPT API to generate intelligent responses. **Data Transmission:** When a form is submitted through Contact Form 7, the following data is sent to OpenAI's servers: - Form field values entered by users - Custom prompts configured by site administrators - No personally identifiable information is stored by this plugin beyond the user's session **OpenAI Data Handling:** - Form data is processed by OpenAI to generate AI responses - OpenAI may temporarily store data according to their data retention policies - Users should review OpenAI's privacy policy for complete data handling details - API usage is billed according to OpenAI's pricing structure **Service Dependencies:** - Plugin functionality requires active internet connection - OpenAI API availability affects response generation - API key and account required from OpenAI platform Learn more about OpenAI's services: - Privacy Policy: https://openai.com/privacy/ - Terms of Service: https://openai.com/terms/ - API Pricing: https://openai.com/pricing/ - Data Usage Policies: https://openai.com/policies/usage-policies == Installation == = Automatic Installation = 1. Go to your WordPress admin panel 2. Navigate to Plugins > Add New 3. Search for "CB AI Autoreply for Contact Form 7" 4. Click "Install Now" and then "Activate" = Manual Installation = 1. Download the plugin files 2. Upload the entire `cb-aacf7` folder to `/wp-content/plugins/` 3. Activate the plugin through the WordPress admin panel = Configuration = 1. **Get OpenAI API Key**: Visit https://platform.openai.com/api-keys to obtain your API key 2. **Configure Global Settings**: Go to Contact > cb-aacf7 Settings 3. **Enter API Key**: Add your OpenAI API key in the global settings 4. **Set Up Forms**: Edit your Contact Form 7 forms and configure ChatGPT settings 5. **Test Integration**: Use the built-in connection test to verify your setup For detailed setup guides, advanced configuration options, and enterprise features, visit our comprehensive documentation. == Frequently Asked Questions == = Do I need an OpenAI API key? = Yes, you need an active OpenAI account and API key. Visit https://platform.openai.com/api-keys to sign up and obtain your key. OpenAI charges based on usage according to their pricing structure. = Is Contact Form 7 required? = Yes, this plugin is specifically designed to work with Contact Form 7. You must have Contact Form 7 installed and activated. = Which OpenAI models are supported? = The plugin supports all current OpenAI models including GPT-3.5-turbo, GPT-4, and GPT-4-turbo. You can select your preferred model in the settings. Premium version includes access to latest models and custom fine-tuning options. = How do I display AI responses on my website? = Use the `[ai_response]` shortcode anywhere on your site. Premium version offers additional shortcodes with advanced styling and conditional display options. = Can I customize the AI prompts? = Yes, basic prompt customization is available in the free version. The premium version provides advanced prompt templates, conditional logic, industry-specific presets, and A/B testing capabilities for optimal response quality. = How is my data handled? = Form submissions are temporarily sent to OpenAI for processing. The plugin stores session data locally and provides export functionality for data management. Premium version includes advanced data retention controls and GDPR compliance tools. Review OpenAI's privacy policy for details on their data handling. = What happens if the API is unavailable? = The plugin includes error handling to gracefully manage API failures. Forms will still function normally, but AI responses may not be generated during outages. Premium version includes failover options and backup response systems. = Can I use this with multiple forms? = Yes, you can configure different AI behaviors for each Contact Form 7 form on your website. Premium version offers bulk configuration tools and template sharing across multiple sites. = Is there a limit on form submissions? = The free version has no artificial limits - only OpenAI API usage applies. Premium version includes usage optimization features and cost management tools to help you get the most value from your OpenAI investment. = Do you offer support? = Community support is available through WordPress.org forums. Premium users receive priority email support with faster response times and direct access to our development team. == Screenshots == 1. Global settings page with API key configuration 2. Contact Form 7 integration with ChatGPT settings tab 3. AI response display on frontend 4. Data management interface with filtering options 5. Email preview with AI-generated content == Changelog == = 2.1.9 = * Enhanced database performance with intelligent caching system using wp_cache_get/wp_cache_set * Improved WordPress coding standards compliance with optimized SQL query handling * Fixed timezone-related issues by replacing date() with gmdate() for consistent UTC handling * Strengthened database security with proper prepared statement implementation * Added smart cache invalidation for real-time data consistency * Optimized memory usage and reduced database load for high-traffic websites * Enhanced plugin compatibility with WordPress.org repository standards * Improved plugin discoverability with optimized tags and metadata = 2.1.8 = * Enhanced security with comprehensive input sanitization and output escaping * Improved data validation across all user inputs * Strengthened nonce verification for form submissions * Enhanced SQL query security with proper prepared statements * Updated security standards compliance for WordPress.org requirements = 2.1.0 = * Enhanced HTML email support with complete tag preservation * Improved preview functionality for consistent display * Unified template processing for emails and previews * Better handling of user input HTML content * Performance optimizations for localStorage management = 2.0.2 = * Complete external JavaScript/CSS migration * Improved data management UI with advanced filtering * API key unified to global settings * Integrated menu structure for better user experience * Enhanced database operations and export functionality = 2.0.1 = * Added comprehensive data management features * Implemented export functionality (basic, conditional, personal data) * Enhanced email field handling with cb-aacf7-reserved-email support * Improved session management and data persistence * Fixed Contact Form 7 editing screen compatibility issues = 2.0.0 = * Major architecture overhaul with complete class restructuring * Implemented proper WordPress plugin standards * Added database versioning and upgrade system * Enhanced security with proper nonce handling * Improved error handling and logging = 1.4.1 = * Fixed JavaScript dependency management * Improved external script loading reliability * Enhanced admin panel functionality * Better error handling for API connections = 1.4.0 = * Added email field extraction and storage * Implemented basic data export functionality * Improved menu organization * Enhanced database structure = 1.3.0 = * Unified API key management to global settings * Improved settings interface * Enhanced form configuration options * Better error reporting = 1.2.x = * Database operations interface completion * Export functionality implementation * Improved data filtering capabilities = 1.0.0 = * Initial release * Basic Contact Form 7 and ChatGPT integration * Simple response display functionality * Email integration support == Upgrade Notice == = 2.1.8 = Important security update with enhanced input sanitization and output escaping. All users should update immediately to ensure optimal security standards. = 2.1.0 = This version includes significant improvements to HTML email handling and preview functionality. Premium users benefit from enhanced template processing, advanced styling options, and improved email formatting capabilities.