Exam AI-102 All QuestionsBrowse all questions from this exam
Question 224

You use the Microsoft Bot Framework Composer to build a chatbot that enables users to purchase items.

You need to ensure that the users can cancel in-progress transactions. The solution must minimize development effort.

What should you add to the bot?

    Correct Answer: C

    To ensure users can cancel in-progress transactions in a bot built with the Microsoft Bot Framework Composer, you should add a dialog trigger. Dialog triggers are designed to handle specific conditions or intents, such as a user's request to cancel a transaction. They allow the bot to respond appropriately by invoking predefined dialogs to manage these scenarios efficiently, thereby minimizing the development effort required.

Discussion
dumpsvibe_comOption: C

C. a dialog trigger Dialog triggers manage conversation flow and handle user inputs, allowing users to cancel in-progress transactions efficiently.

zellckOption: C

C is the answer. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x In Bot Framework Composer, each dialog includes one or more event handlers called triggers. Each trigger contains one or more actions. Actions are the instructions that the bot will execute when the dialog receives any event that it has a trigger defined to handle. Once a given event is handled by a trigger, no further action is taken on that event. Some event handlers have a condition specified that must be met before it will handle the event and if that condition isn't met, the event is passed to the next event handler. If an event isn't handled in a child dialog, it gets passed up to its parent dialog to handle and this continues until it's either handled or reaches the bots main dialog. If no event handler is found, it will be ignored and no action will be taken.

DavardOption: C

It seems like it should be C: a dialog trigger. Anyone else?

Tickxit

I agree, an interruption occurs when a trigger is fired. Context of adaptive dialogs.

ArchMelodyOption: C

C seems to be the correct answer for me as well for the aforementioned reasons.

rdemontisOption: C

To me the correct answer is C. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x#dialog-events-triggers

propantherOption: C

You should use dialog triggers to: Take actions immediately when the dialog starts, even before the recognizer is called. Take actions when a "cancel" signal is detected. Take actions on messages received or sent. Evaluate the content of the incoming activity. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x#dialog-events-triggers

EliteAllenOption: C

A dialog trigger in Bot Framework Composer allows you to define the conditions under which a specific dialog is started. For example, you can create a dialog trigger that listens for the user to say something like "cancel" or "stop", and then initiate a dialog that handles the cancellation of the in-progress transaction. This approach doesn't require you to manually code the cancellation logic, and it leverages the built-in capabilities of the Bot Framework Composer, thus minimizing development effort.

DiegoGonLOption: C

As Tickxit said: an interruption occurs when a trigger is fired in the context of adaptive dialogs.

evangelistOption: C

The answer is C: To ensure that users can cancel in-progress transactions with minimal development effort, you should add C. a dialog trigger to the bot. A dialog trigger allows the bot to respond to specific conditions or intents, such as a user's request to cancel a transaction, by invoking predefined dialogs that handle these scenarios efficiently.

sl_mslconsultingOption: D

Tiggers are not a good fit for handling scenarios like these let along there are all 4 types of triggers for dialogs. Follow the link provided by the answer and read the code carefully and you will understand why it’s D.

sl_mslconsulting

*only 4 types… Dialog started (Begin dialog event) Dialog cancelled (Cancel dialog event) Error occurred (Error event) Re-prompt for input (Reprompt dialog event). How are they appropriate in handling scenarios like this?

krzkrzkraOption: C

Selected Answer: C

reigenchimpoOption: C

C is answer.

nanaw770Option: C

I often make mistakes. This is C!