Using Turing machine to develop intelligent chatting robot at high speed

Source: Internet
Author: User

Chat bots have become a popular topic today. No matter the public account, or QQ chat robot, can be intelligent interactive chat robot account more and more. Believe that a lot of developers also want to implement such a fun intelligent chat robot.

The following will give the vast number of technical developers a simple way to achieve such an intelligent chat robot through the Turing Machine man.

First look at the official experience page of a psychic robot. I believe you will be very interested in:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvcgfty2hlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvcgfty2hlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">

Turing man is a free bot open platform. Do a chat bot directly call its API interface. The call method is easy, and you can see the Official document (HTTP://WWW.TULING123.COM/OPENAPI/CLOUD/API.JSP) in detail. Because of limited personal ability, only the Java access code (used in three jar packages: Httpclient-4.3.1.jar, Httpcore-4.3.jar, Commons-logging-1.0.4.jar)

// number of references

//key: Need to apply to Turing man platform

//info: The content that is sent to the robot when chatting

String apiurl = "http://www.tuling123.com/openapi/api?key=KEY&info= Hello ";

HttpGet request =newhttpget(apiurl );

HttpResponse response =httpclients. Createdefault (). Execute (request);

if (Response.getstatusline (). Getstatuscode () ==200) {

Result =entityutils. toString (response. getentity ());

}

Turing is not only a powerful intelligent chat function, there are many useful features. For example, the weather, road conditions and so on, we can picking.

A few simple lines of code implement a very intelligent chat robot, interested developers can try it on their own. Welcome you and I have a lot of exchanges.

Using Turing machine to develop intelligent chatting robot at high speed

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.