13/03/2019
1
14 MARCH 2019
Applying Emerging Tech -Build a Chatbot for your
Practice
This session will cover
2
• Building your AI Chatbot
• Creating a Question and Answer Bot
• Giving it Personality
• Training and Publishing
• Building A Web-Bot
• Signing up for an Azure Account
• Creating all the components
• Adding to a Website
• Adding your bot to a Website
13/03/2019
2
Warning
3
• There are some technical components to this process
• HOWEVER, if you follow along with the process exactly it will work
• Further learning is available in the handout
• Prerequisites
• You will need an Office 365 or Windows Live Account
Do you think a chatbot can help your company?
4
a) Definitely
b) It will never replace a human
c) My clients won’t like it
d) Unsure
e) No
13/03/2019
3
Starting the Process
5
• What you will need before starting
Step 1 – Create an Azure Free Trial
6
• Navigate to Azure.Microsoft.com
• Click Start for Free
• Click Start for Free again
• Follow the prompts to create your free account
• For step by step instructions, see the handout
13/03/2019
4
Step 2 - QnaMaker
7
• Navigate to Qnamaker.ai
• Click Sign In
• Choose Create a Knowledge Base
Step 3 Create a QnAService
8
• Click Create a QnA service
• Complete the items as follows:
• Name – Enter a unique name
• Subscription – Choose your subscription
• Pricing Tier – Choose F0 for the free version
• Location – Accept West US
• Resource Group – Click Create New and choose one called CCHBot
• Search Pricing Tier – Choose F (3 indexes)
• Search Location – Accept Default
• App name – Choose a unique name e.g. company-cchbot
• App Insights – Disable as this is not production
13/03/2019
5
Wait for the resources to be created
9
Step 4: Connect QnA service to the KB
10
• Go back to QnAMaker
• Click Refresh
• Choose the Azure Directory Id
• Choose the Subscription
• Choose the QnA Service
13/03/2019
6
Step 5: Give your KB a Name
11
• Enter a name for your KB
Step 6: Populate the KB
12
• You can use any of the below URLs
• https://www.cchlearning.com.au/faqs/
• https://www.cpaaustralia.com.au/become-a-cpa/professional-bodies/faq
13/03/2019
7
Step 7: Give it a Personality
13
• Choose a Chit-chat personality
• Your choice, from the Professional, the Friend or the Comic
Step 8: Create the KB
14
• Click Create Your KB
• When the KB is Created, Click Save and Train
• You can use Test to test your KB
• When ready, click publish
13/03/2019
8
Step 9: Create the Web Chatbot
15
• Navigate to the Azure Console in a new Tab (https://portal.azure.com)
• Click Create a Resource
• Choose AI and Machine Learning
• Choose Web App Bot
Step 10: Configure the Web Chat Bot
16
• Enter the Bot Name
• Choose the Subscription
• Choose the Resource Group from Step 3
• Choose the Location
• Choose a Pricing Tier
• For the Template
• Basic Bot (C#) -> SDK V3 -> Question and Answer
• For Azure Storage Choose Create New
• For Application Insights Choose Off
13/03/2019
9
Step 11: Wait for the Web App Bot to be Provisioned
17
Step 12: Configure the Web Bot
18
• Choose Test in Web Chat
• Say Hi!
• Go to Application Settings
• Copy the data from QnaMaker -> Publish
13/03/2019
10
Step 13 – Test in Web Chat
19
• Click Test in Web Chat, and check it is all working
Step 14 – Add Channels
20
• You can add Channels for your bot
• GroupMe
• Kik
• Line
• Telegram
• Skype for Business
• Skype
• Teams
• Twilio
• Cortana
13/03/2019
11
In Conclusion
21
• Over the last 50 minutes, we have:
• Created an Azure Subscription
• Created a ChatBot
• Trained and Configured our Chatbot
• Published our chatbot
• Added it to a website
Questions?
22
• You can type them in the “Questions” box now
• Or contact me via:
• Nick Beaugeard
• Principal Consultant
• Released Group
• 0404 092 976
13/03/2019
12
Starter Questions for Q&A
23
1. How can I Manually add questions?
2. How do I improve my bot?
NOTE: Please provide us with at least 2 questions to kick off our Q&A session. These will encourage the audience to ask further questions and they can also highlight specific points.
You will control the PPT, therefore please delete this slide before you present.