Choose your rule-based chatbot actions·续

Send to team member

Permissions required Account access permissions are required to use the Send to team member action.

Seats required An assigned Sales or Service Seat is required for a team member to be included in routing rules. Learn more about the additional requirements for automatically routing conversations.

Hand off a conversation to a specific user or team based on their availability to chat. If you have set up operating hours for your bot, the conversation will only be routed to an available team member during those hours.

  • Action name (internal only): enter a name for this routing action.
  • Automatically assign to: click the dropdown menu and select who incoming conversations should be routed to:

    • No one: the message will be sent to the Unassigned view in the inbox for your team members to triage.
    • Specific users and teams: route conversations to the users or teams selected. Select the users or team names from the Specific users and teams dropdown menu.
    • Contact owner: route conversations to a contact's owner. The contact must have an owner assigned to their record and be tracked with a cookie. If the owner is offline, the message will be emailed to the visitor's owner. To route messages from unowned contacts to a default user, click the If there is no owner, assign to dropdown menu and select a user. The user you select must have an assigned Sales or Service seat.
  • If team member is available, show: enter a specific message to display when your user(s) or team(s) are available.
  • If team members are away or chat is outside business hours, show: enter a specific message to display if no one is available to chat.
  • If team member is at max capacity, show: enter a message that will appear when the team member is at their configured capacity.
  • If unassigned, show: enter a specific message to display when the message is received but hasn't been assigned to a specific user yet.

Please note: before a conversation begins, the chatbot will check if any of the selected users in the Send to team member action are available. If there is a specified user selected and they are not available, the away message will appear instead.

Send to customer agent

Seats required An assigned Sales or Service Seat is required to use the Send to customer agent bot action.

HubSpot Credits required HubSpot Credits are required to use the chatbot action Send to customer agent.

Assign a conversation or ticket to the customer agent.

You can choose to have the agent use the conversation history to pick up where it left off, send a predefined message, or provide specific instructions to guide the agent's response.

  • Action name (internal only): enter a name for this routing action.

    • Try to answer the most recent question on the conversation : allow the agent to continue the conversation from where it left off. The customer agent will attempt to respond to the visitor’s most recent message, using the conversation history for context.
    • Reply with the provided message : send a predefined message when the chat is handed off to the customer agent. This message is sent automatically at the time of handoff,**** regardless of the prior conversation context.
    • In the Reply with the provided message text box, enter a standard greeting, acknowledgment, or instruction.
    • Use the toolbar in the bottom left to add rich text formatting (e.g., bold, italics, etc.), insert files or videos, or add personalization tokens.
    • Try to answer the provided question given the context of the conversation : provide the agent with instructions to guide their response based on the previous conversation.
    • In the Try to answer the provided question given the context of the conversation field, enter instructions for the customer agent. For example, Based on the previous message about pricing, help the visitor find a plan that meets their needs.
    • In the bottom left, click the attach Attach icon to insert files, or add a personalization token.
    • To execute the Send to Customer Agent action only during the chat's business hours, select Respect office hours.
  • To determine what happens if the customer agent can't answer, click agent handoff settings. Learn more about setting up the customer agent's handoff process.

Please note: after April 27, 2026, any fallback routing rules configured in the Send to customer agent action will be replaced by your customer agent's handoff settings. If you see a warning on this action in an existing bot, click Update this module to apply the agent's global handoff configuration. Learn more about customizing the customer agent's handoff process.

  • After setting up your action, at the bottom, Click Save.

Enroll in workflow

Subscription required A Professional or Enterprise subscription is required to use the bot action Enroll in workflow.

Workflow permissions are required to use the action Enroll in workflow.

Use this action to enroll the contact you're chatting with in a specific workflow. If a contact record doesn't exist for the visitor you're chatting with, this action will be skipped.

  • Action name (internal only): enter a name for this workflow action.
  • Workflow: user the dropdown menu to choose which active workflow contacts should be enrolled in.

Trigger a webhook

Subscription required A Data Hub Professional or Enterprise subscription is required to use the action Trigger a webhook.

Use webhooks in your rule-based chatbot to send or retrieve information between HubSpot and other external tools.

  • Action name (internal only): enter a name for this action.
  • Webhook URL: enter the endpoint URL for the webhook.
  • Wait for webhook feedback: select the checkbox if you want to wait for the webhook to return information before moving to the next action.
  • Error message: enter text for the error message.

