Steps to build an Echo Chat Bot using Microsoft Bot Framework SDK
Echo-Bot is a simple chat-bot which replies back whatever user inputs to it as text. Here, we will be building this bot using Microsoft Bot Framework SDK which is used to develop conversational applications in Python, Java, JavaScript, C#. We will test this bot using the Bot Framework Emulator which is used to test/debug these bots locally or remote.
- Python 3.X version:
- Bot Framework Emulator
-
Start up the terminal of your choice like Jupyter terminal
-
Install the dependencies like
botbuilder-core
,asyncio
,aiohttp
,cookiecutter
pip install botbuilder-core asyncio aiohttp cookiecutter==1.7.0
-
Run the following command to download the echo-bot template
cookiecutter https://github.com/microsoft/BotBuilder-Samples/releases/download/Templates/echo.zip
-
Change directories to
echo-bot
.cd echo-bot
-
Install the dependencies for the echo bot template.
pip install -r requirements.txt
-
Run the chat-bot:
python app.py
If everything runs successfully, you should see the below message in the terminal:
-
Open Bot in Bot Framework Emulator application and connect to
http://localhost:3978/api/messages
to test the echo of the chat-bot