Blog· HubSpot CRM 9 min read

HubSpot Chatbot & Live Chat Setup Guide for 2026

This guide provides a step-by-step process for setting up, configuring, and deploying HubSpot's live chat and chatbot tools. Learn how to use conversational marketing to generate leads, book meetings, and support customers directly from your website.

HubSpot Chatbot & Live Chat Setup Guide for 2026 — HubStack HubSpot article cover
In this article
  • Live Chat vs. Chatbot: Choosing the Right Tool
  • Step 1: Install the HubSpot Tracking Code
  • Step 2: Configure a Live Chat 'Chatflow'
  • Step 3: Build a Lead Generation Chatbot
  • Step 4: Automate Sales with a Meeting Booker Bot
  • Step 5: Triage Support with a Knowledge Base Bot
  • Chatflow Best Practices and Common Mistakes

Conversational marketing tools like live chat and chatbots are no longer optional for a modern B2B website. They provide an immediate channel for engagement, allowing you to connect with prospects the moment their interest is highest. Instead of forcing a visitor to fill out a form and wait for a response, you can answer questions, qualify leads, and book meetings in real time, directly within the browsing session. This immediacy shortens the sales cycle and improves the user experience.

HubSpot's conversation tools, called Chatflows, are built directly into the CRM platform. This integration is their primary advantage over third-party chat widgets. When a visitor interacts with your HubSpot chat, the entire conversation is logged on their contact record. If the visitor is known, your team has immediate access to their entire history—past page views, form submissions, and email opens—providing critical context for a productive conversation. This native connection eliminates data silos and empowers your sales and service teams to be more effective.

This guide provides a complete walkthrough for implementing HubSpot's conversational marketing tools. We will first clarify the strategic difference between live chat and automated chatbots and when to use each. We will then cover the technical steps for setup, from installing the tracking code to building four distinct types of Chatflows: a simple live chat, a lead generation bot, a meeting booker bot, and a support triage bot. Finally, we will cover best practices and common mistakes that HubStack encounters to ensure your deployment is successful from day one. You can find more information about our process on our work page.

Live Chat vs. Chatbot: Choosing the Right Tool

Before you build anything, it is critical to understand the distinction between Live Chat and a Chatbot. A Live Chat Chatflow facilitates a real-time, one-to-one conversation between a website visitor and a member of your team. It is synchronous and requires human availability. This makes it best suited for high-intent pages where a human touch can make the difference, such as your pricing page or a specific service page. The goal is to answer complex questions and guide a qualified prospect toward a conversion.

A Chatbot Chatflow, by contrast, is an automated, pre-programmed conversation path. It operates 24/7 without human intervention. Its purpose is to handle repetitive tasks at scale. Common use cases include asking basic qualifying questions to capture a new lead, scheduling meetings directly on a sales rep's calendar, or deflecting common support requests by suggesting relevant knowledge base articles. Chatbots are excellent for top-of-funnel engagement and initial support triage.

The most effective strategies often use a hybrid approach. A chatbot can initiate the conversation, gather preliminary information like name, email, and the reason for their inquiry. Then, based on the user's answers, the bot can either route the conversation to the appropriate live sales or support agent for immediate assistance or, if it's after hours, create a ticket or promise a follow-up. This method ensures no lead is lost while using your team's time efficiently. A successful implementation often requires a detailed HubSpot CRM Setup & Automation plan.

Step 1: Install the HubSpot Tracking Code

The foundational requirement for HubSpot chat, and nearly all of HubSpot's marketing and sales tools, is the HubSpot tracking code. This JavaScript snippet must be installed on every page of your website where you want the chat widget to appear and data to be collected. The code connects your website to your HubSpot portal, enabling the platform to track visitor activity, display pop-up forms, and power the chat widget itself. Without it, none of the subsequent steps will function.

To find your tracking code, navigate to your HubSpot portal and go to Settings by clicking the gear icon in the top right. In the left sidebar, under 'Tracking & Analytics', select 'Tracking Code'. Here, you will find the code snippet ready to be copied. Your Tracking ID, which is unique to your portal, will also be displayed at the top of this page. Ensure you are using the correct code for the correct portal, especially if you manage multiple HubSpot instances.

Installing the code can be done in several ways. If your website is built on the HubSpot CMS Hub, the code is installed automatically. For external sites like WordPress, you can use the official HubSpot plugin, which handles the installation for you. Alternatively, you can use Google Tag Manager to deploy the script, or have your developer manually add the code snippet to the `<head>` section of your website's HTML template. Once installed, HubSpot will automatically verify its presence.

Step 2: Configure a Live Chat 'Chatflow'

