Top Menu

Thursday, December 14, 2017

Knowledge Chat Bot (No Code)

Recently my customers was looking for a solution where on-field guys can search for answers related to their tasks and it was a perfect scenario to develop a Chat Bot. Microsoft Bot Framework has been available for quite some time now and its functionality is keep on getting enhanced with different aspect of Artificial Intelligence like speech recognition, face recognition etc. With yesterday's announcement of GA of Azure Bot Services, now we have one place to develop, deploy and expose our intelligent bots to channels like Web, Skype, FB Messenger etc.

In this post, I will walk you through Azure Bot Services(https://docs.microsoft.com/en-us/Bot-Framework) to build and connect a bot but first we need to build our bot's brain and fill it with the knowledge using QnAMaker( http://qnamaker.ai).

This post is divided into following three sections:
  1. Architecture
  2. Building the Knowledge Base (KB)
  3. Building the Chat Bot
Note: You need Azure subscription to build this bot.

Architecture

Following is the architecture of our solution where we will build a service (bot's brain) in QnA Maker and then fill it with our Knowledge Base. Then we will create our bot in Azure Bot Services and link it to the bot's brain (MyBotService) and then we can publish our bot via different channels. We can use Channels to display our bot inside a SharePoint Page, Skype, Teams, Facebook Messenger etc.


Building the Knowledge Base (KB)

  1. Log on to QnA Maker at https://qnamaker.ai.
  2. Select Create New Service tab and provide name of the bot service e.g. MyBotService, leave remaining fields as it is and hit Create button to create the service which will serve as brain of the bot.
  3. You should see the screen where you can provide the knowledge base for your bot. Add couple of questions and their answers by selecting + Add QnA Pair. Once you add few QnA pairs, hit Save and retrain to train your model. You can also provide the questions and answers in text, pdf and document format.
  4. You can select Test tab to test the knowledge base in chat format.
  5. Hit Publish once testing is done, and then hit publish again on the next screen to publish MyBotService to the web. We will consumed this service through our Bot.
  6. Once the MyBotService is published, Save the two values highlighted in the screen shot below as QnAKnowledgebaseId and QnASubscriptionKey. We need this information in our Bot's settings.
Note: You can access further documentation about QnA Maker at https://qnamaker.ai/Documentation.

Building the Chat Bot 

  1. Log on to Azure at http://portal.azure.com.
  2. Select New and go to AI + Cognitive Services section and choose Web App Bot.
  3. Provide a unique Bot Name (e.g. DemoBot101), select Subscription and then choose Bot template as Question and Answer. You can also choose between C# or Node.js SDK which doesn't matter in this case as we are not writing any code. Select Create button at the end to create the Bot.
  4. Once the basic bot has been created you will be notified and select Go to resources from the notification section to see the Bot's details, settings etc.
  5. Select Application Settings of the bot and go to the App settings section and provide the value of the keys QnAKnowledgebaseId and QnASubscriptionKey which we copied while creating the MyBotService and hit Save.
  6. Now you can test the bot from Test in Web Chat tab.
  7. Once the testing is completed, this Chat Bot can be published to web, Skype, Teams, MSN Messenger etc via Channels.
Note: You can access Azure Bot Services documentation here: https://azure.microsoft.com/en-us/services/bot-service

27 comments:

  1. i adore perusing this article so beautiful!!great work! random texting strangers

    ReplyDelete
  2. I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it. chat room

    ReplyDelete
  3. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! free chatting site

    ReplyDelete
  4. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. hkeasychat

    ReplyDelete
  5. Folks are sexual creatures, so its no real shock that nearly every new invention is provided a sexual spin on its original purpose. online sexting

    ReplyDelete
  6. There are also no-assistant applications that also include chatbots for purposes of entertainment and for research. There are the social bits that are used to promote issues, candidates and products. There are those that can emulate our human behavior and interact with a set of databases.how to increase conversion rate

    ReplyDelete
  7. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. https://s3.amazonaws.com/chatterbate/index.html

    ReplyDelete
  8. This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. sexting chat

    ReplyDelete
  9. Facetime is the recent new technology from Apple. Steve Jobs pushes it that allows you to take people and families closer. http://threesomechatting.com/

    ReplyDelete
  10. Many couples anxiously look forward with eager anticipation to the time they see those double lines for their early pregnancy test strip that declare: women looking for couples

    ReplyDelete
  11. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. zcodesystem discount

    ReplyDelete
  12. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. free chat rooms

    ReplyDelete
  13. Very useful info. Hope to see more posts soon!. mw4m craigslist

    ReplyDelete
  14. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.! buku mimpi 2d

    ReplyDelete
  15. Facebook is no longer a place to interact with strangers but Wowchat definitely is. Wowchat is a great place to interact with strangers, video call with them, chat with them and more but since Wowchat has been down there are many alternatives of Wowchat that you can use. Wowchat

    ReplyDelete
  16. You may have come across the term chatbots, but what are they and why they are a great opportunity. Well, restaurants chatbot a chatbot is actually a service that is powered mainly by the rules. Other times, a chatbot can be powered by artificial intelligence. This chatbot service can be interacted with through an interface.

    ReplyDelete
  17. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
    death clock

    ReplyDelete
  18. Nice to read your article! I am looking forward to sharing your adventures and experiences.
    death clock

    ReplyDelete
  19. Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. Chat online without registration

    ReplyDelete
  20. I exactly got what you mean, thanks for posting. And, I am too much happy to find this website on the world of Google. what is a chatbot

    ReplyDelete
  21. I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... what is a chatbot

    ReplyDelete
  22. A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. voice app agency

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Web Solution Centre have a new destination. We are the Website Design Company In Delhi works on creative ideas to bring out the best web designs. Reach us to help you.

    ReplyDelete
  25. I recently gifted my friend a beautiful fluorite crystal for her birthday, knowing it would help her with focus and clarity. She loved it and found it to be an incredibly thoughtful present. Buy Healing Crystals Stone

    ReplyDelete
  26. Thanks for the tips on app marketing! In my experience, Buy Android App Reviews gave my app an early boost, making it easier to reach the top of search results on the Play Store. Of course, ensuring the reviews are authentic is key to avoiding any issues. I'd love to hear from others who've used this strategy—what other methods did you combine it with for the best results?

    ReplyDelete
  27. Looking for reliable Spare Parts For Tata vehicles? Partsmith.ae offers a wide range of authentic parts to ensure your Tata vehicle runs smoothly. Whether it’s for repairs or upgrades, you can count on us for quality products and excellent customer service. Explore our inventory to find the perfect fit for your model. Visit Partsmith.ae today for unbeatable deals on Tata spare parts! Tata Xenon Parts

    ReplyDelete

Official SharePoint Documentation

I have recently contributed to the official SharePoint documentation for developement. Check it out here: https://docs.microsoft.com/en-us...