Get User's Name Prompt

Ask the user for their name.

Question

In your Azure Bot application supporting e-commerce business, you ask users a few questions.

Based on the answers to the questions, you provide them with product options and promotions associated with the product.

In the first interaction with the user, bot greets the users and asks for his/her name.

In the composer “Ask a question” menu, what type of prompt or user input would you use to get the name of the user?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B.

Option A is incorrect because for the number input type is used for numeric values such as user age.

Option B is correct because the text input type is used to get the name of the user.

Here are the steps to follow in composer:

Using “Ask the question” menu, select Text.

In “Bot Asks” tab, input the question along with Welcome Greetings.

In the “User Input” tab, enter user.name into the property field, an output format and value.

Provide a response to the user.

Option C is incorrect because multi-choice input type is used to present users with a list of options to choose from.

Option D is incorrect because confirmation input type is used to get a binary decision.

Reference:

To learn more about types of user input using composer, use the link given below:

The appropriate type of prompt or user input to get the name of the user in the Azure Bot application would be "Text."

When the bot greets the user and asks for their name, it is expecting a text response from the user. Therefore, the "Text" option in the "Ask a question" menu would be the most suitable choice for capturing the user's name.

The "Number" option is used when the user needs to input a numeric value, such as when they are providing their age or phone number. This option is not appropriate for capturing the user's name, as names are typically made up of letters and not numbers.

The "Multi-choice" option is used when the user needs to select one or more options from a list of predefined choices. This option is not suitable for capturing the user's name, as there is no predefined list of names to choose from.

The "Confirmation" option is used when the bot needs to confirm a user's choice or decision. This option is not appropriate for capturing the user's name, as there is no decision or choice to confirm.

Therefore, the "Text" option is the most appropriate prompt or user input for getting the name of the user in the Azure Bot application.