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.
- Python 3.5 or above
- Clone the repository
git clone https://github.com/Microsoft/botbuilder-python.git- Activate your desired virtual environment
- Open
botbuilder-python\samples\Rich-Cards-Botfolder - Bring up a terminal, navigate to
botbuilder-python\samples\Rich-Cards-Botfolder - In the terminal, type
pip install -r requirements.txt - In the terminal, type
python main.py
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
- Launch Bot Framework Emulator
- File -> Open bot and navigate to samples\Rich-Cards-Bot folder
- Select Rich-Cards-Bot.bot file
- Launch Bot Framework Emulator
- Paste this URL in the emulator window - http://localhost:9000/api/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: