<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Steer the conversation based on Conditions in Chatbot</title>
    <link>https://community.sinch.com/t5/Chatbot/Steer-the-conversation-based-on-Conditions/ta-p/13214</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;A Condition block allows to steer the flow based "if, then" logic statements. The Condition &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Blocks-and-steps/ta-p/13086" target="_blank" rel="noopener"&gt;block&lt;/A&gt;&amp;nbsp;checks &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variables&lt;/A&gt; and guides the user in different places of the conversation based on it.&lt;!--         notionvc: b6de8121-c6b9-43b8-beec-892e9097e8e6         --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;span class="lia-unicode-emoji" title=":movie_camera:"&gt;🎥&lt;/span&gt;You prefer to watch a quick hands-on tutorial? Check out our new &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Bot-builder-video-tutorial/ta-p/13514" target="_blank" rel="noopener"&gt;bot builder video tutorial&lt;/A&gt;!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a Condition block to your flow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Navigate-your-canvas/ta-p/13079" target="_blank" rel="noopener"&gt;Drag and drop&lt;/A&gt; a &lt;STRONG&gt;Condition&lt;/STRONG&gt; block from the side panel onto the canvas.&lt;/LI&gt;&lt;LI&gt;Click the &lt;STRONG&gt;+&lt;/STRONG&gt; button.&lt;/LI&gt;&lt;LI&gt;In the previous flow, we used a &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Collect-input-from-your-user/ta-p/13186" target="_blank" rel="noopener"&gt;Collect input&lt;/A&gt; block to ask the customer how many pizzas they want to order, and we saved their response in the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Save-a-variable-under-button-click/ta-p/13176" target="_blank" rel="noopener"&gt;variable&lt;/A&gt; 'order_amount'. In this case, choose the variable 'order_amount' under the &lt;STRONG&gt;If&lt;/STRONG&gt; condition. This selected variable will represent the amount of pizzas ordered. If a customer orders more than five pizzas, they will be automatically redirected to a special conversation where they can claim a complimentary pizza.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Condition (3) (2).gif" style="width: 708px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3902i039E4D245065BEBB/image-dimensions/708x398?v=v2" width="708" height="398" role="button" title="Condition (3) (2).gif" alt="Condition (3) (2).gif" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;4.&amp;nbsp;Next, select &lt;STRONG&gt;greater than&lt;/STRONG&gt;&amp;nbsp;and enter 5 in the next input field. This is because we will be offering free pizza for orders greater than 5.&lt;!--         notionvc: 55dfb0a0-c27e-47d0-af83-e775ee7514b1         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2023-11-24_at_14.10.02.png" style="width: 711px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3903i9E194704395F41FC/image-dimensions/711x418?v=v2" width="711" height="418" role="button" title="Screenshot_2023-11-24_at_14.10.02.png" alt="Screenshot_2023-11-24_at_14.10.02.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;5. If the user's response meets this statement, the conversation will go to a special block called 'Claim Free Pizza'. To make this happen, you can set up a &lt;STRONG&gt;Go To&lt;/STRONG&gt;. You can either pick an existing bot dialog or make a new one. Since we don't have a block named 'Claim One Free Pizza' yet, we'll make a new one.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.15.37.png" style="width: 713px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3904iE887D596A910254D/image-dimensions/713x417?v=v2" width="713" height="417" role="button" title="Screenshot 2023-11-24 at 14.15.37.png" alt="Screenshot 2023-11-24 at 14.15.37.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;!--         notionvc: 1eb08c12-9d2a-4be4-8ec3-1c62af51e924         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;5. The &lt;STRONG&gt;Else&lt;/STRONG&gt; statement is executed when none of the other paths are applicable. You have the flexibility to decide what action should be taken when none of the conditions are met. In this case, if the customer's orders are not more than five, the &lt;STRONG&gt;Else&lt;/STRONG&gt; section will redirect them to the purchase flow.&lt;!--         notionvc: 93997a87-b334-479b-a744-0b973e240475         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.16.42.png" style="width: 713px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3905iC9106572D5627DFC/image-dimensions/713x417?v=v2" width="713" height="417" role="button" title="Screenshot 2023-11-24 at 14.16.42.png" alt="Screenshot 2023-11-24 at 14.16.42.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;6. Next, click on &lt;STRONG&gt;Create&lt;/STRONG&gt; and add a message to the 'Claim free pizza' block and the 'purchase flow'.&lt;!--         notionvc: 0fdc494b-c817-4176-a2a1-abf52f6c9e55         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.21.01.png" style="width: 708px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3906i660F6C5354F7EF87/image-dimensions/708x414?v=v2" width="708" height="414" role="button" title="Screenshot 2023-11-24 at 14.21.01.png" alt="Screenshot 2023-11-24 at 14.21.01.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;7. &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Test-your-bot/ta-p/13296" target="_blank" rel="noopener"&gt;Test&lt;/A&gt; the result to see how your changes perform.&amp;nbsp;&lt;!--         notionvc: 4d4239e5-2a25-4725-9b8c-86be8f7e9f43         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2023-11-24 at 14.23.35.png" style="width: 319px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3907i3EEA7B78B685DAB7/image-dimensions/319x715?v=v2" width="319" height="715" role="button" title="Screenshot 2023-11-24 at 14.23.35.png" alt="Screenshot 2023-11-24 at 14.23.35.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--         notionvc: bc128056-7d3e-4f66-bb40-9cfc3b04642d         --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Save-a-variable-under-button-click/ta-p/13176" target="_blank" rel="noopener"&gt;[New bot builder] Save a variable based on button click&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Add-collect-input-in-your-flow/ta-p/13204" target="_blank" rel="noopener"&gt;[New bot builder] Collect input from your users&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Make-a-channel-router-flow/ta-p/13092" target="_blank" rel="noopener"&gt;[New bot builder] Make a channel router flow&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 Jan 2024 12:25:35 GMT</pubDate>
    <dc:creator>Agatha_Morisca</dc:creator>
    <dc:date>2024-01-02T12:25:35Z</dc:date>
    <item>
      <title>Steer the conversation based on Conditions</title>
      <link>https://community.sinch.com/t5/Chatbot/Steer-the-conversation-based-on-Conditions/ta-p/13214</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;A Condition block allows to steer the flow based "if, then" logic statements. The Condition &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Blocks-and-steps/ta-p/13086" target="_blank" rel="noopener"&gt;block&lt;/A&gt;&amp;nbsp;checks &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variables&lt;/A&gt; and guides the user in different places of the conversation based on it.&lt;!--         notionvc: b6de8121-c6b9-43b8-beec-892e9097e8e6         --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;span class="lia-unicode-emoji" title=":movie_camera:"&gt;🎥&lt;/span&gt;You prefer to watch a quick hands-on tutorial? Check out our new &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Bot-builder-video-tutorial/ta-p/13514" target="_blank" rel="noopener"&gt;bot builder video tutorial&lt;/A&gt;!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a Condition block to your flow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Navigate-your-canvas/ta-p/13079" target="_blank" rel="noopener"&gt;Drag and drop&lt;/A&gt; a &lt;STRONG&gt;Condition&lt;/STRONG&gt; block from the side panel onto the canvas.&lt;/LI&gt;&lt;LI&gt;Click the &lt;STRONG&gt;+&lt;/STRONG&gt; button.&lt;/LI&gt;&lt;LI&gt;In the previous flow, we used a &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Collect-input-from-your-user/ta-p/13186" target="_blank" rel="noopener"&gt;Collect input&lt;/A&gt; block to ask the customer how many pizzas they want to order, and we saved their response in the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Save-a-variable-under-button-click/ta-p/13176" target="_blank" rel="noopener"&gt;variable&lt;/A&gt; 'order_amount'. In this case, choose the variable 'order_amount' under the &lt;STRONG&gt;If&lt;/STRONG&gt; condition. This selected variable will represent the amount of pizzas ordered. If a customer orders more than five pizzas, they will be automatically redirected to a special conversation where they can claim a complimentary pizza.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Condition (3) (2).gif" style="width: 708px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3902i039E4D245065BEBB/image-dimensions/708x398?v=v2" width="708" height="398" role="button" title="Condition (3) (2).gif" alt="Condition (3) (2).gif" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;4.&amp;nbsp;Next, select &lt;STRONG&gt;greater than&lt;/STRONG&gt;&amp;nbsp;and enter 5 in the next input field. This is because we will be offering free pizza for orders greater than 5.&lt;!--         notionvc: 55dfb0a0-c27e-47d0-af83-e775ee7514b1         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2023-11-24_at_14.10.02.png" style="width: 711px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3903i9E194704395F41FC/image-dimensions/711x418?v=v2" width="711" height="418" role="button" title="Screenshot_2023-11-24_at_14.10.02.png" alt="Screenshot_2023-11-24_at_14.10.02.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;5. If the user's response meets this statement, the conversation will go to a special block called 'Claim Free Pizza'. To make this happen, you can set up a &lt;STRONG&gt;Go To&lt;/STRONG&gt;. You can either pick an existing bot dialog or make a new one. Since we don't have a block named 'Claim One Free Pizza' yet, we'll make a new one.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.15.37.png" style="width: 713px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3904iE887D596A910254D/image-dimensions/713x417?v=v2" width="713" height="417" role="button" title="Screenshot 2023-11-24 at 14.15.37.png" alt="Screenshot 2023-11-24 at 14.15.37.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;!--         notionvc: 1eb08c12-9d2a-4be4-8ec3-1c62af51e924         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;5. The &lt;STRONG&gt;Else&lt;/STRONG&gt; statement is executed when none of the other paths are applicable. You have the flexibility to decide what action should be taken when none of the conditions are met. In this case, if the customer's orders are not more than five, the &lt;STRONG&gt;Else&lt;/STRONG&gt; section will redirect them to the purchase flow.&lt;!--         notionvc: 93997a87-b334-479b-a744-0b973e240475         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.16.42.png" style="width: 713px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3905iC9106572D5627DFC/image-dimensions/713x417?v=v2" width="713" height="417" role="button" title="Screenshot 2023-11-24 at 14.16.42.png" alt="Screenshot 2023-11-24 at 14.16.42.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;6. Next, click on &lt;STRONG&gt;Create&lt;/STRONG&gt; and add a message to the 'Claim free pizza' block and the 'purchase flow'.&lt;!--         notionvc: 0fdc494b-c817-4176-a2a1-abf52f6c9e55         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-24 at 14.21.01.png" style="width: 708px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3906i660F6C5354F7EF87/image-dimensions/708x414?v=v2" width="708" height="414" role="button" title="Screenshot 2023-11-24 at 14.21.01.png" alt="Screenshot 2023-11-24 at 14.21.01.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;7. &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Test-your-bot/ta-p/13296" target="_blank" rel="noopener"&gt;Test&lt;/A&gt; the result to see how your changes perform.&amp;nbsp;&lt;!--         notionvc: 4d4239e5-2a25-4725-9b8c-86be8f7e9f43         --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2023-11-24 at 14.23.35.png" style="width: 319px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3907i3EEA7B78B685DAB7/image-dimensions/319x715?v=v2" width="319" height="715" role="button" title="Screenshot 2023-11-24 at 14.23.35.png" alt="Screenshot 2023-11-24 at 14.23.35.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--         notionvc: bc128056-7d3e-4f66-bb40-9cfc3b04642d         --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Save-a-variable-under-button-click/ta-p/13176" target="_blank" rel="noopener"&gt;[New bot builder] Save a variable based on button click&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Add-collect-input-in-your-flow/ta-p/13204" target="_blank" rel="noopener"&gt;[New bot builder] Collect input from your users&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Make-a-channel-router-flow/ta-p/13092" target="_blank" rel="noopener"&gt;[New bot builder] Make a channel router flow&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jan 2024 12:25:35 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Chatbot/Steer-the-conversation-based-on-Conditions/ta-p/13214</guid>
      <dc:creator>Agatha_Morisca</dc:creator>
      <dc:date>2024-01-02T12:25:35Z</dc:date>
    </item>
  </channel>
</rss>

