Learn how to use intents to create more complex chatbot flows
To make your intents work, there are two essential steps:
Currently, intent matching can be enabled in Text input blocks.
When users send messages using the Text block, you can configure whether these messages should be checked against one or more defined intents. This allows you to control when intent matching occurs and trigger appropriate flows based on the matches.
Match intent
option, click the +
button.When a user sends a message, the chatbot will check if the message matches any of the selected intents and trigger the appropriate flow. If there are no matches, the flow will continue normally.
There are two ways to define the actions for an intent:
Intent triggers are flows that will be executed when an intent is matched. These triggers are global, meaning that they will be executed by any block that matches the intent. This is useful if you want to create a standard response for an intent that can be used in multiple places in your chatbot.
For example, if you create an Intent trigger for Order Tracking
:
This provides a consistent response when users ask about order tracking anywhere in your chatbot.
To add the trigger:
Blocks
from the sidebar.Triggers
section, drag and drop the Intent
block onto the canvas.Click on the block to open the editor.
Select an intent this trigger belongs to.
Sometimes you want different flows for the same intent depending on where in the conversation it was matched. This is where local triggers come in.
Match intent
option and click the Local trigger
icon as shown below. For example, we will enable local trigger for the Order status
intent.Order status
intent, the flow defined here will be executed instead of the global trigger.Note that the local trigger takes precedence over the global trigger when enabled.
You can have both global and local triggers for intents:
This flexibility allows you to:
If no intent is matched, the chatbot will continue with the flow as normal.