AvaBot has been created using MS Bot Framework, it can
- Answer general questions, Avanade-related questions, and UCL-related questions
- Summarize a document
- Extract table data from a document
- Answer questions about a document
- Recognize images of business-card pattern
- Install the latest Bot Framework Emulator from here
- Launch Bot Framework Emulator
- Go to Settings on the left bottom of the window
- Enter Path of ngrok
- Tick
Bypass ngrok for local address
box - Tick
Run ngrok when the Emulator starts up
box
-
Clone the repository
git clone https://github.com/UCLComputerScience/COMP0016_2020_21_Team8.git
-
Make sure
MicrosoftAppId
,MicrosoftAppPassword
,QnAKnowledgebaseId
,QnAEndpointKey
, andQnAEndpointHostName
are correctly configured inAvabotTeam8-src/.env
file -
In a terminal, navigate to
AvabotTeam8-src
cd AvabotTeam8-src
-
Install modules
npm install
-
Run the bot
npm start
-
Launch Bot Framework Emulator
-
File -> Open Bot
-
Browse and choose
AvaBot.bot
in theCOMP0016_2020_21_Team8
repository
The testing of the project uses mocha, chai, and MS botbuilder-testing package. Make sure you have installed them by npm install
.
- In a terminal, navigate to
AvabotTeam8-src
- Run test by
npm run test
- Run test with coverage by
npm run cover
- Run test and generate a coverage report by
npm run coverage
Note: for passing all the tests, make sure the APIs used by the bot are working properly.
To develop your own bot application, see Azure Bot Service for creating Web App Bot resource and configure the AvabotTeam8-src/.env
file with your AppId and AppPassword.
To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.