> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuraltalk.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 📝 Deploy to WordPress

> Learn how to add your NeuralTalk AI chatbot to your WordPress website

Add your NeuralTalk AI chatbot to your WordPress website to provide instant customer support and improve user engagement.

## 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

1. Log in to your [NeuralTalk Dashboard](https://neuraltalk.ai)
2. Navigate to your AI assistant
3. Go to the **Website Integration** section
4. Copy the provided embed code

## Step 2: Add to WordPress

### Method 1: Using WordPress Admin (Recommended)

1. Log in to your WordPress admin dashboard
2. Go to **Appearance** > **Theme Editor**
3. Select your active theme
4. Open the `footer.php` file
5. Paste your chatbot code just before the closing `</body>` tag
6. Click **Update File**

### Method 2: Using a Plugin

1. Install a "Custom HTML" or "Code Injection" plugin
2. Add the chatbot code to the footer section
3. Save and activate the plugin

### Method 3: Using functions.php

For advanced users, add the code to your theme's `functions.php` file:

```php theme={null}
function add_neuraltalk_chatbot() {
    echo '<!-- Your NeuralTalk chatbot code here -->';
}
add_action('wp_footer', 'add_neuraltalk_chatbot');
```

## Step 3: Customize Appearance

1. Return to your NeuralTalk dashboard
2. Go to **Styling** settings
3. Customize colors, position, and behavior to match your site
4. Preview changes in real-time

## Step 4: Test Your Integration

1. Visit your WordPress site
2. Look for the chatbot widget (usually bottom-right corner)
3. Test the conversation flow
4. Verify that responses match your training

## WordPress-Specific Features

<CardGroup cols={2}>
  <Card title="WooCommerce Integration" icon="shopping-cart">
    Connect with WooCommerce for e-commerce support
  </Card>

  <Card title="Contact Form 7" icon="envelope">
    Integrate with popular contact form plugins
  </Card>

  <Card title="WooCommerce Products" icon="package">
    Enable product recommendations and support
  </Card>

  <Card title="Blog Content" icon="newspaper">
    Train chatbot on your blog content for better responses
  </Card>
</CardGroup>

## 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

<Note>
  Need help with your WordPress integration? Contact our [support team](mailto:support@neuraltalk.ai) for personalized assistance. For quick resolution and community support, join our [Discord community](https://discord.com/invite/tHpggadDAk).
</Note>
