AI-102 Exam QuestionsBrowse all questions from this exam

AI-102 Exam - Question 250


DRAG DROP

-

You are building a bot.

You need to test the bot in the Bot Framework Emulator. The solution must ensure that you can debug the bot interactively.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show Answer
Correct Answer:

Discussion

5 comments
Sign in to comment
zellck
Jul 2, 2023

1. In code, create new trace activity 2. In code, send a trace activity 3. Run bot app on local host https://learn.microsoft.com/en-us/azure/bot-service/using-trace-activities?view=azure-bot-service-4.0&tabs=csharp A trace activity is an activity that your bot can send to the Bot Framework Emulator. You can use trace activities to interactively debug a bot, as they allow you to view information about your bot while it runs locally. Trace activities are sent only to the Emulator and not to any other client or channel. The Emulator displays them in the log but not the main chat panel.

zellck
Jul 2, 2023

https://learn.microsoft.com/en-us/azure/bot-service/using-trace-activities?view=azure-bot-service-4.0&tabs=csharp#to-use-a-trace-activity In order to see a trace activity in the Emulator, you need a scenario in which your bot will send a trace activity, such as throwing an exception and sending a trace activity from the adapter's on turn error handler. To send a trace activity from your bot: - Create a new activity. - Create a new activity. To view a trace activity in the Emulator: - Run the bot locally on your machine. - Test it using the Emulator.

rdemontis
Nov 9, 2023

thanks for your accurate explanation

evangelist
Feb 10, 2024

The order should run bot app on local host first and then create trace activity and send trace activity

973b658
Jun 14, 2023

It is true.

evangelist
Jan 27, 2024

Connect with the Bot Framework Emulator: Use the Bot Framework Emulator to connect to your bot running on localhost. The default URL is typically http://localhost:3978/api/messages. Test Your Bot: Interact with your bot via the Emulator to see the responses and the trace activities.

krzkrzkra
Jul 15, 2024

1. In code, create new trace activity 2. In code, send a trace activity 3. Run bot app on local host