Learn more about webhooks in the developers webhooks documentation. If you have questions about your specific implementation of webhooks with HubSpot, reach out on the HubSpot Developers Forums.

Run a code snippet

Please note: on August 31st, Node.js 18.x and 20.x runtimes will be sunset. After this date, you'll won't be able to edit code snippets that use these runtimes. To continue editing these snippets, update them to use Node.js 24.x.

To update a code snippet, edit the Run a code snippet action and select Node.js 24.x from the Runtime dropdown menu.

Subscription required A Data Hub Professional or Enterprise subscription is required to use the bot action Run a code snippet.

Use this action to run a code snippet at a step in the chatbot conversation flow.

  • Action name (internal only): enter a name for this action.
  • Snippet description: enter a description of the code snippet.
  • Runtime: the default template for Node.js 24.x is included in the code snippet editor. Click Open in full page editor to make edits in another window.

Learn more about running code snippets in bots. chatflows-run-code-snippet-bot-action

Book a meeting

Use this action to share a meetings link through a chatbot message.

  • Action name (internal only): enter a name for this action.
  • Meetings link: use thedropdown menu to select an existing meeting link, or create a new link.
  • Successful booking message: enter a message to display when a visitor successfully books a meeting with your team.

Any quick replies that you configure as part of a subsequent Ask question action will appear automatically during the chatbot conversation, as long as the following are true:

  • The meeting link used in the chatbot action does not include any custom fields other than first name, last name, and email.
  • First name, last name, and email are collected before the meeting action is reached in the chatbot flow.
  • The meeting link has times available in the near future.
  • CAPTCHA is not turned on for the meeting link's booking form.
  • The meeting link's Data privacy switch is toggled off.

Please note: if you're using custom form fields, the chatbot cannot collect responses to the custom questions during the conversation and will instead redirect the visitor to the meeting booking page. If you want your visitor to book a meeting with you without leaving the chat window, learn more in this HubSpot Community post: Use the 'Book a meeting' chatbot action with custom fields.

If/then branches

Subscription required A Professional or Enterprise subscription is required to add custom conditions to the bot.

Use if/then branches customize the flow of your bot's conversation. You can add conditions to tell a chatbot to skip to a specific action based on the visitor's response, a contact property value, or agent availability. Learn more about using if/then branches with bots.

Learn more about creating a chatflow that includes a bot.

Preview and test your rule-based chatbot

  1. In your HubSpot account, click More , then navigate to Service > Chatflows. If More doesn't appear in your account, navigate to Service > Chatflows directly.
  2. Hover over the rule-based chatbot and click Edit.
  3. In the upper right, click Preview.
  4. In the right panel, enter questions to test the chatbot. Any actions performed, such as creating a meeting or contact, will be reflected in your HubSpot account. Availability settings are ignored for this preview.
  5. To clear the chat, click Restart.
  6. To turn on the chatbot, toggle the switch on. enable-chatflow

When your chatbot is live on your website pages, visitors can start a conversation with the bot. You can then view and respond to incoming messages in your conversations inbox or help desk or analyze your bot's performance.

Edit your rule-based chatbot

  1. In your HubSpot account, click More , then navigate to Service > Chatflows. If More doesn't appear in your account, navigate to Service > Chatflows directly.
  2. Hover over the rule-based chatbot and click Edit.
  3. Navigate between the *Build , Knowledge Base , Target , Display and Options* tabs to edit your chatflow.
  4. To edit or delete an action, on the Build tab, click the Options dropdown menu on the action. Then, select an option:
    • Edit action : edit the action's name, message, quick replies, and property settings.
    • Manage if/then branches : add or edit any configured if/then branches.
    • Delete action : remove the action from the chatflow.

Please note: **** you can't delete an action that is using an if/then branch. You must delete the if/then branch first, then delete the action.

  1. Once you're done, click *Save* in the bottom left.

Chatflows

Choose your rule-based chatbot actions·续 - 图3

Thank you for your feedback, it means a lot to us.

This form is used for documentation feedback only. Learn how to get help with HubSpot.

Table of contents Menu

New to HubSpot? Use these guides to get started.