{"id":5683,"date":"2017-05-16T10:00:48","date_gmt":"2017-05-16T01:00:48","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5683"},"modified":"2017-05-15T18:39:45","modified_gmt":"2017-05-15T09:39:45","slug":"%e6%b5%81%e8%a1%8c%e3%82%8a%e3%81%aechatbot%e3%83%84%e3%83%bc%e3%83%ab%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5683","title":{"rendered":"\u6d41\u884c\u308a\u306eChatbot\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u305f!!"},"content":{"rendered":"<p>Chatbot\u306b\u3088\u308b\u4f1a\u8a71\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3044\u305f\u3081\u306b\u3001\u672c\u65e5\u306fRECRUIT\u304c\u5c55\u958b\u3057\u3066\u3044\u308b\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308bA3RT\u306e\u4e2d\u306e1\u3064\u3001Talk API\u3092\u4f7f\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>Chatbot\u3092\u7c21\u5358\u306b\u8aac\u660e\u3059\u308b\u3068\u3001\u4f1a\u8a71\u3092\u81ea\u52d5\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d<br \/>\n \u4eca\u56de\u3001\u79c1\u304c\u4f5c\u6210\u3059\u308b\u30a2\u30d7\u30ea\u3067\u306f\u3001\u81ea\u52d5\u3068\u3044\u3046\u306e\u306f\u3001\u76f8\u624b\u5074\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059 \u3053\u3061\u3089\u304b\u3089\u8a00\u8449\u3092\u4f5c\u6210\u3057\u3066\u9001\u4fe1\u3092\u3059\u308b\u3068\u3001\u81ea\u52d5\u3067\u8fd4\u4e8b\u304c\u9001\u3089\u308c\u3066\u304d\u307e\u3059<br \/>\n Chatbot\u540c\u58eb\u3067\u4f1a\u8a71\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u5168\u81ea\u52d5\u3067\u4f1a\u8a71\u304c\u7e70\u308a\u5e83\u3052\u3089\u308c\u307e\u3059<\/p>\n<p>Talk API\u306f\u300cChatbot\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306eAPI\u3067\u3059\u3002 Recurrent Neural Network(LSTM)\u3092\u7528\u3044\u305f\u5165\u529b\u6587\u304b\u3089\u306e\u5fdc\u7b54\u6587\u751f\u6210\u306b\u3088\u308b\u65e5\u5e38\u4f1a\u8a71\u5fdc\u7b54\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u300d\u3068\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059<\/p>\n<p>A3RT\u306e\u30b5\u30a4\u30c8\u306f<a href=\"https:\/\/a3rt.recruit-tech.co.jp\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a><br \/>\n Talk API\u306e\u30b5\u30a4\u30c8\u306f<a href=\"https:\/\/a3rt.recruit-tech.co.jp\/product\/talkAPI\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-5691\" style=\"margin-right: 10px\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171116-169x300.png\" alt=\"\" width=\"169\" height=\"300\" border=\"1\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171116-169x300.png 169w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171116.png 1080w\" sizes=\"(max-width: 169px) 100vw, 169px\" \/><img loading=\"lazy\" class=\"alignnone size-medium wp-image-5692\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171127-169x300.png\" alt=\"\" width=\"169\" height=\"300\" border=\"1\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171127-169x300.png 169w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/05\/device-2017-05-15-171127.png 1080w\" sizes=\"(max-width: 169px) 100vw, 169px\" \/><\/p>\n<p><!--more--><\/p>\n<h3>Talk API\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306eURL(https:\/\/api.a3rt.recruit-tech.co.jp\/talk\/v1\/smalltalk)\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092POST\u3067\u6295\u3052\u308b\u3068\u3001<span style=\"color: #0000ff\"><strong>JSON\u5f62\u5f0f\u3067\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong><\/span>\u304c\u304d\u307e\u3059<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u5fc5\u9808\u3068\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3001<strong><span style=\"color: #0000ff\">API\u30ad\u30fc\u3068query(\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u5bb9)<\/span><\/strong>\u3067\u3059<br \/>\n API\u30ad\u30fc\u306f\u3001Talk API\u306e\u30b5\u30a4\u30c8\u306b\u98db\u3093\u3067\u3001\u753b\u9762\u4e0b\u90e8\u306b\u3042\u308bAPI KEY \u767a\u884c\u304b\u3089\u767b\u9332\u3092\u3059\u308b\u3068\u914d\u5e03\u3055\u308c\u307e\u3059<br \/>\n query\u306f\u30a2\u30d7\u30ea\u5185\u3067\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u3092\u3057\u3066\u304b\u3089\u3001\u30dc\u30bf\u30f3\u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u3067\u9001\u4fe1\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u304b\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u306f\u3001status\u3068message\u3068results\u304c\u3042\u308a\u307e\u3059<br \/>\n status\u306b\u306f\u3001\u5fdc\u7b54\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u307e\u3059<br \/>\n message\u306b\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5165\u3063\u3066\u3044\u307e\u3059<br \/>\n results\u306b\u306f\u3001\u3055\u3089\u306bperplexity\u3068reply\u304c\u3042\u308a\u307e\u3059<br \/>\n \u3057\u304b\u3057\u3001<strong><span style=\"color: #0000ff\">status\u304c\u6b63\u5e38\u306e\u5834\u5408\u306e\u307f<\/span><\/strong>\u306b\u9650\u308a\u307e\u3059\u3001\u30a8\u30e9\u30fc\u3067\u8fd4\u3063\u3066\u304f\u308b\u3068\u4f55\u3082\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u5b9f\u88c5\u6642\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059<br \/>\n perplexity\u306f\u4e88\u6e2c\u6027\u80fd\u306e\u6570\u5024\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30b5\u30a4\u30c8\u5185\u306b\u3082\u8a73\u3057\u3044\u8a18\u8ff0\u304c\u306a\u3044\u306e\u3067\u3001\u5024\u304c\u3069\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u793a\u3059\u306e\u304b\u304c\u5206\u304b\u308a\u307e\u305b\u3093<br \/>\n reply\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u3063\u305fquery\u306b\u5bfe\u3059\u308b\u5fdc\u7b54\u304c\u5165\u3063\u3066\u3044\u307e\u3059<\/p>\n<p> \u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4e00\u4f8b\u304c\u3053\u3061\u3089\u3067\u3059<br \/>\n {&#8220;status&#8221;: 0, &#8220;message&#8221;: &#8220;ok&#8221;, &#8220;results&#8221;: [{&#8220;perplexity&#8221;: 1.992911665639458, &#8220;reply&#8221;: &#8220;\\u306a\\u306b\\u304b\\u3042\\u308a\\u307e\\u3057\\u305f\\u304b?&#8221;}]}<\/p>\n<h3>Talk API\u306e\u5b9f\u88c5<\/h3>\n<p>\u5b9f\u969b\u306bTalk API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u308b\u3068\u3053\u308d\u307e\u3067\u306e\u5b9f\u88c5\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059<br \/>\n \u901a\u4fe1\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u3001OkHttp3\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px\"><code>public class TalkAysncTask extends AsyncTask&lt;String, String, String&gt; {\r\n\r\n\tprivate static final String API_KEY = YOUR API KEY;\r\n\tprivate static final String API_URL = \r\n\t\t\"https:\/\/api.a3rt.recruit-tech.co.jp\/talk\/v1\/smalltalk\";\r\n\r\n\tinterface Callback{\r\n\t\tvoid onReturn(String s);\r\n\t}\r\n\r\n\tprivate Callback callback;\r\n\r\n\tTalkAysncTask(Context context){\r\n\t\tcallback = (Callback) context;\r\n\t}\r\n\r\n\t@Override\r\n\tprotected String doInBackground(String... params) {\r\n\r\n\t\tRequestBody body = new FormBody.Builder()\r\n\t\t\t\t.add(\"apikey\", API_KEY)\r\n\t\t\t\t.add(\"query\", params[0])\r\n\t\t\t\t.build();\r\n\r\n\t\tRequest request = new Request.Builder()\r\n\t\t\t\t.url(API_URL)\r\n\t\t\t\t.post(body)\r\n\t\t\t\t.build();\r\n\r\n\t\tOkHttpClient client = new OkHttpClient.Builder()\r\n\t\t\t\t.build();\r\n\r\n\t\ttry{\r\n\t\t\tResponse response = client.newCall(request).execute();\r\n\r\n\t\t\treturn response.body().string();\r\n\t\t}catch (IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\t@Override\r\n\tprotected void onPostExecute(String s) {\r\n\t\tLog.d(\"debug\", s);\r\n\t\tcallback.onReturn(s);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u30b3\u30fc\u30c9\u306e\u8aac\u660e\u3092\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<p>API_KEY\u306f\u3001\u914d\u5e03\u3055\u308c\u305f\u30ad\u30fc\u3067\u3059<br \/>\n API_URL\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306eURL\u3067\u3059<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u6765\u305f\u6642\u306bActivity\u306b\u901a\u77e5\u3092\u3057\u305f\u3044\u306e\u3067\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3068\u3057\u3066onReturn\u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f<br \/>\n \u3053\u308c\u306f\u3001onPostExecute\u3067\u4f7f\u7528\u3057\u307e\u3059<\/p>\n<p>\u901a\u4fe1\u90e8\u5206\u3067\u306f\u3001RequestBody\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u308c\u3066\u3044\u307e\u3059<br \/>\n Request\u306b\u306fPost\u3067\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fbody\u3092\u9001\u308b\u3053\u3068\u3001\u9001\u308b\u5148\u3067\u3042\u308bURL\u3092\u8a2d\u5b9a\u3057\u307e\u3059<br \/>\n \u3053\u308c\u3067\u3001\u6e96\u5099\u306f\u5b8c\u4e86\u306a\u306e\u3067Client\u3092\u4f5c\u6210\u3057\u3066\u901a\u4fe1\u3092\u3057\u307e\u3059<br \/>\n \u30ec\u30b9\u30dd\u30f3\u30b9\u306fResponse\u306ebody\u304b\u3089\u53d6\u5f97\u3067\u304d\u307e\u3059<br \/>\n \u53d6\u5f97\u3067\u304d\u305fbody\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067Activity\u306b\u901a\u77e5\u3057\u3066\u5b8c\u4e86\u3067\u3059<\/p>\n<p>\u3042\u3068\u306f\u3001Activity\u5074\u3067\u3084\u308a\u305f\u3044\u3053\u3068\u3092\u5b9f\u88c5\u3059\u308b\u3060\u3051\u3067\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u521d\u3081\u3066\u3053\u306e\u3088\u3046\u306aAPI\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001\u5229\u7528\u3059\u308b\u5074\u306f\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u975e\u5e38\u306b\u4fbf\u5229\u3060\u3068\u601d\u3044\u307e\u3057\u305f<br \/>\n \u3057\u304b\u3057\u3001Talk API\u306f\u51fa\u305f\u3070\u304b\u308a\u306a\u306e\u304b\u4f1a\u8a71\u304c\u6210\u308a\u7acb\u305f\u306a\u3044\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306ereply\u306e\u4e2d\u8eab\u304c\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059<br \/>\n \u3053\u308c\u304b\u3089\u306e\u5b66\u7fd2\u306b\u671f\u5f85\u3057\u305f\u3044\u3067\u3059<\/p>\n<p>Talk API\u306a\u3069\u306eChatbot\u306f\u591a\u304f\u306e\u3053\u3068\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u79c1\u3068\u3057\u3066\u306f\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3068\u308b\u306e\u304c\u82e6\u624b\u306a\u4eba\u306e\u624b\u52a9\u3051\u306a\u3069\u3067\u304d\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u308c\u305f\u3089\u3068\u8003\u3048\u3066\u3044\u307e\u3059 \u3057\u304b\u3057\u3001\u983c\u3063\u3066\u3070\u304b\u308a\u3044\u308b\u3068\u5bfe\u4eba\u304c\u3088\u308a\u82e6\u624b\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1apoppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5683\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5683\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u6d41\u884c\u308a\u306eChatbot\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u305f!!\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5683\" data-text=\"\u6d41\u884c\u308a\u306eChatbot\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u305f!!\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5683\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5683\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Chatbot\u306b\u3088\u308b\u4f1a\u8a71\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3044\u305f\u3081\u306b\u3001\u672c\u65e5\u306fRECRUIT\u304c\u5c55\u958b\u3057\u3066\u3044\u308b\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308bA3RT\u306e\u4e2d\u306e1\u3064\u3001Talk API\u3092\u4f7f\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059 Chatbot\u3092\u7c21\u5358\u306b\u8aac\u660e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[56,79,116],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5683"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=5683"}],"version-history":[{"count":11,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5683\/revisions"}],"predecessor-version":[{"id":5698,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5683\/revisions\/5698"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}