未加星标

Build a Q&A Bot with zero code in less than an hour!

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二03 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

(This is version 1, more of a “brain dump” so that I don’t forget what steps I’ve taken. I’ll revise this post with more detail about each step when I’m back from my travels. You may find there’s enough signposting for you to get started already.)

It’s just gone 5:00am where I am in Seattle, WA. I fly home later tonight after soaking up a week with thousands of other members of Microsoft’s technical community at an internal event called TechReady. Needless to say, the content shared is highly confidential but is motivating, inspirational and truly awesome. It’s as a result of this shot of technical excitement that I decided to build a Q&A bot. What’s even better? I did it in less than an hour with zero code and so can you! Read on to find out how…

Disclaimer

I am not a proficient developer. In fact, I find code scary. I can be dangerous with HTML, CSS, python, and I’ve even been known to toy with VisualBASIC and C# in the past but one thing I don’t call myself is a developer. This is important to note because when I first looked at this I naturally assumed it would be technically complex, time-consuming, and require a PhD in machine learning. As you’ll see, it doesn’t.

I’m expecting to update this post several times with more context and detail. When I built the Bot I didn’t have writing a blog post in mind and therefore didn’t write out the steps or take screenshots. Since a few people have asked how I did it, I’m writing it up. There may be gaps, and if there are please let me know in the comments.

Lastly, the Bot I’ve built is rudimentary. It’s awesome and fully working, but to take it to the next level I can see the need to start adding some custom code and development. I provide what I did here purely “as-is” to help you get started.

Introducing jamesbmarshallbot

I needed a purpose to build a Bot, and since I’m often asked fairly simple and common questions and am often setting an “OOF” (Out of Office) response I thought that a “virtual James” that people could ask questions of would be a great proof of concept and might even help keep my inbox manageable whilst I’m out with customers and partners.

Ways to interact

Right now you can speak to the Bot in three main ways:

Skype as a contact you chat within the client. Microsoft Teams as a bot you chat with via the web or desktop app. Web chat a simple web portal chat interface.

It’s actually very simple to support channels like FaceBook Messenger, Slack, Telegram and even services like Twilio but I haven’t activated those for now.

You will need…

Actually, you won’t need very much but here’s a list that might help:

An Azure subscription. Don’t worry if you don’t have one, you can get 150 of free credit by signing up for a trial . Questions. This isn’t strictly required, but if you have a bunch of URLs to FAQ pages it’s very easy to train the Bot on those questions automatically. As you’ll see, you can add your own but a pre-existing bank of “question and answer pairs” can save some time. Refreshments. Diet Coke is my preference, but grab yourself a drink. High-level Steps

I will cover these steps in more details as I update this post. In summary, the steps you’re going to take are:

Create the initial Q&A bot using QnA Maker . Train the Bot with pre-existing FAQs and customer questions, and we’ll test to make sure they’re being answered correctly. Create a Bot using the Azure Bot Service (in preview), to which we’ll hook up the Q&A Bot we just made. Configure the Azure Bot Service and Q&A Bot to work together , it’s a few clicks and some copy-and-paste. Configure Channels for the Bot to be interacted with. Start chatting! [Optional] Create an Azure Web App to host a simple page with the web chat embedded in it.

At a high level, it’s “as simple as that”. You canchat to mine if you like! Some questions to ask:

“How are you”? “What is CSP?” “Are you single?”

I’ve built mine to have learned from the CSP FAQ . In theory, any of the questions there should get an answer from the Bot. My next task is to go through and re-train the Bot to understand more “natural” questioning, and of course, add more question-and-answer pairs to make it even more useful!

Further Reading

It goes without saying that I’m not a genius. I did reference some online materials to help put this all together:

Create Bot from FAQ page with no coding a little light on detail, but the last step helped me make the bridge between QnA Maker and Azure Bot Service.

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

主题: CSSHTMLC#SlackOfficePythonSkype
分页:12
转载请注明
本文标题:Build a Q&A Bot with zero code in less than an hour!
本站链接:http://www.codesec.net/view/533827.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(83)