5 Ways To Improve Your Chatbot By Using Conditions
One of the most simple but yet powerful features within Flow.ai are conditions. You might know them as if/else statements. With these statements you can create advanced cases in a simple way without coding.
Conditions, or if/else statements, are very simple, no advanced AI and NLP here. Let’s write down an if/else statement:
“If you are hungry, then you grab some food, or else you keep designing awesome Flows.”
In the same way you can combine different statements:
“If you are hungry and thirsty, grab some food and something to drink, else keep designing Flows.”
You encounter this kind of logic everyday, in human decision making as well as chatbots and can definitely add value to your conversational experience.
How it works
To create condition in Flow.ai you can drag and drop the condition trigger onto your canvas. To set up the condition, select your condition and add your rules on the right panel. This panel allows you set up your rules and combine rules.
You can really create great conversational experience by incorporating one or more of the following in your conditions:
- Business hours
Let’s have a look at how you can incorporate those in your chatbot design.
1. Conditional content based on answers/parameters
Let’s kick it off with conditional use case that is very broad. Within the Flow.ai platform you can capture and extract user input and store this in a parameter. You’ll end up with a parameter that contains the input of the user. With conditions you adjust your reply based on the parameter that contains user input.
Let’s have a look at an example where the intent is “order”. At the Flow.ai restaurant you can order food and drinks and we set up the following conditions:
- If the user orders food, then we ask for a drink
- If the user orders a drink, then we ask for food
- If the user order food and a drink, then we proceed to the checkout
2. Omnichannel support
When you’re connecting flow.ai to multiple channels such as Web, Messenger, WhatsApp and Telegram, you will notice that some of the channels support more components than others. Facebook Messenger and the Web Widget supports Cards and Carousels while these are not support within e.g. WhatsApp. With conditions you can tailor the experience to each of the channels.
3. Tags for Marketing
Within Flow.ai you can add tags to people which is great for marketing. If a users is interested in women’s clothing, simply add a tag. When that user asks for new releases you can directly show relevant content.
4. Profile Information
If your bot is connected to messaging platform like WhatsApp or Messenger you will receive profile information that you can use. You can use this information to Create Context (see 3. Profile Information) and you can use conditions to alter the workflow.
In the example below the user did not receive a confirmation e-mail. If the e-mail address of the user is know we can check his latest order and re-send a confirmation e-mail. Else, we ask for the user’s e-mail address.
5. Business Hours
Conditions in combination with Business Hours works great when there is takeover required. If it its within business hours you can follow up with livechat. Else, we create a ticket to follow up the next day.