{"id":41130,"date":"2022-04-21T01:57:51","date_gmt":"2022-04-21T00:57:51","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41130"},"modified":"2022-04-21T01:58:14","modified_gmt":"2022-04-21T00:58:14","slug":"bot-variables-import","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/bot-variables-import\/?lang=ko","title":{"rendered":"\ubd07 \ubcc0\uc218 \uac00\uc838\uc624\uae30 API"},"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>\uc804\uc5ed \ubc0f \ucf58\ud150\uce20 \ubcc0\uc218\ub97c \ubd07\uc73c\ub85c \uac00\uc838\uc635\ub2c8\ub2e4.<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 <em>\ubcc0\uc218 \uac00\uc838\uc624\uae30<\/em>\uc758 \ubd07 \ube4c\ub354 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><strong>POST<\/strong> <i><code>https:\/\/{{host}}\/api\/{{version}}\/public\/builder\/bot\/{{BotID}}\/variables\/import<\/code><\/i><\/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>host<\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/td>\n<\/tr>\n<tr>\n<td>BotID<\/td>\n<td>\ubd07 ID\uc785\ub2c8\ub2e4. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc774\ub97c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\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-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>key<\/td>\n<td>\ubcc0\uc218\uc758 \uc774\ub984<\/td>\n<\/tr>\n<tr>\n<td>value<\/td>\n<td>\ubcc0\uc218\uc5d0 \ub300\ud55c \uac12<\/td>\n<\/tr>\n<tr>\n<td>hint<\/td>\n<td>\ubcc0\uc218 \uc124\uba85<\/td>\n<\/tr>\n<tr>\n<td>variableType<\/td>\n<td>\n<p>\ubcc0\uc218 \uc720\ud615\uc740 \ub2e4\uc74c\uacfc \uac19\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4<\/p>\n<ul>\n<li>\uc804\uc5ed \ubcc0\uc218\uc758 \uacbd\uc6b0 <strong>env<\/strong> \ub610\ub294<\/li>\n<li>\ucf58\ud150\uce20 \ubcc0\uc218\uc758 \uacbd\uc6b0 <strong>locale<\/strong>\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>scope<\/td>\n<td>\n<p>\ubcc0\uc218\uc758 \ubc94\uc704\ub294 \ubcc0\uc218 \uc120\uc5b8 \uc2dc\uc810\uc758 \uc124\uc815 \uc635\uc158\uc5d0 \ud574\ub2f9\ud558\uba70, \ub2e4\uc74c\uacfc \uac19\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<ul>\n<li>prePopulated,<\/li>\n<li>askOnInstall, \ub610\ub294<\/li>\n<li>hidden<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>localeData<\/td>\n<td>\n<p>locale \ud615\uc2dd\uc758 \ubcc0\uc218\uc778 \uacbd\uc6b0 \uac01 \uc5b8\uc5b4\uc5d0 \ub300\ud574 \ub2e4\uc74c \ud615\uc2dd\uc73c\ub85c \ucd94\uac00 \uc5b8\uc5b4 \ub370\uc774\ud130\ub97c \uc804\ub2ec\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre>{\r\n      \"en\": {\r\n        \"value\": \"english language prompt\",\r\n        \"hint\": \"\"\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<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\/1.1\/public\/builder\/bot\/{{BotId}}\/variables\/import \\\r\n  -H 'Content-Type: application\/json' \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n  -d '[\r\n  {\r\n    \"key\": \"Global\",\r\n    \"value\": \"Globalkey-prePopulated\",\r\n    \"hint\": \"\",\r\n    \"variableType\": \"env\",\r\n    \"scope\": \"prePopulated\"\r\n  },\r\n\t{\r\n    \"key\": \"Lang\",\r\n    \"variableType\": \"locale\",\r\n    \"scope\": \"prePopulated\",\r\n    \"localeData\": {\r\n      \"en\": {\r\n        \"value\": \"english language prompt\",\r\n        \"hint\": \"\"\r\n      }\r\n    }\r\n  }\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\">\uceec\ub809\uc158\uc774 \ud65c\uc131\ud654\ub41c \uacbd\uc6b0 \uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/1.1\/public\/builder\/bot\/{{BotId}}\/variables\/import \\\r\n--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--data-raw '{\r\n    \"botVariables\": [\r\n        {\r\n            \"key\": \"CVar\",\r\n            \"value\": \"Cvar1\",\r\n            \"hint\": \"\",\r\n            \"audioTag\": \"\",\r\n            \"variableType\": \"locale\",\r\n            \"scope\": \"prePopulated\",\r\n            \"localeData\": {\r\n                \"en\": {\r\n                    \"value\": \"Cvar1\",\r\n                    \"hint\": \"\",\r\n                    \"audioTag\": \"\"\r\n                }\r\n            },\r\n            \"group\": \"\",\r\n            \"propagateValue\": false,\r\n            \"vNameSpace\": [\r\n                {\r\n                    \"name\": \"default\",\r\n                    \"refId\": \"10e5fcd0-4f9b-5092-b249-3aebeb01c017\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"key\": \"GKey1\",\r\n            \"value\": \"GValue1-C\",\r\n            \"hint\": \"GNotes1\",\r\n            \"audioTag\": \"\",\r\n            \"variableType\": \"env\",\r\n            \"scope\": \"prePopulated\",\r\n            \"group\": \"\",\r\n            \"propagateValue\": false,\r\n            \"vNameSpace\": [\r\n                {\r\n                    \"name\": \"default\",\r\n                    \"refId\": \"10e5fcd0-4f9b-5092-b249-3aebeb01c017\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"key\": \"GKey2\",\r\n            \"value\": \"Gkey2Stag\",\r\n            \"hint\": \"GNotes2\",\r\n            \"audioTag\": \"\",\r\n            \"variableType\": \"env\",\r\n            \"scope\": \"prePopulated\",\r\n            \"group\": \"\",\r\n            \"propagateValue\": false,\r\n            \"vNameSpace\": [\r\n                {\r\n                    \"name\": \"default\",\r\n                    \"refId\": \"10e5fcd0-4f9b-5092-b249-3aebeb01c017\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"key\": \"GKey55\",\r\n            \"value\": \"GKey55-Staging\",\r\n            \"hint\": \"GNotes2\",\r\n            \"audioTag\": \"\",\r\n            \"variableType\": \"env\",\r\n            \"scope\": \"prePopulated\",\r\n            \"propagateValue\": false,\r\n            \"vNameSpace\": [\r\n                {\r\n                    \"name\": \"default\",\r\n                    \"refId\": \"10e5fcd0-4f9b-5092-b249-3aebeb01c017\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"key\": \"contentvar\",\r\n            \"value\": \"contvarvalue\",\r\n            \"hint\": \"This is content variable\",\r\n            \"audioTag\": \"\",\r\n            \"variableType\": \"locale\",\r\n            \"scope\": \"prePopulated\",\r\n            \"localeData\": {\r\n                \"en\": {\r\n                    \"value\": \"contvarvalue\",\r\n                    \"hint\": \"This is content variable\",\r\n                    \"audioTag\": \"\"\r\n                }\r\n            },\r\n            \"group\": \"\",\r\n            \"propagateValue\": false,\r\n            \"vNameSpace\": [\r\n                {\r\n                    \"name\": \"default\",\r\n                    \"refId\": \"10e5fcd0-4f9b-5092-b249-3aebeb01c017\"\r\n                }\r\n            ]\r\n        }\r\n    ],\r\n    \"botCollections\": [\r\n        {\r\n            \"name\": \"Default\",\r\n            \"description\": \"Default Collection\",\r\n            \"refId\": \"8e65ff0a-edac-5641-b27d-5614a4e94c0c\"\r\n        },\r\n        {\r\n            \"name\": \"Staging\",\r\n            \"description\": \"Staging Environment\",\r\n            \"refId\": \"0c033a41-3988-52a5-bc1c-02a4a10863b3\"\r\n        }\r\n    ],\r\n    \"botCollectionVariables\": [\r\n        {\r\n            \"key\": \"GKey1\",\r\n            \"value\": \"GValue1-C\",\r\n            \"audioTag\": \"\",\r\n            \"refId\": \"0c033a41-3988-52a5-bc1c-02a4a10863b3\"\r\n        },\r\n        {\r\n            \"key\": \"GKey1\",\r\n            \"value\": \"GValue1-C\",\r\n            \"audioTag\": \"\",\r\n            \"refId\": \"8e65ff0a-edac-5641-b27d-5614a4e94c0c\"\r\n        },\r\n        {\r\n            \"key\": \"GKey2\",\r\n            \"value\": \"Gkey2Stag\",\r\n            \"audioTag\": \"\",\r\n            \"refId\": \"0c033a41-3988-52a5-bc1c-02a4a10863b3\"\r\n        },\r\n        {\r\n            \"key\": \"GKey2\",\r\n            \"value\": \"Gkey2Diff\",\r\n            \"audioTag\": \"\",\r\n            \"refId\": \"8e65ff0a-edac-5641-b27d-5614a4e94c0c\"\r\n        },\r\n        {\r\n            \"key\": \"GKey55\",\r\n            \"value\": \"GKey55-Staging\",\r\n            \"audioTag\": \"\",\r\n            \"refId\": \"0c033a41-3988-52a5-bc1c-02a4a10863b3\"\r\n        },\r\n        {\r\n            \"key\": \"GKey55\",\r\n            \"value\": \"GKey55-Default\",\r\n            \"audioTag\": \"testaudioTag\",\r\n            \"refId\": \"8e65ff0a-edac-5641-b27d-5614a4e94c0c\"\r\n        }\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  \"message\": \"2\uac1c\uc758 \ubcc0\uc218\ub97c \uc131\uacf5\uc801\uc73c\ub85c \uac00\uc838\uc624\uae30\/\uc5c5\ub370\uc774\ud2b8\ud588\uc2b5\ub2c8\ub2e4.\"\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":"\uc804\uc5ed \ubc0f \ucf58\ud150\uce20 \ubcc0\uc218\ub97c \ubd07\uc73c\ub85c \uac00\uc838\uc635\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 \ubcc0\uc218 \uac00\uc838\uc624\uae30\uc758 \ubd07 \ube4c\ub354 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. POST https:\/\/{{host}}\/api\/{{version}}\/public\/builder\/bot\/{{BotID}}\/variables\/import \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 host \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) BotID \ubd07 ID\uc785\ub2c8\ub2e4. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc774\ub97c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 key \ubcc0\uc218\uc758 \uc774\ub984 value \ubcc0\uc218\uc5d0 \ub300\ud55c \uac12 hint \ubcc0\uc218...","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-41130","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\/41130","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=41130"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41130\/revisions"}],"predecessor-version":[{"id":41131,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41130\/revisions\/41131"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}