Deploying Your Chatbot to Your Website

Learn how to deploy your ChatNexus chatbot to any website using our simple embed script

This guide walks you through the process of deploying your ChatNexus chatbot to any website. Our simple script-based deployment makes it easy to add powerful AI conversations to your web presence.

Quick Start

Deployment Modal
  1. Navigate to the top-right corner of your dashboard
  2. Click the "Deploy" button
  3. Select "Deploy to Website" from the dropdown
  4. Copy the generated script code

Deployment Options

Deployment Modal

Basic Script Integration

Add this code just before the closing </body> tag of your HTML:

<script
    src="https://embed.chatnexus.io/scripts/embed.js"
    data-chatbot-id="YOUR_CHATBOT_ID">
</script>

Check yoour website

Deployment Modal

Platform-Specific Integration

WordPress

  1. Access your WordPress theme editor
  2. Locate the footer.php file
  3. Paste the script before </body>
  4. Save changes and clear cache

Shopify

  1. Go to Themes → Edit HTML/CSS
  2. Find theme.liquid
  3. Add script before </body>
  4. Save and publish

Wix

  1. Add a Custom Code element
  2. Paste the embed script
  3. Set to load on all pages
  4. Publish your site

Squarespace

  1. Go to Settings → Advanced → Code Injection
  2. Paste script in Footer Code
  3. Save and refresh

Best Practices

Performance Optimization

  • Script loads asynchronously
  • Minimal impact on page load
  • Lazy-loaded resources
  • Optimized asset delivery
  • Compressed network requests

Mobile Responsiveness

  • Automatically adapts to screen size
  • Touch-friendly interface
  • Proper keyboard handling
  • Responsive animations
  • Accessibility features

Security Considerations

  • Secure data transmission
  • CORS compliance
  • XSS prevention
  • CSP compatibility
  • GDPR compliance

Testing Your Integration

Before going live:

  1. Test on multiple browsers
  2. Verify mobile functionality
  3. Check loading performance
  4. Validate user interactions
  5. Monitor network requests

Troubleshooting

Common issues and solutions:

  • Script not loading
  • Widget not appearing
  • Style conflicts
  • Mobile display issues
  • Performance problems

Monitoring and Analytics

Track your chatbot's performance:

  • User engagement metrics
  • Response times
  • Error rates
  • User satisfaction
  • Conversation completion rates

Note:

Contact our support team if you need assistance with your integration.