AI-102 Exam QuestionsBrowse all questions from this exam

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

Show Answer
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

7 comments
Sign in to comment
marti_tremblay000Option: B
Mar 16, 2023

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
Jun 29, 2023

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

rdemontisOption: B
Nov 8, 2023

correct

evangelistOption: B
Feb 4, 2024

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.

reigenchimpoOption: B
Jun 13, 2024

B is answer.

cxw23
Jun 21, 2024

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

krzkrzkraOption: B
Jul 14, 2024

Selected Answer: B