Updated: 8/9/2024

How to create different flows on the platform?

In this material, you will learn how to create two broadcasts for different channels. For example, WhatsApp and Webchat, or for two WhatsApp numbers on the same platform.


In this article, you will learn how to create different conversational flows based on the channel through which the end user communicates with the bot. You can define unique experiences for each channel, such as having a special flow for WhatsApp and another for Web, or for two different WhatsApp numbers, all within the same platform.


Certain specific channels may not support some Botmaker functionalities. For instance, WhatsApp does not support the "Carousel" functionality, whereas Messenger, Instagram, and Webchat do. Therefore, within the platform, you can create specific flows for each channel without needing to create separate bots.


How to use the channel variable:

The variable name is ${chatPlatform}, which stores the channel where the user is interacting with the bot. With this variable, you can define different responses for the user based on the channel, creating entirely different experiences for each.


Here's an example in Bot Designer:


  1. In the conversational flows, add a condition to define the flow based on the channel.



  1. Select the ${chatPlatform} variable and specify the channel for which you want to develop the flow.



  1. Configure the desired flow on the left side, under the "If true" condition.




This allows you to create a unique conversational experience tailored to a specific channel.


Here's another example in Bot 1.0:


  1. Within the intention you want to customize, select the block to condition for the particular flow based on the selected channel.



2- Similar to Bot Designer, select the ${chatPlatform} variable and specify the channel where you want to develop the flow.



  1. Configure the information you want to display within the block.




This approach enables you to define different conversational experiences within the same bot for different channels.



Written by: Botmaker Team

Updated: 07/04/2024