This bot has been created using Microsoft Bot Framework,
This samples shows how to:
- Use LUIS to implement core AI capabilities
- Implement a multi-turn conversation using Dialogs
- Handle user interruptions for such things as 'Help' or 'Cancel'
- Prompt for and validate requests for information from the user
- Clone the repository
git clone https://github.com/microsoft/botbuilder-samples.git
- In a terminal,
cd samples/javascript_typescript/13.basic-bot - Install modules
npm install
- Create required services
- Run the sample
npm start
In order to run this sample, you must have TypeScript installed. To install TypeScript:
- Navigate to the TypeScript portal.
- Click the Download button.
- Follow the installation instructions for your development environment.
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
- File -> Open Bot Configuration and navigate to
samples/javascript_typescript/13.basic-botfolder - Select
basic-bot.botfile
See here to learn more about deploying this bot to Azure and using the CLI tools to build the LUIS models this bot depends on.
- Bot Framework Documentation
- Bot basics
- Activity processing
- LUIS
- Prompt Types
- Azure Bot Service Introduction
- Channels and Bot Connector Service
- QnA Maker
- Restify Used to host the web service for the bot, and for making REST calls
- dotenv Used to manage environmental variables
index.ts references the bot and starts a Restify server. bot.ts loads the dialog type you selected when running the generator and adds it as the default dialog.
Update .env with the appropriate keys botFilePath and botFileSecret.
- For Azure Bot Service bots, you can find the botFileSecret under application settings.
- If you use MSBot CLI to encrypt your bot file, the botFileSecret will be written out to the console window.
- If you used Bot Framework Emulator V4 to encrypt your bot file, the secret key will be available in bot settings.
npm start
npm run watch