Introduction
The Bot Framework Composer is a fantastic tool for creating/developing Microsoft bots, as it gives you the ability to sketch out and compose entire simple and complex Bot applications within a visual interface instead of writing actual code. Use composer to create the bot solution’s code and run it immediately to test it in the emulator and deploy it to Azure using the CLI. Bot developers should check out the awesome Composer tool, as this will make your Bot development even easier in terms of building smart and engaging bots with ease.
A conversation between a bot and a user often involves asking the user for information and parsing the user's response. Bots should track the context of a conversation, so that it can manage the behavior and remember answers to previous questions. Bot Framework composer has provided different question formats, in this article we are going to see how we can use Text, Number and Datetime input from users and how we can retrieve state information from Bot state.
Prerequisites
- Read my previous article to build and setup the bot framework Composer development environment.
- Read, How to create Multiple Dynamic Greeting Message using Bot Framework Composer
Create New Bot Application
On the Bot Framework Composer homepage, click on New. Select Create from scratch. Click On Next. Give your bot a name. Once created, you should be able to see the following screen.
Asking Users Questions
Bot Framework Composer makes it easier to collect information from the user and Composer provides a feature for validation and a variety of data types as follows:
- Text Input
- Number Input
- Confirmation
- Multiple Choice
- File or attachment
- Date or time
- OAuth Login
In this article, you are going to learn more about Text, Number and Date/Time Input format and how bots can ask questions of the users.
Composer Input Control Property – Bot Ask
Ask question Input dialog has 3 category options - Bot Asks, User Input and other.
- Prompt Property -Create your custom message for Bot to send as a message to the user .
- Max turn Count – Maximum number of re- prompt attempts to collect information from user
- Default Value - Expression to examine on each turn of the conversation as possible value to the property.
- Allow interruptions - A boolean expression that determines whether the parent should be allowed to interrupt the input.

User Input
User Input tab options have “ Property to Fill”. It’s a Property to store collected information. Input will be skipped if property has value (unless 'Always prompt' is true).



su rekhaPosted Aug 25, 2020, 2:26 AM
Super,but how to get textboxes in bot.there is not textbox option
Ankur MistryPosted Feb 19, 2020, 10:13 PM
Super like, thanks for sharing.
Sundaram SubramanianPosted Feb 19, 2020, 10:10 PM
Awesome sir. Happy to learn more about #AI from you. For any kinda AI, related doubts, I used to refer your articles. It is helping me well all the time. And I am more proud to be a student of yours. Today what I am because of your mentorship during the early years. Thanks for Mentoring me to the correct path (Still, I remember those JSQUARE days), not only me but many are in the well-settled state because of your guidance in Technology. Keep contributing the same more and help others.