← Setup guides

How to add a chatbot to any HTML website

Here's how to add a chatbot to a website you or your developer edit directly: add one script tag to every page, just before the closing </body> tag.

."},{"@type":"HowToStep","position":2,"text":"Open the file or template your pages share for their footer. If every page is a separate file, you'll need to add it to each one."},{"@type":"HowToStep","position":3,"text":"Paste the code just before ."},{"@type":"HowToStep","position":4,"text":"Save, then upload or redeploy your site."},{"@type":"HowToStep","position":5,"text":"Open your website in a new tab and look for the chat bubble in the bottom-right corner, or bottom-left if you've moved it in Settings. Your Widget page shows \"Live on your site\" once it has been seen there."}]}

Before you start

How to add the chatbot to your website

  1. Sign in, open your assistant's Widget page and copy the one line of code shown there. It starts with <script and ends with </script>.
  2. Open the file or template your pages share for their footer. If every page is a separate file, you'll need to add it to each one.
  3. Paste the code just before </body>.
  4. Save, then upload or redeploy your site.
  5. Open your website in a new tab and look for the chat bubble in the bottom-right corner, or bottom-left if you've moved it in Settings. Your Widget page shows "Live on your site" once it has been seen there.

Good to know

Can't edit your website?

Every assistant has its own chat page. Link to it from your website's menu, your Google Business Profile, social media or email signature. Or use "Email this to my web person" on your Widget page to send the code to whoever runs your site.

Questions

How do I add a chatbot to my website using HTML?

Paste the one-line script tag from your Widget page just before </body> on every page, then upload your site. The chat widget page shows what visitors see once it's in.

Can I add it to only some pages?

Yes. It only appears on pages that include the code, though customers usually expect it everywhere.

Try it on your own website

Your customers are asking right now

Paste your website and see your assistant answer as your business. It takes about a minute.

  • No account needed
  • No card
  • Free plan forever

Want the details first? See pricing