Integrations
How to add a chatbot to your website
One script tag works on every site builder and framework. WordPress gets a ready-made plugin. Either way, there is no API key to set up and the chatbot answers from the content you trained it on.
Any website
Install with one script tag
- 1Create a chatbot and add your content: PDFs, text, or a web page URL.
- 2Open Integrations in your dashboard, pick the chatbot, and copy its snippet. It already contains your chatbot ID.
- 3Paste it before the closing </body> tag on every page, or in your site builder's footer code field.
- 4Reload your site. The chat launcher appears in the corner, and conversations show up in your inbox.
The snippet looks like this
<script>
(function () {
var script = document.createElement('script');
script.src = 'https://www.instantchatsupport.com/widget.js';
script.setAttribute('data-chatbot-id', 'YOUR_CHATBOT_ID');
document.body.appendChild(script);
})();
</script>Copy your own from the dashboard rather than this example, so the chatbot ID is right.
Step by step
Where to paste it on popular platforms
WordPress
Use the plugin instead of pasting code. Download it from Integrations in your dashboard; it arrives with your chatbot ID already filled in.
WordPress chatbot plugin guideShopify
Online Store → Themes → ⋯ → Edit code → open layout/theme.liquid and paste the snippet just above </body>. Save.
Wix
Settings → Custom code → Add custom code. Paste the snippet, apply it to all pages, and place it in Body – end. Wix only allows custom code on sites with a connected domain and a paid plan.
Webflow
Site settings → Custom code → Footer code. Paste the snippet, save, and publish the site. Custom code needs a paid Webflow site plan.
Squarespace
Settings → Advanced → Code injection → Footer. Paste the snippet and save. Code injection is limited to some Squarespace plans.
React, Next.js and other apps
Load widget.js once, after the page has rendered: with next/script in Next.js (strategy="afterInteractive"), or from a useEffect in plain React. Set data-chatbot-id on the script element.
Plain HTML or any CMS
Paste the snippet before the closing </body> tag of every page, or in your CMS's site-wide footer or "custom scripts" field.
Menu names change from time to time on these platforms. If a step doesn't match what you see, look for the site-wide “footer code” or “custom code” setting.
Installation questions
Can't find what you need? Email support@instantchatsupport.com.
Get started
Put your support on autopilot
Create your workspace, add your content and have an assistant answering customers today.
- 14-day free trial
- No credit card required
- Cancel any time