exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 5 question 40 discussion

Actual exam question from Microsoft's AI-102
Question #: 40
Topic #: 5
[All AI-102 Questions]

You are building a chatbot for a travel agent. The bot will ask users for a destination and must repeat the question until a valid input is received, or the user closes the conversation.

Which type of dialog should you use?

  • A. prompt
  • B. input
  • C. adaptive
  • D. QnA Maker
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zellck
Highly Voted 1 year, 7 months ago
Selected Answer: A
A is the answer. https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-concept-dialog?view=azure-bot-service-4.0#dialog-types The dialogs library provides a few types of dialogs to make your bot's conversations easier to manage. - prompt dialogs Ask the user for input and return the result. A prompt will repeat until it gets valid input or it's canceled. They're designed to work with waterfall dialogs.
upvoted 8 times
zellck
1 year, 7 months ago
Gotten this in Jul 2023 exam.
upvoted 5 times
...
...
syupwsh
Most Recent 1 day, 10 hours ago
Selected Answer: A
Prompts are designed to ask users for specific pieces of information and can include validation logic to ensure the response meets certain criteria. In this case, you can use a TextPrompt to repeatedly ask for the destination until a valid input is provided or the user closes the conversation. A is correct
upvoted 1 times
...
reigenchimpo
8 months ago
Selected Answer: A
A is answer.
upvoted 1 times
...
reiwanotora
8 months, 2 weeks ago
Selected Answer: A
A is right answer.
upvoted 1 times
...
PCRamirez
1 year ago
According to Windows Copilot: I understand your reasoning, but option A is not the best choice for this scenario. A prompt dialog can validate the user’s input, but it cannot handle complex conversational flows, such as interruptions, validations, and conditional logic. For example, if the user wants to change their destination, or ask for more information, or cancel the conversation, a prompt dialog cannot adapt to these situations. A prompt dialog can only ask the user for a single piece of information and return it to the parent dialog. An adaptive dialog, on the other hand, can dynamically adjust to the user’s input and context. It can handle multiple inputs, interruptions, validations, and conditional logic. It can also use language generation templates to create natural and varied responses. An adaptive dialog can provide a better user experience and a more robust chatbot for a travel agent. I hope this clarifies why option C is the correct answer.
upvoted 2 times
...
evangelist
1 year ago
Selected Answer: A
In this scenario, where a chatbot needs to ask users for a destination and must repeat the question until a valid input is received, the most appropriate type of dialog to use is a "prompt" dialog. Here's why: Prompt Dialog: The prompt dialog is specifically designed to obtain user input and can be configured to validate this input and reprompt the user if necessary. In the Microsoft Bot Framework, prompts are used to handle various types of user input such as text, numbers, dates, and confirmations. For your requirement, you can use a text prompt that keeps asking the user for a destination until a valid one is provided or the user exits the conversation.
upvoted 3 times
...
rdemontis
1 year, 3 months ago
Selected Answer: A
correct https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-concept-dialog?view=azure-bot-service-4.0#dialog-types
upvoted 2 times
...
Tin_Tin
1 year, 7 months ago
answer seems correct. https://learn.microsoft.com/en-us/training/modules/create-bot-with-bot-framework-composer/4-dialogs
upvoted 3 times
...
973b658
1 year, 8 months ago
Selected Answer: A
A. prompt
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago