https://github.com/Azure-Samples/cognitive-services-language-understanding
Samples for the Language Understanding Intelligent Service (LUIS)
https://github.com/Azure-Samples/cognitive-services-language-understanding
Last synced: about 1 year ago
JSON representation
Samples for the Language Understanding Intelligent Service (LUIS)
- Host: GitHub
- URL: https://github.com/Azure-Samples/cognitive-services-language-understanding
- Owner: Azure-Samples
- License: mit
- Archived: true
- Created: 2018-12-11T22:29:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T06:27:39.000Z (over 3 years ago)
- Last Synced: 2024-08-03T02:03:49.590Z (almost 2 years ago)
- Language: C#
- Size: 3.45 MB
- Stars: 85
- Watchers: 37
- Forks: 138
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- Awesome-Sitecore - Language Understanding (LUIS) Samples - Samples for the Language Understanding Intelligent Service (LUIS). (Azure)
README
# core-bot
Demonstrate the core capabilities of the Microsoft Bot Framework
This bot has been created using [Bot Framework][1].
This samples shows how to:
- Use [LUIS][11] 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
- Demonstrate how to handle any unexpected errors
## Prerequisites
- [Node.js][4] version 10.14 or higher
```bash
# determine node version
node --version
```
# To run the bot locally
- Download the bot code from the Build blade in the Azure Portal (make sure you click "Yes" when asked "Include app settings in the downloaded zip file?").
- If you clicked "No" you will need to copy all the Application Settings properties from your App Service to your local .env file.
- Install modules
```bash
npm install
```
- Run the bot
```bash
npm start
# Testing the bot using Bot Framework Emulator
[Bot Framework Emulator][5] 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 version 4.3.0 or greater from [here][6]
## Connect to the bot using Bot Framework Emulator
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of `http://localhost:3978/api/messages`
# Deploy the bot to Azure
After creating the bot and testing it locally, you can deploy it to Azure to make it accessible from anywhere.
To learn how, see [Deploy your bot to Azure][40] for a complete set of deployment instructions.
# Further reading
- [Bot Framework Documentation][20]
- [Bot Basics][32]
- [Azure Bot Service Introduction][21]
- [Azure Bot Service Documentation][22]
- [Deploying Your Bot to Azure][40]
- [Azure CLI][7]
- [msbot CLI][9]
- [Azure Portal][10]
- [Language Understanding using LUIS][11]
- [Restify][30]
- [dotenv][31]
[1]: https://dev.botframework.com
[4]: https://nodejs.org
[5]: https://github.com/microsoft/botframework-emulator
[6]: https://github.com/Microsoft/BotFramework-Emulator/releases
[7]: https://docs.microsoft.com/cli/azure/?view=azure-cli-latest
[8]: https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest
[9]: https://github.com/Microsoft/botbuilder-tools/tree/master/packages/MSBot
[10]: https://portal.azure.com
[11]: https://www.luis.ai
[20]: https://docs.botframework.com
[21]: https://docs.microsoft.com/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0
[22]: https://docs.microsoft.com/azure/bot-service/?view=azure-bot-service-4.0
[30]: https://www.npmjs.com/package/restify
[31]: https://www.npmjs.com/package/dotenv
[32]: https://docs.microsoft.com/azure/bot-service/bot-builder-basics?view=azure-bot-service-4.0
[40]: https://aka.ms/azuredeployment