Documentation - Khoros Flow
  • Getting started
  • Triggers & Replies
  • Actions
  • Integrations
  • Guides
  • API

›Design How To​s

Guides

  • Overview
  • Learn

    • Beginner guide
    • Advanced guide

    Design How To​s

    • How to use timers
    • How to integrate with Zapier
    • How to increase web widget engagement
    • How to use Conditions
    • How to set parameters using buttons
    • How to send conversational reviews
    • Count sessions per Channel or Widget
    • How to use entities instead of multiple intents
    • How to handle multiple inbound messages
    • How to branch your chatbot
    • How to capture user input
    • How to change the language of your bot
    • How to clear the Flow web widget
    • How to create an Arabic speaking bot
    • How to create and manage multiple chatbots
    • How to create buttons
    • How to duplicate flows
    • How to export and duplicate a project
    • How to handle unknown input
    • How to use string templates
    • How to jump to the middle of a flow
    • How to loop flows
    • How to re-use intents
    • How to reset your password
    • How to schedule and broadcast chatbot messages
    • How to structure flows
    • How to use Business Hours
    • How to use carousels
    • How to use data to create context
    • How to use Quick Replies
    • How to pause a bot
    • How to send and receive files or attachments
    • How to deal with unexpected input
    • How to gather user feedback
    • How to track links
    • How to use WhatsApp click to chat links
    • How to accept payments
    • How to deflect calls to WhatsApp
    • How to delay replies
    • How to engage with customers using SMS
    • How to import contacts
    • How to test your WhatsApp chatbot
    • How to use Messenger m.me links
    • How to do multi-channel design

    Code How To​s

    • Code actions best practices
    • How to trigger channel specific flows
    • How to use math in a bot
    • How to create a location-aware bot
    • Create Parameters with Cloud Code Actions
    • How to use quick replies in code actions
    • How to add a delayed opening to the web widget
    • How to build a chatbot quiz for WhatsApp
    • How to catch API errors within Code actions
    • How to verify user input
    • How to check if an object property is undefined
    • How to create a dynamic opening based on the part of t…
    • How to create a Dynamic URL
    • How to create a Webview
    • Handle images in 3 steps
    • How to retrieve data from a database
    • How to connect with an external database
    • How to route back to the last flow
    • How to route your chatbot based on numeric input
    • How to send a confirmation email
    • How to send chatbot data to a database
    • How to send emails to multiple recipients
    • How to create Google maps images
    • How to use QR codes
    • How to use Javascript Comments in actions
    • How to send emails
    • How to store Parameters
    • How to capture and validate an address
    • How to find your Organization ID
    • How to work with dates
    • How to integrate with Wordpress
    • How to check if the user is on mobile or desktop
    • How to trigger bot events based on the page
    • How to combine functions in Javascript
    • How to set profile attributes

    Handover How To​s

    • Fallback
    • Chatbot Handoff How to nail the bot to human handoff
    • How to pause and resume a bot in Front
    • How to Enable or Disable Push Notification
    • How to hand over to a human agent
    • Send text versus trigger event
    • How to setup handoff with Front
    • THow to trigger flows inside Front

    Other

    • Audience
    • Projects
    • Analytics
    • Data retention

How to use 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.

If/Else statements

WhatsApp Chatbot

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.

Chatbot Conditions and if/else statements

You can really create great conversational experience by incorporating one or more of the following in your conditions:

  1. Parameters
  2. Channel
  3. Tag
  4. User
  5. 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
Order Food Chatbot

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.

Omnichannel Chatbot

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.

Conditions for Marketing and Tags

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.

Conditions for User Profile

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.

Conditions for Business Hours Chatbot
← How to increase web widget engagementHow to set parameters using buttons →
  • If/Else statements
  • How it works
  • 1. Conditional content based on answers/parameters
  • 2. Omnichannel support
  • 3. Tags for Marketing
  • 4. Profile Information
  • 5. Business Hours
Docs
Getting StartedBasic conceptsGuides
Platform
StatusSlack community
Resources
Blog
Copyright © 2021 Khoros Flow