Before you start
- A website, landing pages or blog hosted on HubSpot. HubSpot's help page lists code snippets with all products and plans, though the exact options vary by subscription.
- The Website settings permission in HubSpot.
- Your code from your assistant's Widget page.
Steps to add your HubSpot website chatbot
- 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>.
- In HubSpot, click the settings icon in the top navigation bar.
- In the left sidebar menu, go to Content, then Pages.
- Open the "Choose a domain to edit its settings" menu and pick your website's domain, or Default settings for all domains.
- 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.
- Paste your code into Site Footer HTML.
- Click Save in the bottom left.
- 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
- If you also run HubSpot's own chat on your site, two chat bubbles can end up in the same corner. Turn one off, or move ours to the bottom-left in Settings.
- HubSpot's help page says footer code set for all domains, or for the domain your quotes use, also appears on HubSpot quotes. Pick your website's own domain if you don't want the chat there.
- For one page only, open the page in HubSpot's editor, go to Settings, then Advanced, and use Footer HTML. Blog posts and knowledge base articles don't have that field.
- The chat only shows on your own domain and any you add under "Where it can appear" on your Widget page.
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.