{"id":30273,"date":"2021-08-24T10:17:39","date_gmt":"2021-08-24T09:17:39","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/bots-platform-api-reference\/"},"modified":"2021-08-24T10:18:33","modified_gmt":"2021-08-24T09:18:33","slug":"bots-platform-api-reference","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/bots-platform-api-reference\/","title":{"rendered":"Web \u30bd\u30b1\u30c3\u30c8\u63a5\u7d9a\u3068 RTM"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>Kore.ai SDK \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306e\u901a\u4fe1\u306b Web \u30bd\u30b1\u30c3\u30c8 \u30c1\u30e3\u30cd\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Web \u30bd\u30b1\u30c3\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b\u3001Kore.ai SDK \u306f\u4ee5\u4e0b\u306e \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30f3\u30c9 \u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 SDK \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001JWT \u30c8\u30fc\u30af\u30f3\u306e\u307f\u3092\u751f\u6210\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 SDK \u306b\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"%E5%88%9D%E6%9C%9F%E5%8C%96\"><\/span>\u521d\u671f\u5316<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Kore.ai SDK \u304c Web \u30bd\u30b1\u30c3\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u521d\u671f\u5316\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u53c2\u7167\u7528\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%BF%85%E8%A6%81%E6%9D%A1%E4%BB%B6\"><\/span>\u5fc5\u8981\u6761\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304c\u767b\u9332\u3055\u308c\u3001Kore.ai \u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc \u30c4\u30fc\u30eb\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8 \u30ad\u30fc\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B9%E3%83%86%E3%83%83%E3%83%97_1\"><\/span><strong>\u30b9\u30c6\u30c3\u30d7 1<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>JWT \u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306e\u8cc7\u683c\u60c5\u5831\u3068\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002JWT \u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306b\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B9%E3%83%86%E3%83%83%E3%83%97_2\"><\/span><strong>\u30b9\u30c6\u30c3\u30d7 2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306e  <code>accessToken<\/code>&nbsp;\u7528\u306b JWT \u30c8\u30fc\u30af\u30f3\u3092\u4ea4\u63db\u3057\u307e\u3059\u3002<\/span>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306e JSON \u69cb\u6587\u306b\u57fa\u3065\u3044\u3066\u3001 <code><span style=\"font-weight: 400\">\/api\/1.1\/<\/span><span style=\"font-weight: 400\">oAuth<\/span><span style=\"font-weight: 400\">\/token\/jwtgrant<\/span><\/code>&nbsp; \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c1\u30e3\u30c3\u30c8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 <code>POST https:\/\/{{APIHost}}\/api\/1.1\/oAuth\/token\/jwtgrant<\/code><\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;assertion&quot;: &ldquo;{{JWT Token}}&rdquo;, &quot;botInfo&quot;: { &quot;chatBot&quot;: &quot;{{Bot Name}}&quot;, &quot;taskBotId&quot;: &quot;st-f74a3430-3b19-55a3-be41-1ab1a35c4685&quot; } )<\/pre>\n<h4><strong>\u30b5\u30f3\u30d7\u30eb cURL<\/strong><\/h4>\n<pre>curl &apos;https:\/\/{{APIHost}}\/api\/1.1\/oAuth\/token\/jwtgrant&apos; \\ -H &apos;content-type: application\/json&apos; &nbsp;\\ --data-binary &apos;{&quot;assertion&quot;:&quot;{JWT Token}}&quot;,&quot;botInfo&quot;:{&quot;chatBot&quot;:&quot;{{Bot Name}}&quot;,&quot;taskBotId&quot;:&quot;st-f74a3430-3b19-55a3-be41-1ab1a35c4685&quot;}}<\/pre>\n<h4>\u30ec\u30b9\u30dd\u30f3\u30b9<\/h4>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u306f\u3001 <code>accessToken<\/code> \u304a\u3088\u3073\u305d\u306e\u30c8\u30fc\u30af\u30f3\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:JSON decode:true \">{ &quot;authorization&quot;: { &quot;accessToken&quot;: &quot;ZdV2OL_UZ_MvHog-rs8k9KJFNWBICvquSc3jpeaRDE_-&quot;, \/\/ access token to user at \/api\/rtm &quot;token_type&quot;: &quot;bearer&quot;, &quot;expiresDate&quot;: &quot;2019-06-28T06:52:23.160Z&quot;, \/\/expiry date for access token &quot;issuedDate&quot;: &quot;2019-02-28T06:52:23.160Z&quot; \/\/access token issuedDate }, &quot;userInfo&quot;: { &quot;userId&quot;: &quot;u-4f6c68e0-551a-5dd9-a33a-1af3dc9cadcc&quot;, \/\/ user id which is unique for the user and can be used at bot messages api &quot;accountId&quot;: &quot;5c66514d09ab3565deb2e30a&quot;, \/\/ account id in which the user is present &quot;orgId&quot;: &quot;o-88aad7f1-0d32-5765-93d7-f40c80402114&quot;, \/\/ organization id of the user &quot;identity&quot;: &quot;cs-5b08ed1e-5fa7-5aaa-9c21-28bf8c90b739\/admin1212@qakore.xyz&quot;, \/\/identity of user from the channel perspective &quot;enrollType&quot;: &quot;free&quot;, \/\/Enrollment type (Free\/ Paid etc) &quot;managedBy&quot;: &quot;5c66514d09ab3565deb2e30a&quot;, \/\/(The account id) &quot;fName&quot;: &quot;&quot;, \/\/first name of the user \/\/ (fetched if the user is registered on the platform) &quot;lName&quot;: &quot;&quot; \/\/last name of the user \/\/ (fetched if the user is registered on the platform) } }<\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B9%E3%83%86%E3%83%83%E3%83%97_3\"><\/span><strong>\u30b9\u30c6\u30c3\u30d7 3<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066 Web \u30bd\u30b1\u30c3\u30c8\u306e URL \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306e JSON \u69cb\u6587\u306b\u57fa\u3065\u3044\u3066\u3001 <code>\/api\/1.1\/rtm\/start<\/code>&nbsp; \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066 Web \u30bd\u30b1\u30c3\u30c8 URL \u3092\u53d6\u5f97\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\"><strong>\u30e1\u30e2:<\/strong> \u3053\u306e URL \u306f\u6709\u52b9\u671f\u9593\u304c\u77ed\u304f\u300130 \u79d2\u5f8c\u306b\u671f\u9650\u5207\u308c\u306b\u306a\u308a\u307e\u3059\u3002\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u524d\u306b\u3001\u63a5\u7d9a\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code>POST https:\/\/{{APIHost}}\/api\/1.1\/rtm\/start<\/code><\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;botInfo&quot;: { &quot;chatBot&quot;: &quot;Twitter&quot;, &quot;taskBotId&quot;: &quot;st-f74a3430-3b19-55a3-be41-1ab1a35c4685&quot; }}<\/pre>\n<p><code>accessToken<\/code>&nbsp;\u306f\u3001\u627f\u8a8d\u30d8\u30c3\u30c0\u30fc\u306e <code>bearer<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4><strong>\u30b5\u30f3\u30d7\u30eb cURL<\/strong><\/h4>\n<pre>curl &apos;https:\/\/{{APIHost}}\/api\/1.1\/rtm\/start&apos; \\ -H &apos;content-type: application\/json&apos; \\ -H &apos;Authorization: bearer {{accessToken}}&apos; \\ --data-binary &apos;{&quot;botInfo&quot;:{&quot;chatBot&quot;:&quot;{{Bot Name}}&quot;,&quot;taskBotId&quot;:&quot;st-f74a3430-3b19-55a3-be41-1ab1a35c4685&quot;}&apos;<\/pre>\n<h4>\u30ec\u30b9\u30dd\u30f3\u30b9<\/h4>\n<p>\u4ee5\u4e0b\u306e JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3001Web \u30bd\u30b1\u30c3\u30c8\u306e URL \u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">{&quot;url&quot;:&quot;wss:\/\/xxx.yyy.com:443\/rtm\/bot?sid=GhKrtrEC61g7hAnmvKAVnJIHG0DS1Lzv&quot;}<\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"RTM_%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88_%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9\"><\/span><span style=\"font-weight: 400\">RTM \u30a4\u30d9\u30f3\u30c8 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u3068 Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u9593\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 \u30a4 \u30d9\u30f3\u30c8\u304c\u3084\u308a\u53d6\u308a\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"RTM_%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88_%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88\"><\/span><span style=\"font-weight: 400\">RTM \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a4\u30d9\u30f3\u30c8<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304b\u3089Web \u30bd\u30b1\u30c3\u30c8\u7d4c\u7531\u3067 Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u9001\u4fe1\u3055\u308c\u308b RTM \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a4\u30d9\u30f3\u30c8\u306e JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<strong>\u30a4\u30d9\u30f3\u30c8 \u30bf\u30a4\u30d7<\/strong>&nbsp;<code>\/bot.message<\/code> <strong>\u8aac\u660e:<\/strong> \u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3057\u305f\u3068\u304d\u306b\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;clientMessageId&quot;: 1466692440896, &quot;message&quot;: { &quot;body&quot;: &quot;Here is the message.&quot;, &quot;attachments&quot;: [ ] }, &quot;resourceid&quot;: &quot;\/bot.message&quot;, &quot;botInfo&quot;: { &quot;chatBot&quot;: &quot;CNN&quot;, &quot;taskBotId&quot;: &quot;st-8aaf0939-c34a-5976-8e2e-5c91e685b2ce&quot; }, &quot;id&quot;: 1466692440896 }<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"RTM_%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC_%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88\"><\/span><span style=\"font-weight: 400\">RTM \u30b5\u30fc\u30d0\u30fc \u30a4\u30d9\u30f3\u30c8<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Web \u30bd\u30b1\u30c3\u30c8\u3092\u4ecb\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306b\u9001\u4fe1\u3055\u308c\u308b RTM \u30b5\u30fc\u30d0\u30fc \u30a4\u30d9\u30f3\u30c8 JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><strong>\u30a4\u30d9\u30f3\u30c8 \u30bf\u30a4\u30d7<\/strong>&nbsp;<code>ack<\/code> <strong>\u8aac\u660e\uff1a<\/strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304b\u3089\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3059\u308b\u305f\u3073\u306b\u9001\u4fe1\u3055\u308c\u308b\u53d7\u4fe1\u78ba\u8a8d\u3002\u4ee5\u4e0b\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304b\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;ok&quot;: true, &quot;replyto&quot;: 1466692440896, &quot;message&quot;: &quot;delivered&quot;, &quot;type&quot;: &quot;ack&quot; }<\/pre>\n<p><strong>\u30a4\u30d9\u30f3\u30c8 \u30bf\u30a4\u30d7:<\/strong>&nbsp;<code>bot_response<\/code> <strong>\u8aac\u660e\uff1a<\/strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3059\u308b\u305f\u3073\u306b\u9001\u4fe1\u3055\u308c\u308b\u53d7\u4fe1\u78ba\u8a8d\u3002\u4ee5\u4e0b\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3059\u308b\u969b\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;type&quot;: &quot;bot_response&quot;, &quot;from&quot;: &quot;bot&quot;, &quot;message&quot;: [ { &quot;type&quot;: &quot;text&quot;, &quot;cInfo&quot;: { &quot;body&quot;: &quot; Hi.&quot; } } ], &quot;botInfo&quot;: { &quot;chatBot&quot;: &quot;CNN&quot;, &quot;taskBotId&quot;: &quot;st-8aaf0939-c34a-5976-8e2e-5c91e685b2ce&quot; }, &quot;createdOn&quot;: &quot;2016-06-23T14:34:00.025Z&quot;, &quot;icon&quot;: &quot;https:\/\/devbots.kore.com\/api\/getMediaStream\/market\/f-683e82be-fc25-5921-bf41-4104780f71c2.png&quot; }<\/pre>\n<p><strong>\u30a4\u30d9\u30f3\u30c8 \u30bf\u30a4\u30d7:<\/strong>&nbsp;<code>user_message<\/code> <strong>\u8aac\u660e:<\/strong>&nbsp;\u30e6\u30fc\u30b6\u30fc\u304c\u5225\u306e\u540c\u6642\u30bb\u30c3\u30b7\u30e7\u30f3\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5165\u529b\u3057\u3066\u9001\u4fe1\u3057\u305f\u3068\u304d\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"toolbar:1 lang:default decode:true\">{ &quot;botInfo&quot;: { &quot;chatBot&quot;: &quot;CNN&quot;, &quot;taskBotId&quot;: &quot;st-8aaf0939-c34a-5976-8e2e-5c91e685b2ce&quot; }, &quot;from&quot;: &quot;self&quot;, &quot;message&quot;: { &quot;body&quot;: &quot;how are you doing &quot;, &quot;attachments&quot;: [] }, &quot;id&quot;: 1466692871803, &quot;type&quot;: &quot;user_message&quot; }<\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"%E4%BC%9A%E8%A9%B1%E5%B1%A5%E6%AD%B4%E3%81%AE%E5%8F%96%E5%BE%97\"><\/span>\u4f1a\u8a71\u5c65\u6b74\u306e\u53d6\u5f97<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306f\u3001\u4e0a\u8a18\u30b9\u30c6\u30c3\u30d7 2 \u3067\u751f\u6210\u3057\u305f\u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8 <code>\/api\/botmessages\/rtm?botId={{botId}}<\/code>\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u9593\u3067\u4ea4\u308f\u3055\u308c\u305f\u904e\u53bb\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c1\u30e3\u30c3\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u4f1a\u8a71\u306e\u5c65\u6b74\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306e JSON \u69cb\u6587\u306b\u57fa\u3065\u3044\u3066\u3001 <code>\/api\/botmessages\/rtm<\/code> \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066 Web \u30bd\u30b1\u30c3\u30c8 URL \u3092\u53d6\u5f97\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<pre>GET https:\/\/{{APIHost}}\/api\/botmessages\/rtm?botId={{botId}}<\/pre>\n<p><strong>\u30af\u30a8\u30ea \u30d1\u30e9\u30e1\u30fc\u30bf<\/strong>:<\/p>\n<ul>\n<li>botId (\u5fc5\u9808): \u30dc\u30c3\u30c8 ID \u306b\u306f\u3001\u30dc\u30c3\u30c8\u306e\u300c\u4e00\u822c\u8a2d\u5b9a\u300d\u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30b9\u30ad\u30c3\u30d7\/\u30aa\u30d5\u30bb\u30c3\u30c8\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09: \u30b9\u30ad\u30c3\u30d7\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6570\u3002<\/li>\n<li>\u30ea\u30df\u30c3\u30c8\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09: \u53d6\u5f97\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6570\u3002<\/li>\n<li>\u30d8\u30c3\u30c0\u30fc\u306e \u627f\u8a8d \u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u30d9\u30a2\u30e9\u30fc\u3068\u4e00\u7dd2\u306b\u6e21\u3055\u308c\u308b <code>accessToken<\/code> <\/li>\n<\/ul>\n<p><strong>\u30b5\u30f3\u30d7\u30eb cURL<\/strong><\/p>\n<pre>curl &apos;https:\/\/{{APIHost}}\/api\/botmessages\/rtm?botId={{botId}}&amp;limit=10&apos; \\ -H &apos;accept: application\/json&apos; \\ -H &apos;Authorization: bearer -{{accessToken}}&apos; \\ -H &apos;content-type: application\/json&apos;<\/pre>\n<p><strong>\u30b5\u30f3\u30d7\u30eb \u30ec\u30b9\u30dd\u30f3\u30b9<\/strong><\/p>\n<pre>{ &quot;total&quot;: 2, &quot;moreAvailable&quot;: false, &quot;messages&quot;: [ { &quot;_id&quot;: &quot;ms-8a83d099-dd93-5b6b-836b-ac77bdfe9d4a&quot;, &quot;channels&quot;: [ { &quot;type&quot;: &quot;rtm&quot; } ], &quot;type&quot;: &quot;incoming&quot;, &quot;status&quot;: &quot;sent to cs&quot;, &quot;createdBy&quot;: &quot;u-211f287f-17c8-51ac-b768-15c68e19afb2&quot;, &quot;lmodifiedBy&quot;: &quot;u-211f287f-17c8-51ac-b768-15c68e19afb2&quot;, &quot;lmodifiedOn&quot;: &quot;2019-12-03T05:07:44.008Z&quot;, &quot;botId&quot;: &quot;st-2f579dbf-9dc1-548c-972f-f19d33160a07&quot;, &quot;orgId&quot;: &quot;o-44741779-1971-5ab9-a0f7-aaf4e21dbe4e&quot;, &quot;accountId&quot;: &quot;5a675150ff600b3d7665d2a6&quot;, &quot;isBB&quot;: 0, &quot;ms&quot;: 1, &quot;chnl&quot;: &quot;rtm&quot;, &quot;components&quot;: [ { &quot;_id&quot;: &quot;cp-1edc5033-a9cb-5011-8b2b-5986b7fa45cc&quot;, &quot;cT&quot;: &quot;text&quot;, &quot;data&quot;: { &quot;text&quot;: &quot;Hi&quot; }, &quot;thumbnails&quot;: [ ] } ], &quot;createdOn&quot;: &quot;2019-12-03T05:07:44.097Z&quot;, &quot;timestampValue&quot;: 1575349664097, &quot;__v&quot;: 0, &quot;lang&quot;: &quot;en&quot;, &quot;sessionId&quot;: &quot;5de5eda04cdcff145752dbf6&quot;, &quot;nodeType&quot;: 0, &quot;tr0_I&quot;: &quot;dg-61e5609f-76e7-5c42-b66f-7bb8b3af2433:intent0&quot;, &quot;tr0_O&quot;: &quot;dg-61e5609f-76e7-5c42-b66f-7bb8b3af2433:entity1:4a04988ee640428d1847fc433081be0b&quot;, &quot;tr0_T&quot;: &quot;0&quot;, &quot;tr_isSS&quot;: 1, &quot;resourceid&quot;: &quot;messagestore&quot;, &quot;tags&quot;: { &quot;messageTags&quot;: [ ], &quot;userTags&quot;: [ ], &quot;sessionTags&quot;: [ ] } }, { &quot;_id&quot;: &quot;ms-80e8dbf3-ca69-5ee2-a2c1-1c6a70100c08&quot;, &quot;channels&quot;: [ { &quot;type&quot;: &quot;rtm&quot; } ], &quot;type&quot;: &quot;outgoing&quot;, &quot;status&quot;: &quot;pending&quot;, &quot;lmodifiedOn&quot;: &quot;2019-12-03T05:07:45.165Z&quot;, &quot;createdBy&quot;: &quot;u-211f287f-17c8-51ac-b768-15c68e19afb2&quot;, &quot;components&quot;: [ { &quot;_id&quot;: &quot;cp-209a0641-130b-57ce-b0d3-d651691084bb&quot;, &quot;cT&quot;: &quot;text&quot;, &quot;data&quot;: { &quot;text&quot;: &quot;Please enter the text to comment on the issue&quot; }, &quot;thumbnails&quot;: [ ] } ], &quot;botId&quot;: &quot;st-2f579dbf-9dc1-548c-972f-f19d33160a07&quot;, &quot;orgId&quot;: &quot;o-44741779-1971-5ab9-a0f7-aaf4e21dbe4e&quot;, &quot;accountId&quot;: &quot;5a675150ff600b3d7665d2a6&quot;, &quot;tN&quot;: &quot;Add Comment to Issue&quot;, &quot;isBB&quot;: 0, &quot;ms&quot;: 1, &quot;chnl&quot;: &quot;rtm&quot;, &quot;lang&quot;: &quot;en&quot;, &quot;createdOn&quot;: &quot;2019-12-03T05:07:45.171Z&quot;, &quot;timestampValue&quot;: 1575349665171, &quot;__v&quot;: 0, &quot;sessionId&quot;: &quot;5de5eda04cdcff145752dbf6&quot;, &quot;resourceid&quot;: &quot;messagestore&quot;, &quot;tags&quot;: { &quot;messageTags&quot;: [ ], &quot;userTags&quot;: [ ], &quot;sessionTags&quot;: [ ] } } ] }<\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"%E6%AC%A1%E3%81%AE%E3%82%B9%E3%83%86%E3%83%83%E3%83%97\"><\/span><em>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 API \u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304a\u3088\u3073 RTM \u30a4\u30d9\u30f3\u30c8\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u307e\u305f\u306f Kore.ai \u30dc\u30c3\u30c8 SDK \u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u3001<a href=\"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/kore-web-sdk\/?lang=ja\">\u300cKore.ai \u30dc\u30c3\u30c8 SDK\u300d<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Kore.ai SDK \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306e\u901a\u4fe1\u306b Web \u30bd\u30b1\u30c3\u30c8 \u30c1\u30e3\u30cd\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Web \u30bd\u30b1\u30c3\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b\u3001Kore.ai SDK \u306f\u4ee5\u4e0b\u306e \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30f3\u30c9 \u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Kore.ai \u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 SDK \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001JWT \u30c8\u30fc\u30af\u30f3\u306e\u307f\u3092\u751f\u6210\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 SDK \u306b\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u521d\u671f\u5316 \u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Kore.ai SDK \u304c Web \u30bd\u30b1\u30c3\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u521d\u671f\u5316\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u53c2\u7167\u7528\u3067\u3059\u3002 \u5fc5\u8981\u6761\u4ef6 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u304c\u767b\u9332\u3055\u308c\u3001Kore.ai \u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc \u30c4\u30fc\u30eb\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8 \u30ad\u30fc\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002 \u30b9\u30c6\u30c3\u30d7 1 JWT \u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306e\u8cc7\u683c\u60c5\u5831\u3068\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002JWT \u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306b\u6e21\u3055\u308c\u307e\u3059\u3002 \u30b9\u30c6\u30c3\u30d7 2 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306e accessToken&nbsp;\u7528\u306b JWT \u30c8\u30fc\u30af\u30f3\u3092\u4ea4\u63db\u3057\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306e JSON \u69cb\u6587\u306b\u57fa\u3065\u3044\u3066\u3001...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30273"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=30273"}],"version-history":[{"count":1,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30273\/revisions"}],"predecessor-version":[{"id":30276,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30273\/revisions\/30276"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=30273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=30273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=30273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}