Prerequisites
- A WordPress website (self-hosted or WordPress.com)
- Your NeuralTalk AI assistant created and configured
- Admin access to your WordPress site
Step 1: Get Your Chatbot Code
- Log in to your NeuralTalk Dashboard
- Navigate to your AI assistant
- Go to the Website Integration section
- Copy the provided embed code
Step 2: Add to WordPress
Method 1: Using WordPress Admin (Recommended)
- Log in to your WordPress admin dashboard
- Go to Appearance > Theme Editor
- Select your active theme
- Open the
footer.php
file - Paste your chatbot code just before the closing
</body>
tag - Click Update File
Method 2: Using a Plugin
- Install a โCustom HTMLโ or โCode Injectionโ plugin
- Add the chatbot code to the footer section
- Save and activate the plugin
Method 3: Using functions.php
For advanced users, add the code to your themeโsfunctions.php
file:
Step 3: Customize Appearance
- Return to your NeuralTalk dashboard
- Go to Styling settings
- Customize colors, position, and behavior to match your site
- Preview changes in real-time
Step 4: Test Your Integration
- Visit your WordPress site
- Look for the chatbot widget (usually bottom-right corner)
- Test the conversation flow
- Verify that responses match your training
WordPress-Specific Features
WooCommerce Integration
Connect with WooCommerce for e-commerce support
Contact Form 7
Integrate with popular contact form plugins
WooCommerce Products
Enable product recommendations and support
Blog Content
Train chatbot on your blog content for better responses
Best Practices for WordPress
Performance Optimization
- Use a caching plugin (WP Rocket, W3 Total Cache)
- Ensure the chatbot loads asynchronously
- Monitor site speed after integration
SEO Considerations
- The chatbot doesnโt affect your SEO
- Consider adding structured data for better search visibility
- Test mobile responsiveness
Security
- Keep your WordPress site updated
- Use secure hosting
- Regularly backup your site
Troubleshooting
Chatbot Not Appearing
- Check if the code was added correctly
- Clear any caching plugins
- Verify the code is placed before
</body>
tag
Theme Conflicts
- Test with a default WordPress theme
- Check for JavaScript errors in browser console
- Contact your theme developer if issues persist
Plugin Conflicts
- Deactivate other plugins temporarily to test
- Check for JavaScript conflicts
- Use a staging site for testing
Advanced Configuration
Custom Post Types
Train your chatbot on custom post types:- Products
- Services
- Portfolio items
- Team members
Multisite Support
For WordPress Multisite installations:- Add the code to the network admin
- Configure per-site settings
- Use different chatbots for different sites
API Integration
Connect with WordPress REST API:- Fetch dynamic content
- Update chatbot responses
- Sync with WordPress data
Need help with your WordPress integration? Contact our support team for personalized assistance. For quick resolution and community support, join our Discord community.