- Clone the repository
git clone https://github.com/Microsoft/botbuilder-python.git- Activate your desired virtual environment
- Open
botbuilder-python\samples\State-Management-Botfolder - Bring up a terminal, navigate to
botbuilder-python\samples\State-Management-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
- Paste this URL in the emulator window - http://localhost:3978/api/messages
A key to good bot design is to track the context of a conversation, so that your bot remembers things like the answers to previous questions. Depending on what your bot is used for, you may even need to keep track of state or store information for longer than the lifetime of the conversation. A bot's state is information it remembers in order to respond appropriately to incoming messages. The Bot Builder SDK provides classes for storing and retrieving state data as an object associated with a user or a conversation.