If/then branches are conditional statements used in programming and chatbot design in HubSpot to control the flow of a conversation based on specific conditions. They allow you to define different paths or actions for the bot depending on your set criteria.
To customize the flow of bot conversations, you can utilize if/then branches. By incorporating conditions, you can instruct your bot to follow specific actions based on the visitor's response, a contact property value, or your team's availability. Each quick reply response or bot action can have its own if/then branch.
Similar to workflow branches, if/then branches allow you to direct visitors along different paths based on predefined criteria. For instance, you can guide visitors to different bot actions depending on whether they answer "yes" or "no" to a question posed by the bot. This feature enables you to trigger distinct bot actions and tailor the conversation flow to each individual visitor, taking into account the information they provide.
To incorporate an if/then branch into a bot action and determine the subsequent action based on specific visitor criteria, follow these steps:
To establish conditions for this action, you can determine the logic based on the user's response, a contact property value, or agent availability. Follow these steps:
To direct a visitor along a specific path based on a contact property value, follow these steps:
Another option is to redirect a visitor back to a previous action. Follow these steps:
When you click on the dropdown menu labeled "Next action if all conditions are true," select an earlier action from the available options.
By doing so, the contact will be directed to "loop back" to the previous step.
Your chatflow is ready to go live on your website. If you need any assistance, feel free to contact AvantaHub HubSpot experts.