N8N ChatBot
ChatGPT-style interface for N8N AI Agent
by Jainil Prajapati · github.com/jaainil/n8n-chat-plugin-wordpress · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jaainil/n8n-chat-plugin-wordpress/archive/refs/heads/main.zipChatGPT-style interface for N8N AI Agent
Description
Small application connecting N8N AI Agent to a Chatbot for your site.
User Manual:
- Installation:
- Download the plugin ZIP file
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Upload and activate the plugin
- Requirements:
- PHP 7.4 or higher
- cURL extension enabled
- WordPress REST API enabled
- HTTPS recommended for security
- Configuration:
- No configuration needed - works out of the box
- Ensure CORS is properly configured if using external domains
- Test the chat interface by clicking the chatbot icon
- Customization:
- Replace images in /public/ directory:
- chatbot-icon.png (recommended size: 60x60px)
- bot-thumb.png (recommended size: 40x40px)
- Modify chatbot-style.css for visual changes
- Adjust chat window size in CSS: .oacb-chat-window { width: 400px; }
- Security Considerations:
- All API requests are protected with nonces
- Input sanitization and output escaping implemented
- Session IDs generated with cryptographically secure random_bytes
- CSRF protection through WordPress REST API nonces
- Troubleshooting:
- Check browser console for JavaScript errors
- Verify REST API is working: /wp-json/oacb/v1/send-message
- Ensure webhook URL is correct and accessible
- Check server error logs for PHP issues
This implementation follows security best practices:
- Input validation and sanitization
- Output escaping
- CSRF protection with nonces
- Secure session ID generation
- HTTPS enforcement for API calls
- Proper error handling without exposing details
- Rate limiting through WordPress REST API
- Content Security Policy (CSP) friendly
Performance optimizations:
- Minimal database usage
- Efficient DOM manipulation
- Caching of static assets
- Asynchronous API calls
- Lightweight CSS/JS payloads
- Proper asset versioning
- Lazy loading of chat interface
Installation
- Upload the plugin files to
/wp-content/plugins/n8n-chatbotdirectory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure settings in N8N ChatBot menu
Frequently Asked Questions
Does this plugin require any external services?
Yes, it requires an N8N webhook URL for AI processing.
Is the plugin secure?
Yes, it follows WordPress security best practices including nonce verification, input sanitization, and output escaping.
Screenshots
- Chatbot interface on frontend
- Admin settings page
Changelog
1.0
- Initial release