Chatbot that helps to book flights.
This bot has been created using Bot Framework, it 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
orCancel
- Prompt for and validate requests for information from the user
- Use Application Insights to monitor the bot
This sample requires prerequisites in order to run.
This bot uses LUIS, an AI based cognitive service, to implement language understanding and Application Insights, an extensible Application Performance Management (APM) service for web developers on multiple platforms.
This chat bot uses the LUIS Application to understand the customer request.
To connect the chat bot to LUIS Application, you have to specify the following environnement variable in a .env file :
- Application ID: "LUIS_APP_ID"
- Key: "LUIS_AUTHORING_KEY"
- Endpoint url: "LUIS_AUTHORING_END_POINT"
This appication also use the Azure Insight Instrumentation. To connect the bot to Insight, you have to define the following variable :
- Insight key: "APPINSIGHTS_INSTRUMENTATION_KEY"
Application Insights resource creation steps can be found here.
- In the terminal, type
pip install -r requirements.txt
- Run your bot with
python app.py
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 latest Bot Framework Emulator from here
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of
http://localhost:3978/api/messages