cart-lift
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/salesultimo/public_html/wp-includes/functions.php on line 6114wpfnl
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/salesultimo/public_html/wp-includes/functions.php on line 6114rank-math
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/salesultimo/public_html/wp-includes/functions.php on line 6114woocommerce-paypal-payments
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/salesultimo/public_html/wp-includes/functions.php on line 6114woocommerce-paypal-payments
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/salesultimo/public_html/wp-includes/functions.php on line 6114To build a condition and rules-based messenger bot, you have to use an element called condition that will work as the entry point of the conditional conversation.<\/p>\n
Let\u2019s see how to build conditions and a rules-based messenger bot.<\/p>\n
First, go to the editor of the visual Flow Builder. Now add the trigger element to the editor. After that, double-click on the trigger element to add data. Instantly, a form field will appear on the left side of the editor. Now enter \u2018condition\u2019 as the keyword for the bot we are going to build. Now click on the ok button. If a user writes \u2018condition\u2019 in the messenger, the bot will start.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Now connect the trigger element to the Start Bot Flow. Now double-click on the Start Bot Flow and a form field will appear on the left side of the editor. Give a title for the bot in the title field. For example, I write \u2018condition demo\u2019 in the title field. Others fields are optional. You can keep them blank. Now click on the ok button.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Now add the condition element by dragging and dropping and connect it with Start Bot Flow. Now double-click on the condition element. Instantly, a form field will appear on the left side of the editor. At the top of the form field, you will see two radio buttons-- All Match and Any Match. And you have to select All Match or Any Match. Note that if you select All Match, all the conditions have to be true to evaluate the expression. On the other hand, if you select Any Match, at least one condition has to be true to evaluate the expression.<\/p>\n
Since we will configure only one condition, you can select any of them.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Then you will see the system field and the custom field. Both the system field and the custom field contain initial fields to configure conditions. Of course, by clicking on the plus sign next to the system field and custom field, you can add more fields to configure conditions on them. Of course, you can remove extra condition by clicking remove button.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Let's set a condition to check if the user is male or female and send messages accordingly:<\/p>\n
Click on the Variable field and a drop-down menu of the different variables will appear. Now you have to select a variable. Likewise, you have to select an operator from the operator field and a value from the value field.<\/p>\n
I select Gender as the variable, and Equal(=) as the operator, and Male as the value. Now I click on the ok button to insert data to the condition element.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
On the condition element, you will see two sockets \u2013 True and False. If the condition evaluates to true, the message connecting to the True socket will be sent. Contrary, if the condition evaluates to false, the message connecting to the False socket will be sent.<\/p>\n
Well, now add a text element and connect it to the socket called True. Then write a message addressing the user as Mr. the message that will be sent to the male users.<\/p>\n
Likewise, add another text element and connect it to the False socket and write a message, addressing the user as Miss\/Mrs, the message that will be sent to the female users.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Now add a button element and connect it to both text elements. Well, write a button text and select new postback as the button type and click the ok button. Instantly, a new postback element connected to the button element will appear. Now give a title for the new postback.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Now I will set another condition to see whether the system has the email address of the user or not. If the system has the email address of a user, the bot will inform the user that the updated information will be sent to the email address. On the other hand, if the system doesn\u2019t have the email address of a specific user, the bot will ask for the email address from the user.<\/p>\n
Let\u2019s set a condition to check if the system has the email address of a specific user or not and send messages accordingly:<\/p>\n
Add condition element and connect it to the new postback element. After that, click on the condition element to configure a condition. If you configure one condition, it doesn\u2019t matter whether you select All Match or Any Match.<\/p>\n
Like before, select Email as the variable and Has Value as the operator. And click on the ok button. That\u2019s all. The condition is set.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Now add two text element and connect them to the true and false sockets of the condition element. Now click on the text element connecting to the true element and write a text message to inform the user that the updated information will be emailed to the user.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Then click on the other text element connecting to the false socket and write a message to inform the user that the system doesn\u2019t have the email address and tell the user to click on a quick reply button to send the email address.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
If the condition becomes true, the text message connecting to the True socket will be sent. On the other hand, if the condition becomes false, the text message connecting to the False socket will be sent. That is if the system has the email address of a specific user, the bot will inform the user that the updated information will be sent. And if the system doesn\u2019t have the email address of a user, the bot will ask for the email user.<\/p>\n
<\/p>\n
Now add a quick reply button and connect it to the text element connecting to the false socket. Double-click on the quick reply element, select email as the Quick Reply type and click on the ok button. With the reply button, the bot will collect the email address from the user.<\/p>\n
<\/p>\n
<\/p>\n
Now click on the save button or press Ctrl + s on the keyboard to save your bot.<\/p>\n
If everything is ok, the bot will work accordingly. That is, if the user is male, the bot will address him as Mr and if the user is female, the bot will address her as Mrs\/Miss. Moreover, if the system has the email address of a user, the bot will inform the user that updated information will be emailed to the user and if the system doesn\u2019t have the email address of a specific user, the bot will ask for the email address of the user.<\/p>\n
Now let\u2019s see how the bot does work:<\/p>\n
<\/p>\n
<\/p>\n
I write condition in the messenger. The message matches the keyword of the condition-based bot we have made and the first condition of the bot start. The condition checks if I am male or female. It finds out that I am male and sends me the text message that addresses me as Mr. After that I click on the yes button, and the second condition starts. It checks if the system has my email address and finds out that the system doesn\u2019t have my email address. So it asks me for my email number.<\/p>\n
You can also watch the video tutorial below to learn how to build a condition-based Facebook Messenger bot on ChatPion\u2019s Flow Builder.<\/p>\n","protected":false},"excerpt":{"rendered":"
To build a condition and rules-based messenger bot, you have to use an element called condition that will work as the entry point of the conditional conversation. Let\u2019s see how to build conditions and a rules-based messenger bot. First, go to the editor of the visual Flow Builder. Now add the trigger element to the […]<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false,"order-bump-settings":[],"_wpfnl_thankyou_order_overview":"on","_wpfnl_thankyou_order_details":"on","_wpfnl_thankyou_billing_details":"on","_wpfnl_thankyou_shipping_details":"on","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[22,33],"doc_tag":[21,34],"class_list":["post-3134","docs","type-docs","status-publish","hentry","doc_category-messenger-tools","doc_category-visual-flow-builder","doc_tag-messenger-tools","doc_tag-visual-flow-builder"],"year_month":"2025-01","word_count":1248,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Technavel","author_nicename":"mobenex","author_url":"https:\/\/salesultimo.com\/author\/mobenex\/"},"doc_category_info":[{"term_name":"Messenger Tools","term_url":"https:\/\/salesultimo.com\/docs-category\/messenger-tools\/"},{"term_name":"Visual Flow Builder","term_url":"https:\/\/salesultimo.com\/docs-category\/visual-flow-builder\/"}],"doc_tag_info":[{"term_name":"Messenger Tools","term_url":"https:\/\/salesultimo.com\/docs-tag\/messenger-tools\/"},{"term_name":"Visual Flow Builder","term_url":"https:\/\/salesultimo.com\/docs-tag\/visual-flow-builder\/"}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/docs\/3134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/comments?post=3134"}],"version-history":[{"count":4,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/docs\/3134\/revisions"}],"predecessor-version":[{"id":3466,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/docs\/3134\/revisions\/3466"}],"wp:attachment":[{"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/media?parent=3134"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/doc_category?post=3134"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/salesultimo.com\/wp-json\/wp\/v2\/doc_tag?post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}