Embedding the Widget
Add the chat widget to any website with two lines of code.
Basic embed
Paste this before the </body> tag on your page. Replace YOUR_WIDGET_KEY with the key from your agent detail page.
html
<script>
window.SahayConfig = { widgetKey: "YOUR_WIDGET_KEY" };
</script>
<script src="https://sahaybot.com/widget.js" async></script>Your widget key is unique to each agent. Find it on the agent detail page under Widget Settings.
Customization
You can customize the widget's color and theme from the agent detail page, no code changes needed. Pro plan users can set custom colors and use the dark theme.
Where to place the script
- Websites (HTML): Before
</body> - WordPress: Use a plugin like "Insert Headers and Footers" to add it to the footer
- Shopify: Add to your theme's
theme.liquidbefore</body> - Webflow: Site Settings → Custom Code → Footer Code
- Framer / Wix: Use the custom embed / HTML element
Still have questions? Email our support team at grow@nocubical.com . We typically respond within 24 hours.