{"id":41244,"date":"2022-04-21T07:30:47","date_gmt":"2022-04-21T06:30:47","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41244"},"modified":"2022-04-21T07:31:11","modified_gmt":"2022-04-21T06:31:11","slug":"import-bot-into-an-existing-bot-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/import-bot-into-an-existing-bot-api\/?lang=ko","title":{"rendered":"\uae30\uc874 Bot API\ub85c Bot \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>\uc0c8\ub85c\uc6b4 \ubc84\uc804\uc73c\ub85c \uc5c5\uadf8\ub808\uc774\ub4dc\ud558\uac70\ub098 \uc774\uc804 \ubc84\uc804\uc73c\ub85c \ubcf5\uc6d0\ud558\uae30 \uc704\ud574 \ubd07 \uc815\uc758 \ud30c\uc77c\uc744 \uae30\uc874 \ubd07\uc73c\ub85c \uac00\uc838\uc624\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/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.<br \/>\n\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\/{{BotID}}\/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<p>&nbsp;<\/p>\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<tr>\n<td>BotID<\/td>\n<td><span style=\"font-weight: 400\">\ubd07 ID \ub610\ub294 \uc2a4\ud2b8\ub9bc ID. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc774\ub97c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/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>\u201c\ubd07 \uc815\uc758 \ud30c\uc77c ID\u201d <a href=\"\/?p=18088\">(\ud655\uc778\ud558\ub824\uba74 \uc5ec\uae30 \ucc38\uc870)<\/a><\/td>\n<\/tr>\n<tr>\n<td>configInfo<\/td>\n<td>&#8220;\ubd07 \uc124\uc815 \ud30c\uc77c ID&#8221; <a href=\"\/?p=18088\">(\ud655\uc778\ud558\ub824\uba74 \uc5ec\uae30 \ucc38\uc870.)<\/a><\/td>\n<\/tr>\n<tr>\n<td>botFunctions (\uc120\ud0dd \uc0ac\ud56d \ud544\ub4dc)<\/td>\n<td>\u201cFileid\u201d<\/td>\n<\/tr>\n<tr>\n<td>importOptions<\/td>\n<td>\n<p>\uae30\ubcf8\uc801\uc73c\ub85c \ubaa8\ub4e0 \ubd07 \uad6c\uc131 \uc694\uc18c\ub97c \uac00\uc838\uc635\ub2c8\ub2e4. \ud544\uc694\ud55c \uacbd\uc6b0 \ubd88\ub7ec\uc624\uae30\uc5d0 \ud3ec\ud568\ud560 \uad6c\uc131 \uc694\uc18c\ub97c \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\"importOptions\": {\r\n   \"tasks\": [\r\n     \"botTask\",\r\n     \"knowledgeGraph\"\r\n     ],\r\n   \"nlpData\": [\r\n     \"nlpSettings\",\r\n     \"utterances\",\r\n     \"standardResponses\"\r\n     ],\r\n   \"settings\": [\r\n     \"botSettings\",\r\n     \"botVariables\",\r\n     \"ivrSettings\"\r\n     ]\r\n },<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>options<\/p>\n<p>(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\n<p>\uc774\ub294 ML \ubc1c\ud654\uc758 \uc99d\ubd84 \uac00\uc838\uc624\uae30 \uc635\uc158\uc758 \uad50\uccb4 \ub610\ub294 \ucd94\uac00 \uc5ec\ubd80\ub97c \ub098\ud0c0\ub0b4\uba70 <a href=\"https:\/\/multisite.korebots.com\/uncategorised-ko-2\/bot-management-2\/?lang=ko#Steps_in_Importing_to_an_Existing_Bot\" target=\"_blank\" rel=\"noopener noreferrer\">\uc790\uc138\ud55c \ub0b4\uc6a9\uc740 \uc5ec\uae30\ub97c \ucc38\uc870\ud558\uc138\uc694<\/a>.<\/p>\n<pre>\"options\": {\r\n     \"utterances\": {\r\n        \"replace\": true\r\n\t\"append\":false\r\n        }\r\n<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><strong>\ubc94\uc6a9 \ubd07<\/strong><br \/>\n\ubc94\uc6a9 \ubd07 \uac00\uc838\uc624\uae30\uc758 \uacbd\uc6b0 importOptions\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc870\uae08 \ub2e4\ub985\ub2c8\ub2e4.<\/p>\n<pre>\"importOptions\": {\r\n\t\"nlpData\": [\r\n\t\t\"training_data\",\r\n\t\t\"bot_synonyms\",\r\n\t\t\"nlpSettings\",\r\n\t\t\"defaultDialog\",\r\n\t\t\"standardResponses\"\r\n\t],\r\n\t\"settings\": [\r\n\t\t\"botSettings\",\r\n\t\t\"ivrSettings\",\r\n\t\t\"botVariables\",\r\n\t\t\"ivrSettings\"\r\n\t],\r\n\t\"options\": {\r\n\t\t\"utterances\": {\r\n\t\t\"append\": true,\r\n\t\t\"replace\": false\r\n\t\t}\r\n\t},\r\n\t\"botComponents\": [\r\n\t\t\"linkedBots\",\r\n\t\t\"smallTalk\"\r\n\t],\r\n\t\"customDashboard\": true\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-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.<\/p>\n<p><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\/{{BotID}}\/import \\\r\n  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \\\r\n  -H 'content-type: application\/json' \\\r\n  -d '{\r\n  \"botDefinition\" : \"5b7ed2b87cab5c48ea9794f9\",\r\n  \"configInfo\" : \"5b7ed2d77cab5c48ea9794fa\",\r\n  \"botFunctions\":[\"5b7ed33a86a5fc48f4777ea6\"]\r\n}'<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\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\">\ubc94\uc6a9 \ubd07\uc5d0 \ub300\ud55c \uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/import \\\r\n  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \\\r\n  -H 'content-type: application\/json' \\\r\n  -d '{\r\n  \"botDefinition\" : \"5b7ed2b87cab5c48ea9794f9\",\r\n  \"configInfo\" : \"5b7ed2d77cab5c48ea9794fa\",\r\n  \"importOptions\": {\r\n\t\"nlpData\": [\r\n\t\t\"training_data\",\r\n\t\t\"bot_synonyms\",\r\n\t\t\"nlpSettings\",\r\n\t\t\"defaultDialog\",\r\n\t\t\"standardResponses\"\r\n\t],\r\n\t\"settings\": [\r\n\t\t\"botSettings\",\r\n\t\t\"ivrSettings\",\r\n\t\t\"botVariables\",\r\n\t\t\"ivrSettings\"\r\n\t],\r\n\t\"options\": {\r\n\t\t\"utterances\": {\r\n\t\t\"append\": true,\r\n\t\t\"replace\": false\r\n\t\t}\r\n\t},\r\n\t\"botComponents\": [\r\n\t\t\"linkedBots\",\r\n\t\t\"smallTalk\"\r\n\t],\r\n\t\"customDashboard\": true\r\n}\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-7\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<pre>{\r\n    \"streamRefId\": \"c685t327-8f93-588b-97bb-3399fa998bca\",\r\n    \"statusLogs\": [\r\n        {\r\n            \"taskType\": \"importRequest\",\r\n            \"taskName\": \"Sample Task\",\r\n            \"status\": \"success\"\r\n        }\r\n    ],\r\n    \"createdBy\": \"u-3ae8bd39-a63e-5b2c-b55b-85864a8202c3\",\r\n    \"requestType\": \"Botimport\",\r\n    \"_id\": \"bir-00b2baf0-7e02-523b-b317-79a372b91fc6\",\r\n    \"status\": \"pending\",\r\n    \"createdOn\": \"2018-12-05T07:40:51.956Z\",\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":"\uc0c8\ub85c\uc6b4 \ubc84\uc804\uc73c\ub85c \uc5c5\uadf8\ub808\uc774\ub4dc\ud558\uac70\ub098 \uc774\uc804 \ubc84\uc804\uc73c\ub85c \ubcf5\uc6d0\ud558\uae30 \uc704\ud574 \ubd07 \uc815\uc758 \ud30c\uc77c\uc744 \uae30\uc874 \ubd07\uc73c\ub85c \uac00\uc838\uc624\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \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 \ud544\uc694\ud569\ub2c8\ub2e4. POST https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/import \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 &nbsp; \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 host \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) BotID \ubd07...","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-41244","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\/41244","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=41244"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41244\/revisions"}],"predecessor-version":[{"id":41245,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41244\/revisions\/41245"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}