Teams Bot: Send and Collect Data from Adaptive Card in Waterfall Dialog

Microsoft Teams bot sample to send and collect data from Adaptive Card in Waterfall Dialog Model using Microsoft Bot Framework v4 .NET C#.

Microsoft Teams Bots are apps that have a conversational interface. The bot can be interacted with via text, interactive cards, and speech. In a one-to-one conversation and a group chat conversation, a bot behaves differently. Bot Framework connects to the Bot Framework to handle conversations.

About this Bot

Teams Bot: This bot is created using Microsoft Bot Framework v4 .NET C#. The bot is created specifically for Microsoft Teams Channel. This bot has the following features –

  1. Waterfall Dialog Model
  2. Adaptive Card

An Adaptive card is shown to the user to collect the data, and the bot receives the data and processes it. All functionalities are done on Waterfall Dialog Model using Microsoft Bot Framework.

Step-by-Step Implementation

For step-by-step implementation, watch the below video or check out this blog – Adaptive Card Data Collection in Waterfall Dialog | Passing Dynamic Data to Adaptive Card | Microsoft Bot Framework v4 C#.

Demo Video: Teams Bot to Send & Collect Data from Adaptive Card

The form below varies with the video. But the concept is the same.

How to send and collect data from Adaptive Card in Microsoft Teams Bot?

Greet the bot, the bot will show up an Adaptive Card with input fields. Fill up the form and click on Submit.

The form is submitted, and the bot replies back with the necessary details.

Get the Source Code

The source code is available here.


Up ↑

%d bloggers like this: