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