A professional WordPress plugin that integrates the Secretary of DeCourse American Government teaching assistant directly into your WordPress site.
- WordPress Native Integration - Fully integrated with WordPress security and permissions
- AJAX-Powered Chat - Real-time messaging without page reloads
- Multiple Display Modes - Floating widget or shortcode embedding
- Educational Focus - Specialized in American Government topics
- Text-to-Speech - Built-in speech synthesis for accessibility
- Mobile Responsive - Works perfectly on all devices
- Genially Compatible - Perfect for embedding in presentations
- Admin Dashboard - Easy configuration through WordPress admin
- Download the plugin folder (
secretary-chatbot-plugin) - Upload to WordPress:
/wp-content/plugins/secretary-chatbot-plugin/ - Add the badger image:
- Save your badger.png image to:
/wp-content/plugins/secretary-chatbot-plugin/assets/badger.png
- Save your badger.png image to:
- Activate the plugin in WordPress Admin β Plugins
- Configure settings in WordPress Admin β Settings β Secretary Chatbot
- Create a ZIP file of the
secretary-chatbot-pluginfolder - Upload via WordPress Admin:
- Go to Plugins β Add New β Upload Plugin
- Choose your ZIP file and install
- Add the badger image as described above
- Activate and configure
- Go to Settings β Secretary Chatbot
- Enable the chatbot by checking the checkbox
- Choose display mode:
- Floating Widget: Shows a floating icon on all pages
- Shortcode Only: Only appears when you use the shortcode
- Automatically appears on all pages when enabled
- Shows as a floating badger icon in bottom-right corner
- Clicking opens the chat window
[secretary_chatbot]
[secretary_chatbot width="500" height="700"]
[secretary_chatbot width="300" height="500"]
-
Create a dedicated page in WordPress with the shortcode:
[secretary_chatbot width="400" height="600"] -
Get the page URL (e.g.,
https://yoursite.com/chatbot-page/) -
In Genially:
- Add an iframe element
- Set source to your page URL
- Set dimensions to match your shortcode (400x600px)
If your hosting allows, you can also embed the chatbot directly in Genially using the page URL.
- All styles are prefixed with
secretary-to avoid conflicts - Modify
/assets/style.cssfor custom styling - Colors use the theme: Dark blue (#1e3a8a), white background, black text
- Edit
/includes/chatbot-logic.phpto modify responses - Add new prompts and replies in the arrays
- Customize government-related content
- Replace
/assets/badger.pngwith your custom avatar - Replace
/assets/user.pngfor user avatars - Images should be square (recommended: 100x100px minimum)
- Modern REST API - Uses WordPress REST API with proper authentication
- Rate Limiting - 30 messages per hour per user to prevent abuse
- Input Validation - Message length and content filtering
- Security Logging - All access attempts and security events logged
- Enhanced Security - Integrates with BEEP Assessment plugin security
- AI Access Control - Uses BEEP's AI feature access controls
- Unified Logging - Security events logged to BEEP's system
- Permission Inheritance - Follows BEEP's user permission patterns
- Nonce Protection - CSRF protection for all requests
- Input Sanitization - All user inputs properly sanitized
- Capability Checks - WordPress user capability validation
- Direct Access Prevention - All PHP files protected from direct access
- Fully responsive design
- Touch-friendly interface
- Optimized for mobile screens
- Maintains functionality across all devices
- Text-to-Speech - Automatic speech synthesis for bot responses
- Keyboard Navigation - Full keyboard support
- Screen Reader Friendly - Proper ARIA labels and semantic HTML
- High Contrast - Clear visual design for readability
-
Chatbot not appearing:
- Check if plugin is activated
- Verify settings are enabled
- Clear any caching plugins
-
Images not loading:
- Ensure badger.png is in
/assets/folder - Check file permissions (644 for files, 755 for folders)
- Verify image file format (PNG recommended)
- Ensure badger.png is in
-
AJAX errors:
- Check WordPress debug logs
- Verify nonce security is working
- Test with default WordPress theme
Add this to your wp-config.php for debugging:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);- Lightweight - Minimal resource usage
- Cached Assets - CSS/JS files are properly cached
- Optimized AJAX - Efficient server communication
- No Database Bloat - Minimal database storage
To update the plugin:
- Backup your current installation
- Replace plugin files with new version
- Keep your custom
badger.pngimage - Reactivate if necessary
- Check WordPress debug logs for errors
- Verify all file permissions are correct
- Test with a default WordPress theme
- Ensure no plugin conflicts exist
GPL v2 or later - Compatible with WordPress licensing
Perfect for:
- Educational institutions
- Government courses
- Civic education websites
- Online learning platforms
- Student engagement tools
Ready to enhance your WordPress site with an intelligent American Government teaching assistant! πΊπΈ