https://github.com/syedaanif/echo-bot
Steps to build an Echo Chat Bot using Microsoft Bot Framework SDK
https://github.com/syedaanif/echo-bot
botframework botframework-emulator microsoft nlp-machine-learning python3
Last synced: 9 months ago
JSON representation
Steps to build an Echo Chat Bot using Microsoft Bot Framework SDK
- Host: GitHub
- URL: https://github.com/syedaanif/echo-bot
- Owner: SyedAanif
- Created: 2023-05-02T15:19:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T15:59:56.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T10:32:02.266Z (over 1 year ago)
- Topics: botframework, botframework-emulator, microsoft, nlp-machine-learning, python3
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# echo-bot
Steps to build an Echo Chat Bot using Microsoft Bot Framework SDK
## Introduction
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](https://github.com/microsoft/botframework-sdk) which is used to develop conversational applications in Python, Java, JavaScript, C#. We will test this bot using the [Bot Framework Emulator](https://github.com/microsoft/BotFramework-Emulator) which is used to test/debug these bots locally or remote.
## Pre-requisites
- Python 3.X version:
+ [Installation using Anaconda distribution](https://docs.anaconda.com/free/anaconda/#installation)
+ [Python Website](https://www.python.org/downloads/)
- [Bot Framework Emulator](https://github.com/microsoft/BotFramework-Emulator/releases)
## Steps to create the echo-bot
1. Start up the terminal of your choice like [Jupyter terminal](https://jupyter.org/)
2. Install the dependencies like [`botbuilder-core`](https://pypi.org/project/botbuilder-core/), [`asyncio`](https://pypi.org/project/asyncio/), [`aiohttp`](https://pypi.org/project/aiohttp/), [`cookiecutter`](https://pypi.org/project/cookiecutter/)
```
pip install botbuilder-core asyncio aiohttp cookiecutter==1.7.0
```
3. Run the following command to download the [echo-bot](https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/csharp_dotnetcore/01.console-echo/EchoBot.cs) template
```
cookiecutter https://github.com/microsoft/BotBuilder-Samples/releases/download/Templates/echo.zip
```
You'll be prompted to give a **bot_name** and **bot_description**. 
4. Analyse the downloaded `echo-bot` in the IDE of your choice. 
5. Change directories to `echo-bot`.
```
cd echo-bot
```
6. Install the dependencies for the echo bot template.
```
pip install -r requirements.txt
```
7. Run the chat-bot:
```
python app.py
```
If everything runs successfully, you should see the below message in the terminal:

8. Open Bot in Bot Framework Emulator application and connect to `http://localhost:3978/api/messages` to test the echo of the chat-bot
