Skip to content

Latest commit

 

History

History
67 lines (37 loc) · 3.02 KB

04-Dialogs.md

File metadata and controls

67 lines (37 loc) · 3.02 KB

I, Chatbot

Table of Contents

Dialogs

Different environments call for different dialog styles. Teams channels are threaded, and a back-and-forth conversation can get confusing so cards are better.

Slide

Slide

See Design and control conversation flow for more details.

Slide

Slide

Here's an overview of dialogs in Bot Framework v4. I found this, more succinct article helpful as well.

If you want to add branching and looping to your dialogs, check out Create advanced conversation flow using branches and loops.

Slide

Slide

Prompt options are detailed here (.NET, Node).

Slide

The Multi-turn prompt sample shows a sequence of several prompt dialogs called by a waterfall dialog.

Slide

Notice that the bot saves state at the end of each turn.

Slide

Walk through the Consuling Bot dialogs.


CHALLENGE (after class)

  • The current sample resolves the project and looks up its information in the Add to Project dialog, but not the Bill to Project dialog. Resolve the project in both dialogs.

Repos used in this workshop:

  1. https://github.com/BobGerman/Bots: Bob's repo, containing samples specific to this workshop, and these notes

  2. https://github.com/microsoft/BotBuilder-Samples: Great samples for Bot Framework - now including Teams examples!

  3. https://github.com/OfficeDev/msteams-samples-outgoing-webhook-nodejs: Outgoing webhook - the simplest bot for Teams

  4. https://github.com/OfficeDev/msteams-sample-contoso-hr-talent-app.git: Great Teams bot/app sample showing an HR recruiting application