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

You create a bot by using the Microsoft Bot Framework SDK.

You need to configure the bot to respond to events by using custom text responses.

What should you use?

    Correct Answer: B

    To configure the bot to respond to events by using custom text responses, you should use an activity handler. An activity handler is a class in the Bot Framework SDK that processes incoming activities from the user, such as messages or events, and generates appropriate outgoing activities, including custom text responses. This class allows you to manage and respond to different types of activities with customized logic and responses by overriding specific methods, such as OnMessageActivityAsync.

Discussion
marti_tremblay000Option: B

B is the correct answer as explained by ChatGPT : B. An activity handler is the correct choice for configuring the bot to respond to events by using custom text responses. An activity handler is a class in the Bot Framework SDK that processes incoming activities (e.g., messages, events, etc.) from the user and generates outgoing activities (e.g., replies). By overriding the OnMessageActivityAsync method of the activity handler, you can provide custom logic for responding to user messages.

Tin_TinOption: B

correct https://learn.microsoft.com/en-us/azure/bot-service/bot-activity-handler-concept?view=azure-bot-service-4.0&tabs=csharp

rdemontisOption: B

correct

krzkrzkraOption: B

Selected Answer: B

cxw23

Azure Bot Service has been removed from the exam since oct 2023.

reigenchimpoOption: B

B is answer.

evangelistOption: B

To configure the bot to respond to events using custom text responses, you should use B. an activity handler. Activity handlers allow you to manage and respond to different types of activities and events in a bot's conversation, such as messages from users, with customized logic and responses.