Next, set your bot to display outside of business hours:
In your HubSpot account, navigate to Conversations > Chatflows.
Hover over the bot and click Edit.
In the left sidebar, click the Options tab.
Click the Availability dropdown menu and select Showalways.
With this set up, the chat widget will always appear on your site. Set up an if/then branch so that if a team member is available, the bot skips to the Send to team member action:
Select a bot action. You can choose any action. For example, choose the action after the welcome message to immediately route visitors to your team. Or, ask a few questions to gather identifying information first, such as the visitor's name or email address.
In the right panel, click the If/then branches tab.
Click Add if/then branch.
Click the first dropdown menu and select agent availability.
Click the next dropdown menu and decide who to route visitors to based on availability:
Specific users and teams: send the visitor down a specific path based on the availability of a specific users or teams. Click the Add a user or team dropdown menu and select the checkboxes next to the users or teams to include.
Contact owner: send the visitor down a specific path based on their contact owner's availability. Click theNew visitor fallback dropdown menu and select a fallback option for any new or unassigned visitors who start a conversation.
Click the last dropdown menu and select is available.
To send visitors to a team member if all of the conditions above are true, click the Next action if all conditions are true and select Send to team member. Learn how to set up the Send to team member action in your bot's flow.
With this set up, the conversation will be routed to one of the selected, available team members during business hours. Outside of business hours, visitors can chat with the bot, then when they reach the end of the flow the conversation will be left in the Unassigned view in the inbox for the team to triage the next morning.
Please note: keep in mind that if you have multiple chatflows set up in your account, chatflow prioritization does not check team availability when deciding which chatflow to display.