Learn how to implement NedChat on your website. Our widget works everywhere JavaScript is supported.
After creating your account and setting up your chatbot, copy this code from your dashboard:
<script>
(function() {
var chatbuddy = document.createElement('div');
chatbuddy.id = 'chatbuddy-widget';
document.body.appendChild(chatbuddy);
var script = document.createElement('script');
script.src = 'https://your-nedchat-domain.com/static/js/widget_src/wi-org.js';
script.setAttribute('data-chatbot-id', 'YOUR_CHATBOT_ID');
script.setAttribute('data-api-url', 'https://your-nedchat-domain.com/api/chat');
document.head.appendChild(script);
})();
</script>
Paste the code just before the closing </body>
tag on every page where you want the chat widget to appear.
Choose your platform to see specific implementation instructions:
For basic HTML websites, GitHub Pages, Netlify, Vercel, and other static site generators
Simply paste the embed code before the closing </body>
tag:
<!DOCTYPE html>
<html>
<head>
<title>Your Website</title>
</head>
<body>
<h1>Your content here</h1>
<!-- NedChat Widget -->
<script>
(function() {
var chatbuddy = document.createElement('div');
chatbuddy.id = 'chatbuddy-widget';
document.body.appendChild(chatbuddy);
var script = document.createElement('script');
script.src = 'https://your-nedchat-domain.com/static/js/widget_src/wi-org.js';
script.setAttribute('data-chatbot-id', 'YOUR_CHATBOT_ID');
script.setAttribute('data-api-url', 'https://your-nedchat-domain.com/api/chat');
document.head.appendChild(script);
})();
</script>
</body>
</html>
Parameter | Required | Description |
---|---|---|
data-chatbot-id |
Yes | Your unique chatbot ID from the dashboard |
data-api-url |
Yes | The API endpoint URL for your chatbot |
data-debug |
No | Enable debug mode for development (shows console logs and debug info) |
All styling and behavior options can be configured in your NedChat dashboard under Settings → Appearance:
</body>
tagOur team is here to help you get your chatbot up and running smoothly.