How to add a chatbot to your website
You can put an AI chatbot on your site in about five minutes, without touching code. Here is the whole process — and exactly where to paste the snippet on every major platform.
The 6 steps
- 1
Choose an AI chatbot
Pick a chatbot that trains on your own content rather than one that makes you build decision-tree flows. Envoy crawls your website automatically, so there is nothing to script.
- 2
Sign up and train it on your site
Create an account and paste your website URL. The chatbot crawls your pages, FAQs, and documents to build its knowledge base — typically in 10 to 15 minutes.
- 3
Customize the widget
Set your brand color, greeting message, and the widget position. Add manual Q&A overrides for any high-priority answers you want to control word-for-word.
- 4
Copy your one-line embed snippet
From the dashboard, copy the single <script> tag. It includes your unique key and loads the widget asynchronously, so it never slows your page down.
- 5
Paste it into your website’s <head>
Add the snippet before the closing </head> tag, or use your platform’s header / custom-code setting so it loads on every page. Platform-specific guides are linked below.
- 6
Test it live
Open your site in an incognito window, ask the chatbot a question, and confirm it answers from your content and captures a test lead. You are live.
The Envoy embed snippet looks like this:
<script
src="https://app.sanafai.com/widget.js"
data-key="YOUR_WIDGET_API_KEY"
async
></script>Platform-specific install guides
Using a website builder or CMS? Follow the exact steps for your platform.
Frequently asked questions
How do I add an AI chatbot to my website?+
Do I need a developer to install a chatbot?+
Where exactly do I put the chatbot code?+
Will a chatbot slow down my website?+
How do I train the chatbot on my own content?+
Free plan available · no credit card required