← Setup guides

How to add a chatbot to your HubSpot website

If HubSpot hosts your website, a chatbot needs one line of code. HubSpot's Site Footer HTML setting adds code to everything it hosts on your domain, blog included. To send the chatbot's leads into HubSpot as contacts, see our HubSpot CRM guide.

Before you start

Steps to add your HubSpot website chatbot

  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. In HubSpot, click the settings icon in the top navigation bar.
  3. In the left sidebar menu, go to Content, then Pages.
  4. Open the "Choose a domain to edit its settings" menu and pick your website's domain, or Default settings for all domains.
  5. If you picked one domain, click Override default settings in the Site Footer HTML section. Code in the default settings then stops applying to that domain.
  6. Paste your code into Site Footer HTML.
  7. Click Save in the bottom left.
  8. 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.

Platform steps checked on November 13, 2026 against HubSpot Knowledge Base: Use code snippets with HubSpot content

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

Is this different from HubSpot's own chatbot?

Yes. HubSpot has chat and bot tools of its own; use them if you'd rather stay inside HubSpot. This guide adds ours, which answers from your website and your corrections and emails you each lead as it arrives.

Can the chatbot's leads go into HubSpot too?

Yes. Every lead can land in HubSpot as a contact through a free Make scenario, with no HubSpot app to install. The steps are in our HubSpot CRM guide.

Will the chat show on my HubSpot blog?

Yes. Code in Site Footer HTML applies to all the content HubSpot hosts on that domain, blog posts included.

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