{"id":29498,"date":"2021-08-26T05:50:04","date_gmt":"2021-08-26T04:50:04","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-1\/?p=29498"},"modified":"2021-08-26T05:50:24","modified_gmt":"2021-08-26T04:50:24","slug":"install-sample-bot-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/api-guide\/install-sample-bot-api\/?lang=ja","title":{"rendered":"\u30b5\u30f3\u30d7\u30eb\u30dc\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bAPI"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\u30b5\u30f3\u30d7\u30eb\u30dc\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001[<em>\u30dc\u30c3\u30c8\u5b9a\u7fa9<\/em>] \u306e [<em>\u30dc\u30c3\u30c8\u306e\u4f5c\u6210<\/em>] \u306e\u7ba1\u7406\u30a2\u30d7\u30ea\u30b9\u30b3\u30fc\u30d7\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><b>\u30dd\u30b9\u30c8 <\/b><code>https:\/\/{{host}}\/api\/public\/samplebots\/{{botId}}\/add<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i\">\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/td>\n<\/tr>\n<tr>\n<td>BotID\uff09<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-2\">\u8a8d\u8a3c<\/span><\/h3>\n<p>\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><code>auth: {{JWT}}<br \/> AccountId: {{accountId}}<br \/> userId: {{userId}}<br \/> bot-language : en<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-3\">\u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7<\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-4\">\u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/samplebots\/{{bot_id}}\/add&apos; \\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -H &apos;content-type: application\/json&apos; \\ -H &apos;AccountId: xexxbaxxxbxbxxxxxxxxcxfb&apos; \\ -H &apos;userId: u-fbxxfxxx-axfd-xfcx-abxx-xcxxxxaxexxx&apos; \\ -H &apos;bot-language: en &apos;<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-5\">\u30b5\u30f3\u30d7\u30eb\u5fdc\u7b54<\/span><\/h3>\n<pre>{ &quot;visibility&quot;: { &quot;namespace&quot;: &quot;private&quot;, &quot;namespaceIds&quot;: [ &quot;u-fb90f166-a5fd-5fc8-ab44-6c5388a1e660&quot; ] }, &quot;languages&quot;: [], &quot;screenShots&quot;: [], &quot;downloadCount&quot;: 0, &quot;alerts&quot;: [ &quot;l-be9b69b5-dbae-55f1-8499-c0b3db74602c&quot; ], &quot;actions&quot;: [], &quot;dialogs&quot;: [ &quot;dg-cbf01287-c284-5fb9-8686-b21c0b54cba6&quot;, &quot;dg-353f3abc-b307-58c2-b0aa-0b1e02635017&quot; ], &quot;widgets&quot;: [], &quot;panels&quot;: [], &quot;forms&quot;: [], &quot;categoryIds&quot;: [ &quot;451902a073c071463e2ce7c6&quot; ], &quot;class&quot;: [], &quot;featured&quot;: false, &quot;profileRequired&quot;: true, &quot;sendVcf&quot;: false, &quot;isNLEnabled&quot;: true, &quot;interruptsEnabled&quot;: true, &quot;state&quot;: &quot;setup&quot;, &quot;defaultLanguage&quot;: &quot;en&quot;, &quot;_id&quot;: &quot;st-cf8323be-e50e-5dd3-8870-2c8482e4bc2e&quot;, &quot;modifiedOn&quot;: &quot;2021-01-12T10:55:11.551Z&quot;, &quot;sBannerColor&quot;: &quot;#E44929&quot;, &quot;bBannerColor&quot;: &quot;#E44929&quot;, &quot;createdOn&quot;: &quot;2021-01-12T10:55:11.115Z&quot;, &quot;createdBy&quot;: &quot;u-fb90f166-a5fd-5fc8-ab44-6c5388a1e660&quot;, &quot;lastModifiedBy&quot;: &quot;u-fb90f166-a5fd-5fc8-ab44-6c5388a1e660&quot;, &quot;accountId&quot;: &quot;5e81ba854b3b29780134c7fb&quot;, &quot;sharedBy&quot;: [], &quot;__v&quot;: 0, &quot;name&quot;: &quot;Asana Sample_botowner@koreai.in_34&quot;, &quot;keywords&quot;: [], &quot;originalName&quot;: &quot;Asana Sample&quot;, &quot;icon&quot;: &quot;58f49848a8429af87912c7f1&quot;, &quot;color&quot;: &quot;#E44929&quot; }<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\u30b5\u30f3\u30d7\u30eb\u30dc\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001[\u30dc\u30c3\u30c8\u5b9a\u7fa9] \u306e [\u30dc\u30c3\u30c8\u306e\u4f5c\u6210] \u306e\u7ba1\u7406\u30a2\u30d7\u30ea\u30b9\u30b3\u30fc\u30d7\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002 \u30dd\u30b9\u30c8 https:\/\/{{host}}\/api\/public\/samplebots\/{{botId}}\/add \u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e \u30db\u30b9\u30c8 \u5fc5\u9808 \u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09 BotID\uff09 \u5fc5\u9808 \u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u8a8d\u8a3c \u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} AccountId: {{accountId}} userId: {{userId}} bot-language : en \u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/json \u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8 curl -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/samplebots\/{{bot_id}}\/add&apos; \\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -H &apos;content-type: application\/json&apos; \\ -H &apos;AccountId: xexxbaxxxbxbxxxxxxxxcxfb&apos; \\ -H &apos;userId: u-fbxxfxxx-axfd-xfcx-abxx-xcxxxxaxexxx&apos;...","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-29498","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/comments?post=29498"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29498\/revisions"}],"predecessor-version":[{"id":29500,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29498\/revisions\/29500"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=29498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=29498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=29498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}