{"id":41242,"date":"2022-04-21T07:28:13","date_gmt":"2022-04-21T06:28:13","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41242"},"modified":"2022-04-21T07:28:33","modified_gmt":"2022-04-21T06:28:33","slug":"import-bot-as-a-new-bot-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/import-bot-as-a-new-bot-api\/?lang=ko","title":{"rendered":"\ubd07\uc744 \uc0c8 \ubd07 API\ub85c \uac00\uc838\uc624\uae30"},"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>\ubd07\uc744 \uc0c8 \ubd07\uc73c\ub85c \uac00\uc838\uc624\uae30 API\ub294 \uacc4\uc815 \uc18c\uc720\uc790\uc758 \ube4c\ub354 \ub3c4\uad6c\uc5d0\uc11c \uc0c8 \ubd07\uc744 \ub9cc\ub4dc\ub294 \ub370 \uc0ac\uc6a9\ub418\uba70, \ud30c\uc77c\uc744 \ub85c\uceec \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud558\uc5ec \uc0dd\uc131\ub41c \ud30c\uc77c ID\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc740 <a href=\"\/?p=18088\" target=\"_blank\" rel=\"noopener noreferrer\">\ud30c\uc77c \uc5c5\ub85c\ub4dc API<\/a>\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 <em>\ubd07 \uc815\uc758<\/em> \uc544\ub798\uc5d0 \uc788\ub294 <em>\ubd07 \uac00\uc838\uc624\uae30<\/em>\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><strong>POST<\/strong> <code>https:\/\/{{host}}\/api\/public\/bot\/import<\/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\">\ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">host<\/span><\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/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\">\ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>botDefinition<\/td>\n<td>&quot;\ubd07 \uc815\uc758 \ud30c\uc77c ID&quot;\ub294 \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c <a href=\"\/?p=18088\" target=\"_blank\" rel=\"noopener noreferrer\">\ud30c\uc77c \uc5c5\ub85c\ub4dc API<\/a>\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/td>\n<\/tr>\n<tr>\n<td>configInfo<\/td>\n<td>&quot;\ubd07 \uc124\uc815 \ud30c\uc77c ID&quot;\ub294 \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c <a href=\"\/?p=18088\" target=\"_blank\" rel=\"noopener noreferrer\">\ud30c\uc77c \uc5c5\ub85c\ub4dc API<\/a>\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/td>\n<\/tr>\n<tr>\n<td>botFunctions (\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>&quot;\ubd07 \uae30\ub2a5 \ud30c\uc77c ID&quot;\ub294 \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c <a href=\"\/?p=18088\" target=\"_blank\" rel=\"noopener noreferrer\">\ud30c\uc77c \uc5c5\ub85c\ub4dc API<\/a>\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/td>\n<\/tr>\n<tr>\n<td>icon<\/td>\n<td>&quot;\ubd07 \uc544\uc774\ucf58 \ud30c\uc77c ID&quot;\ub294 \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c <a href=\"\/?p=18088\" target=\"_blank\" rel=\"noopener noreferrer\">\ud30c\uc77c \uc5c5\ub85c\ub4dc API<\/a>\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/td>\n<\/tr>\n<tr>\n<td>name (\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>&quot;\ubd07 \uc774\ub984&quot; \uc81c\uacf5\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0, \uae30\uc874 \ubd07 \ubcf5\uc0ac\ubcf8\uc5d0\uc11c \uac00\uc838\uc635\ub2c8\ub2e4<\/td>\n<\/tr>\n<tr>\n<td>purpose (\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>&ldquo;\uace0\uac1d&rdquo;\/&rdquo;\uc9c1\uc6d0&rdquo;\uc81c\uacf5\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \uae30\uc874 \ubd07 \ubcf5\uc0ac\ubcf8\uc5d0\uc11c \uac00\uc838\uc635\ub2c8\ub2e4<\/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-3\">\uad8c\ud55c \ubd80\uc5ec<\/span><\/h3>\n<p>\ub2e4\uc74c \uad6c\ubb38\uc744 \ud3ec\ud568\ud55c \ud5e4\ub354\uc5d0 JWT\ub97c \ud3ec\ud568\ud55c API\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. <code>auth: {{JWT}}<\/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\">\ucf58\ud150\uce20 \uc720\ud615 \uc751\ub2f5<\/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-5\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/bot\/import \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n   -H 'content-type: application\/json' \\\r\n   -d '{\r\n  \"botDefinition\" : \"5b7ed3c87cab5c48ea9794f9\",\r\n  \"configInfo\" : \"5b7ed2w77cab5c48ea9794fa\",\r\n  \"botFunctions\":[\"5b7ed13a86a5fc48f4777ea6\"],\r\n  \"icon\":\"5b7ed3837cab5c48ea9794fb\"\r\n}'<\/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-6\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<pre>{\r\n    \"streamRefId\": \"f6e21f2d-cf90-52b0-bbc5-638add8dba26\",\r\n    \"statusLogs\": [\r\n        {\r\n            \"taskType\": \"importRequest\",\r\n            \"taskName\": \"SampleTaskName\",\r\n            \"status\": \"success\"\r\n        }\r\n    ],\r\n    \"createdBy\": \"u-3ae8bd39-a65b-5b2c-b66b-85864a8202c3\",\r\n    \"requestType\": \"Botimport\",\r\n    \"_id\": \"bir-32a5ed0d-6181-5a0a-9f21-1bf872290029\",\r\n    \"status\": \"pending\",\r\n    \"createdOn\": \"2018-12-05T07:28:46.113Z\",\r\n    \"__v\": 0\r\n}<\/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":"\ubd07\uc744 \uc0c8 \ubd07\uc73c\ub85c \uac00\uc838\uc624\uae30 API\ub294 \uacc4\uc815 \uc18c\uc720\uc790\uc758 \ube4c\ub354 \ub3c4\uad6c\uc5d0\uc11c \uc0c8 \ubd07\uc744 \ub9cc\ub4dc\ub294 \ub370 \uc0ac\uc6a9\ub418\uba70, \ud30c\uc77c\uc744 \ub85c\uceec \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud558\uc5ec \uc0dd\uc131\ub41c \ud30c\uc77c ID\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ud30c\uc77c ID\ub97c \uc5c5\ub85c\ub4dc\ud558\uace0 \uc5bb\ub294 \ubc29\ubc95\uc740 \ud30c\uc77c \uc5c5\ub85c\ub4dc API\ub97c \ucc38\uc870\ud558\uc138\uc694. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \ubd07 \uc815\uc758 \uc544\ub798\uc5d0 \uc788\ub294 \ubd07 \uac00\uc838\uc624\uae30\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00...","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41242","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=41242"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41242\/revisions"}],"predecessor-version":[{"id":41243,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41242\/revisions\/41243"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}