With the tracking code installed, you can create your first Chatflow. In your HubSpot portal, navigate to Conversations > Chatflows. Click 'Create chatflow' and choose the 'Live chat' option. This type of flow is designed to connect visitors directly to your team. The first step is to configure the 'Build' tab, where you will write your welcome message. Make it clear and inviting, for example, 'Have a question? A member of our team is here to help.'

Next, move to the 'Target' tab. This is where you determine where and when the chat widget appears. Do not simply show it on every page. For a targeted live chat, you might set the Website URL to 'is one of' and list your pricing and demo request pages. You can also target based on visitor information, such as showing a specific message to visitors from a certain country or to known contacts from a target account list. This precision prevents you from annoying casual blog readers while engaging high-intent visitors.

Finally, use the 'Options' tab to set availability and branding. You can customize the chat widget's color to match your brand. Critically, you must configure your availability settings. Define your business hours and what happens when a user tries to start a chat outside of those hours. The best practice is to automatically capture their email address and set the expectation that you will respond when you are back online. Failure to manage availability is a primary cause of poor user experience with live chat.

Key Chatflow Targeting Rules for Live Chat and Bots
Rule TypeExample Use CaseHubSpot Implementation (in 'Target' tab)
Website URLShow a sales chat on the pricing page.Visitor information and behavior > Website URL is https://.../pricing
Device TypeUse a shorter, more direct welcome message for mobile users.Visitor information and behavior > Device type is Mobile
Known ContactPersonalize the greeting for a returning lead: 'Welcome back, [First Name]!'Visitor information and behavior > Contact is known
List MembershipShow a priority support chat widget only to paying customers.Visitor information and behavior > Contact is a member of 'Active Customers' list
Time on pageOffer help only after a visitor has been on a page for 30 seconds.Visitor information and behavior > Time on page is more than 30 seconds

Step 3: Build a Lead Generation Chatbot

A lead generation bot automates the top of your funnel. Its goal is to ask qualifying questions and capture contact details 24/7. To build one, create a new Chatflow but select a template like 'Qualify leads'. The HubSpot bot builder uses a visual interface with actions and if/then branches. The conversation starts with a greeting, followed by a series of questions.

Design your questions to be simple and your answers easy to select via buttons. For example, instead of an open-ended 'How can I help?', present buttons like 'I need pricing,' 'I have a technical question,' or 'I want to speak to sales.' Each button can lead down a different conversational path. After a few qualifying questions, the bot should ask for an email address. Use the 'Ask a question' action and set the 'Property to save to' as 'Email'. This directly maps the user's input to the standard Email property in the CRM.

The final step in a lead gen bot is to set expectations. Once the email is collected, the bot should confirm what will happen next. For example, 'Thanks! A member of our team will review your request and get back to you within 24 hours.' This concludes the interaction professionally. A poorly designed bot can hurt your brand, so keeping the flow logical and concise is essential. If you are struggling with complex branching logic, consider a HubSpot Support & Maintenance engagement to have an expert review your setup.

Step 4: Automate Sales with a Meeting Booker Bot

One of the most powerful chatbot applications is to automate meeting scheduling. This removes friction from the sales process, allowing a high-intent prospect to book a demo or consultation directly from your website without any back-and-forth emails. To create this, start with the 'Book meetings' chatbot template in HubSpot. This flow is specifically designed to connect with the HubSpot meetings tool.

The initial part of the flow should qualify the visitor. You don't want just anyone booking time on your sales team's calendars. Ask one or two key questions, such as 'What is your company size?' or 'What is your role?'. Use if/then branches to ensure that only visitors who meet your ideal customer profile are presented with the meeting link. For example, if 'Company Size' is 'Under 10', you might route them to a resource page instead of a sales call.

Once qualified, use the 'Send a meeting link' action. You can link to a specific sales representative's calendar or a team round-robin link. The chatbot will display the calendar interface directly within the chat widget, allowing the visitor to select a time that works for them. Once booked, the meeting is automatically created in HubSpot, assigned to the correct rep, and logged on the contact's timeline. This level of automation is a cornerstone of an efficient sales process and a key service HubStack provides.

Step 5: Triage Support with a Knowledge Base Bot

For companies with a large customer base, a support triage bot can significantly reduce the volume of incoming tickets. This requires HubSpot Service Hub Professional or Enterprise and a populated Knowledge Base. The bot's purpose is to understand the user's issue and first attempt to solve it by suggesting relevant help articles. This provides instant answers for users and frees up your support team for more complex issues.

Start with the 'Support bot' template. The initial question should be open-ended, like 'What can I help you with today?'. The bot will take the user's free-text response and use it as a search query against your HubSpot Knowledge Base. It will then present the top three most relevant articles directly in the chat window. The user can click through and, hopefully, find their answer.

