AI-102 Exam QuestionsBrowse all questions from this exam

AI-102 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?

Show Answer
Correct Answer: CD

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

13 comments
Sign in to comment
dumpsvibe_comOption: C
Jun 1, 2024

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

zellckOption: C
Jun 29, 2023

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
Sep 7, 2022

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

Tickxit
Sep 29, 2022

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

ArchMelodyOption: C
Nov 11, 2022

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

rdemontisOption: C
Nov 7, 2023

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

DiegoGonLOption: C
Oct 19, 2022

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

EliteAllenOption: C
Jun 26, 2023

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.

propantherOption: C
Oct 25, 2023

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

sl_mslconsultingOption: D
Oct 21, 2023

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
Oct 21, 2023

*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?

evangelistOption: C
Feb 4, 2024

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.

nanaw770Option: C
Jun 1, 2024

I often make mistakes. This is C!

reigenchimpoOption: C
Jun 13, 2024

C is answer.

krzkrzkraOption: C
Jul 14, 2024

Selected Answer: C