Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Rich Cards Bot

Bots support multi-modal conversations so you can add media to messages sent by the bot to the user.

This sample shows how to use different types of rich cards.

PREREQUISITES

  • Python 3.5 or above

To try this sample

  • Clone the repository
git clone https://github.com/Microsoft/botbuilder-python.git

Visual studio code

  • Activate your desired virtual environment
  • Open botbuilder-python\samples\Rich-Cards-Bot folder
  • Bring up a terminal, navigate to botbuilder-python\samples\Rich-Cards-Bot folder
  • In the terminal, type pip install -r requirements.txt
  • In the terminal, type python main.py

Testing the bot using Bot Framework Emulator

Microsoft Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

  • Install the Bot Framework emulator from here

Connect to bot using Bot Framework Emulator V4

  • Launch Bot Framework Emulator
  • File -> Open bot and navigate to samples\Rich-Cards-Bot folder
  • Select Rich-Cards-Bot.bot file

Connect to bot using Bot Framework Emulator V3

Adding media to messages

A message exchange between user and bot can contain media attachments, such as cards, images, video, audio, and files.

There are several different card types supported by Bot Framework including:

Further reading