Use the Bot framework and cognitive services to create an intelligent conversation service (i) _bot

Source: Internet
Author: User

Use bot framework and cognitive services to create intelligent Conversation Service (i)

Microsoft said at the BUILD2016 conference that the future will be a world full of chat robots, for which they have launched the Microsoft Bot Framework that allows anyone to make their own chat bots, while Microsoft offers "cognitive microservices" (Cognitive micro-service), which is capable of understanding natural language or analyzing images, opening 22 APIs initially to be integrated into applications.

The Microsoft Bot Framework allows developers to integrate their own developed robots into a range of platforms, such as Skype, Slack, Telegram, email and Web pages, and Microsoft says it wants all developers to be more intelligent about their applications.


This article will talk about building a bot framework background, and how to create a bot process

1. First, please download the bot Framework SDK and recommend downloading the bot framework's template bot application for Visual Studio (this article uses bot Application mode) Download the template (without decompression) please place it directly to C:\Users\ your username \documents\visual Studio 2015\templates\projecttemplates\ Below Visual C # so you can see the templates with bot application below C #.


2, the choice of bot application template, new project


3, do not need to modify anything, directly to the new bot application published outside the Internet, this article tests the use of Azure website.

New website


Publishing site


4, Registered bot

After publishing, visit the homepage, click the bot framework to jump to the registration bot page.


Fill in the basic registration information

Fill in endpoint (http://address/api/messages for bot server) and create app IDs and password (note, remember to take this app password down and show it only once)



After the creation is complete, the following figure shows

5, modify the bot application project Web.config file, the fourth step generated AppID and password fill in the Web.config, and published to the extranet.

6. Add IFrame to the homepage

Select Web Chat channel, click Edit


Click Add new site to get to secret keys and embed Code


Modify the Default.htm file in the bot application and republish

Where the src section fills in the secret keys and embed Code you acquired above yourself

<! DOCTYPE html>

7, run the test

You can get a response message by accessing the home page of the bot server and sending a message to the server. It realizes sending a message, the server responds to the content you send and calculates the length of the string, and it's not up to the point of intelligence. In the next chapter, introduce integrated cognitive Services to make our bot a little smarter.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.