Releases: rajanvijayan/ai-agent-for-website
Releases · rajanvijayan/ai-agent-for-website
Release list
AI Agent for Website v1.10.0
What's Changed
Added
- AI-Powered Spam Protection: Comprehensive spam detection and user blocking system
- AI validation of chat messages using Groq API to detect spam content
- Automatic detection of spam patterns: promotional content, malicious links, adult content, cryptocurrency/NFT spam, money scams, and abuse
- User blocking after configurable spam threshold (default: 3 attempts)
- Configurable block duration (default: 24 hours)
- Admin dashboard for managing blocked users with unblock/delete options
- Spam logs with message previews and detection reasons
- Statistics dashboard showing blocked users, spam attempts, and flagged users
- Settings page for configuring spam protection behavior
- IP-based blocking to prevent circumvention via new sessions
- Activity log integration for spam events
- Notification system integration for admin alerts on user blocks
- Fallback to pattern-based detection when AI is unavailable
- 65+ unit tests for spam detection functionality
- Email Notification Enhancements
- Added "Send Test Email" button in Notifications settings tab
- REST API endpoint
/test-emailfor testing email configuration - Admins can now verify email notifications are working correctly
- Test email logs activity for tracking purposes
- Added
.cursorrulesfile for Cursor AI coding assistant instructions- Mandatory checks for CI/CD, PHPCS, and WordPress coding standards
- Changelog and version update requirements
- Code quality guidelines for PHP, JavaScript, and CSS
- Comprehensive Test Coverage: Added 410+ unit tests covering all classes and functions
- Created test bootstrap with WordPress function mocks
- API connection tests with key validation for Groq, OpenAI, and Anthropic
- File processor tests for all supported file types
- Chat widget rendering tests
- Knowledge manager tests
- Leads manager tests
- Notification manager tests
- Activity log manager tests
- REST API endpoint tests
- Integration tests for all third-party integrations
- Admin settings tests
- Live agent manager tests
- Conversations manager tests
- Plugin updater tests
- API Keys Configuration: Added secure API keys configuration file
api-keys.phpfor storing API keys securelyapi-keys.local.php.exampletemplate for local development- Both files added to
.gitignorefor security
- CI/CD Pipeline: Added GitHub Actions workflow for automated testing
- PHPCS check for WordPress Coding Standards
- PHPUnit tests across PHP 8.0, 8.1, 8.2, 8.3
- Test coverage verification (minimum 100 tests required)
- PHP 8.0+ compatibility check
- Security vulnerability scanning
- Automatic PR test coverage validation
Full Changelog: ...v1.10.0
AI Agent for Website v1.9.0
What's Changed
Added
- Live Agent Mode Integration: Connect visitors with live human agents when AI cannot help
- Automatic trigger after configurable number of unsuccessful AI responses
- Real-time chat between visitors and agents
- Agent availability status (online/offline)
- Queue position display for waiting visitors
- Smooth transition between AI and live agent conversations
- Session management with proper UI state handling
- Live Agent Dashboard: Backend interface for agents to manage and respond to chats
- View waiting and active chat sessions
- Accept incoming chat requests
- Real-time message polling
- Go online/offline status toggle
- End chat functionality
- Live Agent Admin Settings: Configure live agent behavior
- Enable/disable live agent mode
- Select which user roles can act as live agents
- Customize connect button text and offline messages
- Set maximum concurrent chats per agent
- Auto Popup Feature: Automatically open chat widget after visitor stays on page
- Configurable delay (1-300 seconds)
- Custom greeting message for auto-popup
- "Show only once" option using browser storage
- Attention animation when popup triggers
- Friendly Error Messages: User-friendly error handling for API issues
- Rate limit, quota, timeout errors now show friendly message
- API errors logged to Activity Log for admin review
- Debug logging when WP_DEBUG is enabled
Fixed
- Fixed "Connected to Live Agent" status not resetting after session ends
- Fixed live agent modals not hiding properly when session ends
- Removed all console.log debug statements from production code
Changed
- AI chatbot now strictly answers from knowledge base only
- Irrelevant questions are redirected back to relevant topics
Full Changelog: ...v1.9.0
AI Agent for Website v1.8.0
What's Changed
Added
- Google Calendar Integration: Allow users to book meetings after chat conversations
- OAuth 2.0 authentication with Google Calendar API
- Automatic availability detection using Google Calendar free/busy API
- Configurable business hours and working days
- Buffer time between appointments
- Days ahead booking limit
- Google Meet link generation for scheduled meetings
- Calendar invites sent to user's email
- New admin settings section "Scheduling" for calendar configuration
- Calendar booking modal in chat widget with step-by-step flow:
- Prompt to schedule after conversation ends
- Date/time slot selection with navigation
- Meeting details form (title, description)
- Booking confirmation
- REST API endpoints for calendar integration:
GET /gcalendar/auth-url- OAuth authorization URLPOST /gcalendar/disconnect- Disconnect accountGET /gcalendar/calendars- List available calendarsGET /gcalendar/slots- Get available time slotsPOST /gcalendar/create-event- Create calendar eventGET /gcalendar/status- Check integration statusPOST /settings/gcalendar- Save calendar settings
- Customizable prompt message for calendar booking suggestion
- Event title and description templates with placeholder support
- Calendly Integration: Easy scheduling via Calendly
- Support for popup widget, inline embed, and external link modes
- Customizable scheduling URL (user profile or specific event type)
- Pre-fill user info from chat session (name, email)
- Configurable prompt message and button text
- Widget appearance options (height, colors, hide event details/GDPR banner)
- Optional OAuth 2.0 connection for advanced features (event types)
- New Calendly admin settings in "Scheduling" section
- REST API endpoints for Calendly integration:
GET /calendly/auth-url- OAuth authorization URLPOST /calendly/disconnect- Disconnect accountGET /calendly/event-types- List event typesGET /calendly/status- Check integration statusPOST /settings/calendly- Save Calendly settings
Changed
- Enhanced chat widget flow to include calendar booking after rating
- Updated admin JavaScript with Google Calendar connection handlers
Full Changelog: ...v1.8.0
AI Agent for Website v1.7.1
What's Changed
Fixed
- Chat widget container no longer blocks clicks on page elements when widget is closed
- Added
pointer-eventsCSS properties to ensure proper click behavior
Full Changelog: ...v1.7.1
AI Agent for Website v1.7.0
What's Changed
Added
- WooCommerce Integration: Full e-commerce integration with AI chat agent
- Automatic WooCommerce detection and configuration
- Product search through chat interface with natural language queries
- Display relevant products with images, prices, and descriptions
- Related products and smart suggestions based on user queries
- Product comparison feature to compare multiple products side-by-side
- Add to cart functionality directly from chat widget
- Configurable display options (show prices, show add to cart, etc.)
- Product Knowledge Base Sync: Sync WooCommerce products to AI knowledge base
- Configurable sync options (descriptions, prices, categories, attributes, stock status)
- Manual "Sync Now" button for on-demand synchronization
- Auto-sync option to automatically update KB when products change
- Last sync timestamp and product count display
- New REST API endpoints for WooCommerce product operations and KB sync
- WooCommerce integration modal in admin settings with KB sync section
- Product card and comparison UI components in chat widget
Changed
- Enhanced chat widget JavaScript with product display capabilities
- Extended admin settings with WooCommerce integration category
- Added WooCommerce-specific CSS styles for product display
- AI assistant can now answer questions about products from knowledge base
Full Changelog: ...v1.7.0
AI Agent for Website v1.6.0
What's Changed
Added
- Integrations UI Redesign: Modern card-based grid layout for integrations
- Modal Settings: Integration settings now open in popup modals for cleaner UX
- AJAX Save: Save individual integration settings without affecting others
- Categorized Integrations: Integrations organized into Knowledge Base and Conversation categories
- Page Title Styling: Improved admin page header with icon and better alignment
Changed
- Integrations tab now displays all integrations in responsive grid format
- Each integration has its own modal with dedicated Save/Cancel buttons
- REST API endpoints added for saving individual integration settings
- Updated readme.txt with WordPress 6.7 compatibility and enhanced content
Full Changelog: ...v1.6.0
AI Agent for Website v1.5.0
What's Changed
Added
- Notification Center: Centralized admin notifications for new conversations, leads, and system events
- AI-Powered Validation: Automatically validate conversations using AI to identify qualified leads
- Convert to Lead with AI: Use AI analysis to convert promising conversations to leads with confidence scoring
- Close Conversations with AI: Intelligently close invalid or not interested conversations using AI
- Activity Log Center: Comprehensive activity logging for all system events
- Notification Settings: Configure email notifications, recipients, and event triggers
- Log Settings: Configure log categories, retention period, and external export
- Zapier Log Export: Export activity logs to Zapier webhooks for external tracking
- Mailchimp Tagging: Add activity-based tags to Mailchimp subscribers for user/lead events
- Unread Badge: Admin menu shows unread notification count
- CSV Export: Export activity logs to CSV for reporting
- Automatic Cleanup: Configurable log retention with automatic cleanup
Database
- Added
aiagent_notificationstable for storing admin notifications - Added
aiagent_activity_logstable for comprehensive activity logging
Changed
- Added new "Notifications & Logs" settings tab for centralized configuration
- Enhanced Zapier integration with additional webhook events for logs
Full Changelog: ...v1.5.0
AI Agent for Website v1.4.0
What's Changed
Added
- Leads Management: Convert conversations into leads for CRM workflow
- Admin Review: Review conversations and convert to leads or close them
- Zapier Integration: Sync leads with external CRM platforms via webhook
- Mailchimp Integration: Automatically subscribe users to newsletter lists
- Consent System: Add consent checkboxes before starting conversation
- AI Consent (Mandatory)
- Newsletter Consent (Optional)
- Promotional Consent (Optional)
- Editable "Powered By" Text: Customize the branding text at widget bottom
- Widget Customization: New color options for bubble, header, text, and background
- Live Preview Enhancements: Real-time preview for button size, animation, and sound settings
Changed
- Moved "AI Name" field from General tab to Widget Appearance tab
- Improved widget appearance settings organization
- Enhanced admin preview with interactive animations
Database
- Added
aiagent_leadstable for lead management - Added consent fields to user data storage
Full Changelog: ...v1.4.0
AI Agent for Website v1.3.0
What's Changed
Added
- Custom File Upload: Upload documents directly to knowledge base (PDF, DOC, DOCX, TXT, CSV, MD, RTF)
- Google Drive Integration: Connect Google Drive and import documents via OAuth 2.0
- Confluence Integration: Connect Atlassian Confluence and import wiki pages
- File processor class with support for multiple document formats
- Drag & drop file upload interface with progress indicators
- REST API endpoints for file upload, Google Drive, and Confluence operations
- Integration configuration in Settings > Integrations tab
- File/page browsers in Knowledge Base page for connected integrations
- Uploaded files management table with delete functionality
- Secure file storage with .htaccess protection
Changed
- Reorganized Knowledge Base page with 3-column grid layout
- Improved Integrations tab with actual connection settings (previously placeholder)
- Enhanced admin UI with file type badges and source icons
Security
- MIME type validation for uploaded files
- File size limits (10MB max)
- Nonce verification on all new endpoints
- OAuth state verification for Google Drive
Full Changelog: ...v1.3.0
AI Agent for Website v1.2.0
What's Changed
Added
- Configurable "Powered By" text - option to show/hide footer branding
- AI suggestions modal with regenerate and apply functionality
Changed
- Settings page layout: Widget Appearance and Chat Widget Preview now display side-by-side
- AI suggestion buttons now open a modal dialog instead of inline display
- Improved responsive design for settings page (stacks vertically on smaller screens)
Improved
- Better user experience with modal-based AI suggestions (regenerate, apply, or cancel)
- Real-time preview updates when toggling "Show Powered By" setting
Full Changelog: ...v1.2.0