<?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 Validate a user input in Chatbot</title>
    <link>https://community.sinch.com/t5/Chatbot/Validate-a-user-input/ta-p/13186</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Collect-input-from-your-user/ta-p/13204" target="_blank" rel="noopener"&gt;Collect input blocks&lt;/A&gt; are used to gather input from the user. They check if the user input matches a known &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;. There are 2 possibilities:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the variable already has a value, the Collect input block is skipped and the bot proceeds to the next block.&lt;/LI&gt;&lt;LI&gt;If not, the Collect input block is displayed and the input is asked.&lt;!--            notionvc: 33e255ad-1b55-473c-9dc4-a8d8f547cd2e            --&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Add step&lt;/STRONG&gt; section of a Collect input block, you will find various options such as Message, Buttons, Carousel, WhatsApp list, and Media.&lt;!--            notionvc: 3449e35f-ebce-41af-a667-be4365e24e88            --&gt;&lt;/P&gt;&lt;P&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 07.50.35.png" style="width: 711px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3886iDFA62129085FB2A9/image-dimensions/711x414?v=v2" width="711" height="414" role="button" title="Screenshot 2023-11-24 at 07.50.35.png" alt="Screenshot 2023-11-24 at 07.50.35.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Collect input without validating the response&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you choose not to validate the answer, the information collected through the&amp;nbsp;&lt;STRONG&gt;Collect input&lt;/STRONG&gt;&amp;nbsp;block will be considered correct no matter what the customer responds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To skip validation, you need not to select &lt;STRONG&gt;any&lt;/STRONG&gt; from the &lt;STRONG&gt;Check if response matches&lt;/STRONG&gt; dropdown. In the&amp;nbsp;&lt;STRONG&gt;Destination variable&lt;/STRONG&gt;&amp;nbsp;field, enter the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variable&lt;/A&gt; name (e.g. name).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;!--            notionvc: fb2410c6-da35-455f-9a36-5f604f7478f1            --&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Collect input with validating the response&amp;nbsp;&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Collect input has two types of input recognition:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;general input types&lt;/LI&gt;&lt;LI&gt;entity input types&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;General input type&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;The general input types are used to check if the user's input follows a desired format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Date input parser type will try to parse the response as a date. Sentences like '&lt;EM&gt;next week Monday&lt;/EM&gt;' are automatically converted to a DD-MM-YYYY date object. Supported formats (also in other supported NLP languages) are:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22-04-2018&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22-04&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22 apr&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22 april 18&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;twenty two April 2018&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;yesterday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;today&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;now&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last night&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;tomorrow, tmr&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;in two weeks&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;in 3 days&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;next Monday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;next week Friday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last/past Monday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last/past week&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;within/in 5/five days&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Friday/Fri&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The location parser will send the user's input to a Google Geocoding API service. When a correct address or location is recognized, the bot automatically create an object that contains all relevant geo-data.&lt;/P&gt;&lt;P&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 08.11.30.png" style="width: 460px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3887i8FD6CCD4735C0752/image-dimensions/460x617?v=v2" width="460" height="617" role="button" title="Screenshot 2023-11-24 at 08.11.30.png" alt="Screenshot 2023-11-24 at 08.11.30.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To show the address as a full address (street, street number, zip code and city) you need to add some extra information to the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variable&lt;/A&gt;: &lt;STRONG&gt;.fullAddress&lt;/STRONG&gt;. So in the example above, the bot can display the entire location by using the following variable:&lt;STRONG&gt;{userLocationInformed.fullAddress}.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;A bot message containing the following info:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Thank you, shall I send your package to {&lt;STRONG&gt;userLocationInformed.fullAddress}&lt;/STRONG&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Will display the following message to the user:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Thank you, shall I send your package to &lt;STRONG&gt;Oudeleeuwenrui 39, 2000 Antwerpen, Belgium&lt;/STRONG&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&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 08.14.51.png" style="width: 712px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3888i5CCCDC4D32DA03EE/image-dimensions/712x415?v=v2" width="712" height="415" role="button" title="Screenshot 2023-11-24 at 08.14.51.png" alt="Screenshot 2023-11-24 at 08.14.51.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hours&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This input type will parse and validate timestamps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Image&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The image format type allows you to check if a user has uploaded an image or other file (such as pdf). Currently, this is only possible in the Facebook Messenger, WhatsApp, Instagram, RCS, MMS, Telegram and Instagram channels. If the bot user uploads a file, the URL to that file will be saved under the variable you save the response to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to save the attachment from a user no matter where in the flow the user is, you can use the defaultOnFileUpload variable. The URL that links to the attachment will be saved in this variable if the user uploads an attachment at a random point in the conversation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Language&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This input type will parse and validate NLP supported languages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;English&lt;/STRONG&gt;: (en-us): 'engels', 'English', 'en', 'anglais'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Dutch&lt;/STRONG&gt; (nl-nl): 'nederlands', 'Dutch', 'ned', 'nl', 'vlaams', 'hollands', 'be', 'ned', 'néerlandais', 'belgisch'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;French&lt;/STRONG&gt; (fr-fr): 'French', 'français', 'frans', 'fr', 'francais'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Chinese&lt;/STRONG&gt; (zh-cn): 'Chinese', 'cn', 'zh', 'chinees'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Spanish&lt;/STRONG&gt; (es-es): 'Spanish', 'español', 'es', 'spaans'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Italian&lt;/STRONG&gt; (it-it): 'Italian', 'italiaans', 'italiano', 'it&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;German&lt;/STRONG&gt; (de-de): 'German', 'duits', 'de', 'deutsch&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Japanese&lt;/STRONG&gt; (ja-jp): 'Japanese', 'japans', 'jp', '日本の&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Brazil Portugese&lt;/STRONG&gt; (pt-br): 'Brazil Portugese', 'Portugese', 'portugees', 'braziliaans portugees', 'português'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;!--            notionvc: d4e525e1-dc00-45ca-8e51-b6eaa7e4c2a8            --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Entity input types&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;You can also check if a given user input is identical to your&amp;nbsp;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Detect-entities-in-expressions/ta-p/13559" target="_blank" rel="noopener"&gt;entities&lt;/A&gt;. When you choose an entity type in the dropdown &lt;STRONG&gt;Check if response matches.&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;!--            notionvc: 15ba816c-d66a-43f2-85b7-5f2adb068a24            --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;When response matches&lt;/H2&gt;&lt;P&gt;When user response matches, you can select or create a &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; to lead end-user to the next block. &lt;/P&gt;&lt;P&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 08.46.47.png" style="width: 499px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3889i4E47ABECA5B36CA1/image-dimensions/499x201?v=v2" width="499" height="201" role="button" title="Screenshot 2023-11-24 at 08.46.47.png" alt="Screenshot 2023-11-24 at 08.46.47.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--            notionvc: 77612119-aa66-4a28-b545-9a20c8e26590            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;When responses does not match&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user gives a response that is not matched (for example, when the bot asks for an email address and the user replies with '&lt;EM&gt;chicken&lt;/EM&gt;'), the bot needs to let the user know their answer was invalid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do so, you can create a message to be displayed for when input validation fails once, and another message for when the input fails 3 times. Additionally, enable no response detection to handle cases when users provide no input. By doing so, the bot ensures a smoother interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First two times and after two times&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the user fails to give valid input 3 times in a row, you have the flexibility to redirect them to a block. For instance, you can guide customers with an error message like "Sorry, I can't seem to understand. Please contact our support team at [tel number]". Alternatively, the bot can also offer to transfer the user to a live agent for further assistance.&lt;/P&gt;&lt;P&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 08.49.26.png" style="width: 454px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3890i0155304604DF871E/image-dimensions/454x540?v=v2" width="454" height="540" role="button" title="Screenshot 2023-11-24 at 08.49.26.png" alt="Screenshot 2023-11-24 at 08.49.26.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--            notionvc: 306449ae-89ba-44b8-ad75-3071eeb3cfd7            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;&lt;STRONG&gt;No response&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the introduction of no-response detection, your bot gains the capability to handle cases where users don't respond. It allows you to configure which block is triggered if the bot detects a silence, or in other words: when the user does not respond for a certain period or until a specific time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set the amount of time after which the new block will be triggered in the duration field (in minutes or exact time). The duration of silence can range from 1 minute to a maximum of 1440 minutes (24 hours).&lt;/P&gt;&lt;P&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 08.51.13.png" style="width: 400px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3891i1C62C93FEA41C64A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-24 at 08.51.13.png" alt="Screenshot 2023-11-24 at 08.51.13.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 97cd7b80-1126-4e83-a336-29b68740986b            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Configuration&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Disable NLP&lt;/H3&gt;&lt;P&gt;Users are able to leave the Collect input block if an intent is recognized. For bots with a very small NLP model, this might trigger a false positive. The 'disable NLP' checkbox allows you to disable the NLP model while in the input validation, which makes sure that whatever the user says gets saved as input.&lt;/P&gt;&lt;P&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 08.52.31.png" style="width: 400px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3892i6E77ADAA67D731B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-24 at 08.52.31.png" alt="Screenshot 2023-11-24 at 08.52.31.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 9af912f5-2afd-49a9-829a-0c65e01704ae            --&gt;&lt;/P&gt;&lt;P&gt;See also:&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] Add Collect input in your flow&lt;/A&gt;&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 under button click&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Condition/ta-p/13214" target="_blank" rel="noopener"&gt;[New bot builder] Condition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: d6d2d077-1791-45f3-bf99-2a2e897db677            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: e59c20fe-7ccc-4535-abd8-9083aedb4b03            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 3c1942f7-6feb-4c04-86fe-e64a69578896            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: effe9ed4-0455-4572-ac25-dd1490c5b543            --&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 Jan 2024 12:26:01 GMT</pubDate>
    <dc:creator>Agatha_Morisca</dc:creator>
    <dc:date>2024-01-02T12:26:01Z</dc:date>
    <item>
      <title>Validate a user input</title>
      <link>https://community.sinch.com/t5/Chatbot/Validate-a-user-input/ta-p/13186</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Collect-input-from-your-user/ta-p/13204" target="_blank" rel="noopener"&gt;Collect input blocks&lt;/A&gt; are used to gather input from the user. They check if the user input matches a known &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;. There are 2 possibilities:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the variable already has a value, the Collect input block is skipped and the bot proceeds to the next block.&lt;/LI&gt;&lt;LI&gt;If not, the Collect input block is displayed and the input is asked.&lt;!--            notionvc: 33e255ad-1b55-473c-9dc4-a8d8f547cd2e            --&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Add step&lt;/STRONG&gt; section of a Collect input block, you will find various options such as Message, Buttons, Carousel, WhatsApp list, and Media.&lt;!--            notionvc: 3449e35f-ebce-41af-a667-be4365e24e88            --&gt;&lt;/P&gt;&lt;P&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 07.50.35.png" style="width: 711px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3886iDFA62129085FB2A9/image-dimensions/711x414?v=v2" width="711" height="414" role="button" title="Screenshot 2023-11-24 at 07.50.35.png" alt="Screenshot 2023-11-24 at 07.50.35.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Collect input without validating the response&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you choose not to validate the answer, the information collected through the&amp;nbsp;&lt;STRONG&gt;Collect input&lt;/STRONG&gt;&amp;nbsp;block will be considered correct no matter what the customer responds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To skip validation, you need not to select &lt;STRONG&gt;any&lt;/STRONG&gt; from the &lt;STRONG&gt;Check if response matches&lt;/STRONG&gt; dropdown. In the&amp;nbsp;&lt;STRONG&gt;Destination variable&lt;/STRONG&gt;&amp;nbsp;field, enter the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variable&lt;/A&gt; name (e.g. name).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;!--            notionvc: fb2410c6-da35-455f-9a36-5f604f7478f1            --&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Collect input with validating the response&amp;nbsp;&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Collect input has two types of input recognition:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;general input types&lt;/LI&gt;&lt;LI&gt;entity input types&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;General input type&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;The general input types are used to check if the user's input follows a desired format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Date input parser type will try to parse the response as a date. Sentences like '&lt;EM&gt;next week Monday&lt;/EM&gt;' are automatically converted to a DD-MM-YYYY date object. Supported formats (also in other supported NLP languages) are:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22-04-2018&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22-04&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22 apr&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;22 april 18&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;twenty two April 2018&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;yesterday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;today&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;now&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last night&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;tomorrow, tmr&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;in two weeks&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;in 3 days&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;next Monday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;next week Friday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last/past Monday&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;last/past week&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;within/in 5/five days&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Friday/Fri&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The location parser will send the user's input to a Google Geocoding API service. When a correct address or location is recognized, the bot automatically create an object that contains all relevant geo-data.&lt;/P&gt;&lt;P&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 08.11.30.png" style="width: 460px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3887i8FD6CCD4735C0752/image-dimensions/460x617?v=v2" width="460" height="617" role="button" title="Screenshot 2023-11-24 at 08.11.30.png" alt="Screenshot 2023-11-24 at 08.11.30.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To show the address as a full address (street, street number, zip code and city) you need to add some extra information to the &lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Variables-and-properties/ta-p/12280" target="_blank" rel="noopener"&gt;variable&lt;/A&gt;: &lt;STRONG&gt;.fullAddress&lt;/STRONG&gt;. So in the example above, the bot can display the entire location by using the following variable:&lt;STRONG&gt;{userLocationInformed.fullAddress}.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;A bot message containing the following info:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Thank you, shall I send your package to {&lt;STRONG&gt;userLocationInformed.fullAddress}&lt;/STRONG&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Will display the following message to the user:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Thank you, shall I send your package to &lt;STRONG&gt;Oudeleeuwenrui 39, 2000 Antwerpen, Belgium&lt;/STRONG&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&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 08.14.51.png" style="width: 712px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3888i5CCCDC4D32DA03EE/image-dimensions/712x415?v=v2" width="712" height="415" role="button" title="Screenshot 2023-11-24 at 08.14.51.png" alt="Screenshot 2023-11-24 at 08.14.51.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hours&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This input type will parse and validate timestamps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Image&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The image format type allows you to check if a user has uploaded an image or other file (such as pdf). Currently, this is only possible in the Facebook Messenger, WhatsApp, Instagram, RCS, MMS, Telegram and Instagram channels. If the bot user uploads a file, the URL to that file will be saved under the variable you save the response to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to save the attachment from a user no matter where in the flow the user is, you can use the defaultOnFileUpload variable. The URL that links to the attachment will be saved in this variable if the user uploads an attachment at a random point in the conversation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Language&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This input type will parse and validate NLP supported languages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;English&lt;/STRONG&gt;: (en-us): 'engels', 'English', 'en', 'anglais'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Dutch&lt;/STRONG&gt; (nl-nl): 'nederlands', 'Dutch', 'ned', 'nl', 'vlaams', 'hollands', 'be', 'ned', 'néerlandais', 'belgisch'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;French&lt;/STRONG&gt; (fr-fr): 'French', 'français', 'frans', 'fr', 'francais'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Chinese&lt;/STRONG&gt; (zh-cn): 'Chinese', 'cn', 'zh', 'chinees'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Spanish&lt;/STRONG&gt; (es-es): 'Spanish', 'español', 'es', 'spaans'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Italian&lt;/STRONG&gt; (it-it): 'Italian', 'italiaans', 'italiano', 'it&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;German&lt;/STRONG&gt; (de-de): 'German', 'duits', 'de', 'deutsch&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Japanese&lt;/STRONG&gt; (ja-jp): 'Japanese', 'japans', 'jp', '日本の&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Brazil Portugese&lt;/STRONG&gt; (pt-br): 'Brazil Portugese', 'Portugese', 'portugees', 'braziliaans portugees', 'português'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;!--            notionvc: d4e525e1-dc00-45ca-8e51-b6eaa7e4c2a8            --&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Entity input types&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;You can also check if a given user input is identical to your&amp;nbsp;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Detect-entities-in-expressions/ta-p/13559" target="_blank" rel="noopener"&gt;entities&lt;/A&gt;. When you choose an entity type in the dropdown &lt;STRONG&gt;Check if response matches.&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;!--            notionvc: 15ba816c-d66a-43f2-85b7-5f2adb068a24            --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;When response matches&lt;/H2&gt;&lt;P&gt;When user response matches, you can select or create a &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; to lead end-user to the next block. &lt;/P&gt;&lt;P&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 08.46.47.png" style="width: 499px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3889i4E47ABECA5B36CA1/image-dimensions/499x201?v=v2" width="499" height="201" role="button" title="Screenshot 2023-11-24 at 08.46.47.png" alt="Screenshot 2023-11-24 at 08.46.47.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--            notionvc: 77612119-aa66-4a28-b545-9a20c8e26590            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;When responses does not match&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user gives a response that is not matched (for example, when the bot asks for an email address and the user replies with '&lt;EM&gt;chicken&lt;/EM&gt;'), the bot needs to let the user know their answer was invalid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do so, you can create a message to be displayed for when input validation fails once, and another message for when the input fails 3 times. Additionally, enable no response detection to handle cases when users provide no input. By doing so, the bot ensures a smoother interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First two times and after two times&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the user fails to give valid input 3 times in a row, you have the flexibility to redirect them to a block. For instance, you can guide customers with an error message like "Sorry, I can't seem to understand. Please contact our support team at [tel number]". Alternatively, the bot can also offer to transfer the user to a live agent for further assistance.&lt;/P&gt;&lt;P&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 08.49.26.png" style="width: 454px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3890i0155304604DF871E/image-dimensions/454x540?v=v2" width="454" height="540" role="button" title="Screenshot 2023-11-24 at 08.49.26.png" alt="Screenshot 2023-11-24 at 08.49.26.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;!--            notionvc: 306449ae-89ba-44b8-ad75-3071eeb3cfd7            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;&lt;STRONG&gt;No response&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the introduction of no-response detection, your bot gains the capability to handle cases where users don't respond. It allows you to configure which block is triggered if the bot detects a silence, or in other words: when the user does not respond for a certain period or until a specific time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set the amount of time after which the new block will be triggered in the duration field (in minutes or exact time). The duration of silence can range from 1 minute to a maximum of 1440 minutes (24 hours).&lt;/P&gt;&lt;P&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 08.51.13.png" style="width: 400px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3891i1C62C93FEA41C64A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-24 at 08.51.13.png" alt="Screenshot 2023-11-24 at 08.51.13.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 97cd7b80-1126-4e83-a336-29b68740986b            --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Configuration&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Disable NLP&lt;/H3&gt;&lt;P&gt;Users are able to leave the Collect input block if an intent is recognized. For bots with a very small NLP model, this might trigger a false positive. The 'disable NLP' checkbox allows you to disable the NLP model while in the input validation, which makes sure that whatever the user says gets saved as input.&lt;/P&gt;&lt;P&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 08.52.31.png" style="width: 400px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/3892i6E77ADAA67D731B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-24 at 08.52.31.png" alt="Screenshot 2023-11-24 at 08.52.31.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 9af912f5-2afd-49a9-829a-0c65e01704ae            --&gt;&lt;/P&gt;&lt;P&gt;See also:&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] Add Collect input in your flow&lt;/A&gt;&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 under button click&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sinch.com/t5/Chatbot/New-bot-builder-Condition/ta-p/13214" target="_blank" rel="noopener"&gt;[New bot builder] Condition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: d6d2d077-1791-45f3-bf99-2a2e897db677            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: e59c20fe-7ccc-4535-abd8-9083aedb4b03            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: 3c1942f7-6feb-4c04-86fe-e64a69578896            --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--            notionvc: effe9ed4-0455-4572-ac25-dd1490c5b543            --&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jan 2024 12:26:01 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Chatbot/Validate-a-user-input/ta-p/13186</guid>
      <dc:creator>Agatha_Morisca</dc:creator>
      <dc:date>2024-01-02T12:26:01Z</dc:date>
    </item>
  </channel>
</rss>

