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

- Navigate to the top-right corner of your dashboard
- Click the "Deploy" button
- Select "Deploy to Website" from the dropdown
- Copy the generated script code
Deployment Options

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

Platform-Specific Integration
WordPress
- Access your WordPress theme editor
- Locate the footer.php file
- Paste the script before
</body>
- Save changes and clear cache
Shopify
- Go to Themes → Edit HTML/CSS
- Find theme.liquid
- Add script before
</body>
- Save and publish
Wix
- Add a Custom Code element
- Paste the embed script
- Set to load on all pages
- Publish your site
Squarespace
- Go to Settings → Advanced → Code Injection
- Paste script in Footer Code
- 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:
- Test on multiple browsers
- Verify mobile functionality
- Check loading performance
- Validate user interactions
- 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.