The critical part of this flow is the follow-up question: 'Did this solve your problem?'. If the user clicks 'Yes', the conversation ends. If they click 'No', the bot should then execute the escalation path. This could involve using the 'Submit a ticket' action, which creates a new ticket in your Service Hub pipeline with the full chat transcript attached. Alternatively, if it is during business hours, you could use the 'Transfer to agent' action to initiate a live chat with your support team. This tiered approach provides efficient, scalable customer service.

Chatflow Best Practices and Common Mistakes

A successful conversational marketing strategy goes beyond technical setup. The most common mistake is being too intrusive. Do not deploy a generic, pop-up chat widget on every single page the moment a visitor lands. Use the targeting rules to be strategic. Trigger chat on high-intent pages, after a user has shown engagement (e.g., time on page > 45 seconds), or for specific audiences like returning customers.

Always set clear expectations. If the chat is a bot, announce it. A simple 'Hi, I'm the HubStack assistant bot!' works well. If it's live chat, be transparent about your team's availability and response times. Nothing is more frustrating for a user than starting a 'live chat' only to be met with silence. Use the availability settings to manage this and collect contact information for follow-up when you're offline.

Finally, keep your bot conversations focused and brief. A chatbot is not the place for long, winding dialogues. Each bot should have one primary job: qualify a lead, book a meeting, or answer a question. Use buttons instead of open text fields whenever possible to guide the user and prevent errors. Regularly review your chat transcripts to identify where users get stuck or abandon the conversation, and use that data to refine your chatflows. Proper HubSpot Technical SEO can ensure your site is fast enough to handle these scripts without a performance penalty.

FAQ

Questions people actually ask AI about this.

Is HubSpot live chat free?

Yes, HubSpot offers a free version of its live chat tool as part of the free HubSpot CRM. It includes basic functionality, but more advanced features like chatbot branching logic and routing require paid Hubs like Marketing Hub or Service Hub Starter and above.

How do I add HubSpot chat to a WordPress website?

The easiest way is to install the official 'HubSpot – CRM, Email Marketing, Live Chat, Forms & Analytics' plugin from the WordPress repository. After activating it, you connect it to your HubSpot account, and it will automatically add the necessary tracking code to your site to enable chat.

Can HubSpot chatbots book meetings?

Yes. You can build a chatbot that connects directly to the HubSpot Meetings tool. The bot can qualify a prospect and then display a sales rep's calendar directly in the chat widget for instant booking, requiring a paid Sales Hub seat.

Where do HubSpot chat conversations go?

All conversations are stored in the Conversations Inbox within your HubSpot portal. Additionally, the full transcript of the chat is automatically saved to the timeline of the corresponding contact record in the HubSpot CRM.

Can I change the HubSpot chat widget color?

Yes, you can customize the accent color of the chat widget to match your website's branding. This is done within the 'Options' tab when you are creating or editing a specific Chatflow in your HubSpot portal.

How do I turn off the HubSpot chat widget on certain pages?

In the 'Target' tab of your Chatflow settings, you can set targeting rules. To exclude pages, create a rule where 'Website URL' does not contain the slug of the pages you wish to exclude, such as '/blog' or '/careers'.

What is a 'Chatflow' in HubSpot?

A 'Chatflow' is HubSpot's term for a single conversational workflow. It can be a live chat that connects to your team or an automated chatbot with a pre-built script. Each Chatflow has its own unique welcome message, targeting rules, and configuration.

Does HubSpot chat work on mobile?

Yes, the HubSpot chat widget is fully responsive and functions on mobile devices. You can also use targeting rules to display a different, perhaps more concise, welcome message specifically for visitors on mobile.

Can I connect HubSpot chat to Slack?

Yes, HubSpot offers a direct integration with Slack. You can configure it so that you receive notifications of new incoming chats in a specific Slack channel and can even respond to the visitor directly from within Slack.

How do I route chats to the right person?

In paid HubSpot tiers, you can set up routing rules. For chatbots, you can use if/then branches to assign conversations based on user answers. For live chat, you can set rules to assign chats to specific teams or individuals based on criteria like page URL or contact ownership.

Proof

What this looks like when it's done right.

Related

Technical SEO services

Redirect mapping, metadata baselines, canonical configuration, schema and indexing controls — handled as an ongoing programme rather than a launch-week scramble.

HubSpot technical SEO
Keep reading

How to Set Up HubSpot CRM for a 30-Person Team (Without Overbuilding It)

Most failed CRM rollouts are overbuilt, not underbuilt. Here is the order we configure HubSpot for a 30-person company — and everything we deliberately leave out of version one.

Read article