Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Using Cards Bot

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.

PREREQUISITES

  • Python 3.7 or above

Running the sample

  • Clone the repository
git clone https://github.com/Microsoft/botbuilder-python.git
  • Run pip install -r requirements.txt to 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.py in windows (export FLASK_APP=app.py in mac/linux) and then run flask run --host=127.0.0.1 --port=3978

Visual studio code

  • Activate your desired virtual environment
  • Open botbuilder-python\samples\06.using-cards folder
  • Bring up a terminal, navigate to botbuilder-python\samples\06.using-cards folder
  • In the terminal, type pip install -r requirements.txt
  • In the terminal, type python app.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

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