Bot Framework v4 using cards bot sample
This bot has been created using Bot Framework, it shows how to create a bot that uses rich cards to enhance your bot design.
- Python 3.7 or above
- Clone the repository
git clone https://github.com/Microsoft/botbuilder-python.git- Run
pip install -r requirements.txtto install all dependencies - Run
python app.py - Alternatively to the last command, you can set the file in an environment variable with
set FLASK_APP=app.pyin windows (export FLASK_APP=app.pyin mac/linux) and then runflask run --host=127.0.0.1 --port=3978
- Activate your desired virtual environment
- Open
botbuilder-python\samples\06.using-cardsfolder - Bring up a terminal, navigate to
botbuilder-python\samples\06.using-cardsfolder - In the terminal, type
pip install -r requirements.txt - In the terminal, type
python app.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
- Paste this URL in the emulator window - http://localhost:3978/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: