← Setup guides

How to add a chatbot to any HTML website

If you or your developer edit your website's files 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. Your Widget page shows \"Widget live\" once it has been seen on your site."}]}

Before you start

Steps

  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. Your Widget page shows "Widget live" once it has been seen on your site.

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.

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 hear 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