Exam AI-102 All QuestionsBrowse all questions from this 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.

    Correct Answer:

Discussion
zellck

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

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

thanks for your accurate explanation

evangelist

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

krzkrzkra

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

evangelist

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.

973b658

It is true.