Proof of Concept with MS Bot Framework & QnA
- Use an existing Azure account. Or set-up a new one.
- Recommended to set-up billing alerts
- Create new service
- Train Knowledge Base
- Test
- Publish
- View settings
- Go to portal.azure.com
- Create a bot (Web app Bot or Functions Bot (*))
- Select name and pricing plan
- For a Functions Bot, the Azure Bot Service will run on Azure Functions in consumption mode.
- For a Web App Bot, the Azure Bot Service will run as standard Azure Web App. (45€/month)
- Select Question and Answer template
- In Application Settings, edit
QnAKnowledgebaseId
,QnASubscriptionKey
andQnAEndpointHostName
- In Build, edit, open online code editor
- In online code editor, edit
BasicQnAMakerDialog.cs
. - Set
scoreThreshold
to 0.0 and edit defaultNo good match in FAQ
message. - Open console, and execute
build.cmd
- Test
- Follow https://docs.microsoft.com/en-us/bot-framework/channel-connect-slack
- Build slack App
- Add redirect url via permissions
- Add a bot user
- Enable events on event subscriptions
- Enter slack credentials on https://dev.botframework.com/
- Test, edit, retrain and publish the update knowledge base.
- Change the default message. See instructions
- Add web chat:
<iframe src='https://webchat.botframework.com/embed/chatbot-gc-qna?s=YOUR_SECRET_HERE'></iframe>
- Not able to deploy and test a Functions Bot