{"id":39450,"date":"2022-04-01T09:41:44","date_gmt":"2022-04-01T08:41:44","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-3\/?p=39450"},"modified":"2022-04-01T09:41:47","modified_gmt":"2022-04-01T08:41:47","slug":"bot-variables-export-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/api-guide\/bot-variables-export-api\/?lang=ja","title":{"rendered":"Bot Variables Export 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>\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u5909\u6570\u3092\u30dc\u30c3\u30c8\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306b<em>\u5909\u6570\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/em>\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fcAPI\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><b>POST<\/b> <em><code>https:\/\/{{host}}\/api\/{{version}}\/public\/builder\/stream\/{{BotID}}\/variables\/export<\/code><\/em><\/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\">\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\u74b0\u5883URL\u3001\u4f8b\uff1a https:\/\/bots.kore.ai<\/td>\n<\/tr>\n<tr>\n<td>BotID<\/td>\n<td>\u30dc\u30c3\u30c8ID\u3002\u30dc\u30c3\u30c8\u306e\u300c\u4e00\u822c\u8a2d\u5b9a\u300d\u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/thead>\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>\u30d8\u30c3\u30c0\u30fc\u5185\u306eJWT\u3092\u542b\u3080API\u3092\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 <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-3\">\u5fdc\u7b54\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\u306e\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/1.1\/public\/builder\/stream\/{{BotId}}\/variables\/export \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\<\/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\u306e\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><\/h3>\n<pre>[\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    {\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]\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":"\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u5909\u6570\u3092\u30dc\u30c3\u30c8\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306b\u5909\u6570\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fcAPI\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002 POST https:\/\/{{host}}\/api\/{{version}}\/public\/builder\/stream\/{{BotID}}\/variables\/export \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e host \u74b0\u5883URL\u3001\u4f8b\uff1a https:\/\/bots.kore.ai BotID \u30dc\u30c3\u30c8ID\u3002\u30dc\u30c3\u30c8\u306e\u300c\u4e00\u822c\u8a2d\u5b9a\u300d\u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 \u8a8d\u8a3c \u30d8\u30c3\u30c0\u30fc\u5185\u306eJWT\u3092\u542b\u3080API\u3092\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} \u5fdc\u7b54\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/JSON \u30b5\u30f3\u30d7\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8 curl -X POST \\ https:\/\/{{host}}\/api\/1.1\/public\/builder\/stream\/{{BotId}}\/variables\/export \\ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\ \u30b5\u30f3\u30d7\u30eb\u306e\u30ec\u30b9\u30dd\u30f3\u30b9 [ { \"key\": \"Global\", \"value\": \"Globalkey-prePopulated\", \"hint\": \"\", \"variableType\": \"env\", \"scope\": \"prePopulated\" }, { \"key\": \"Lang\", \"variableType\": \"locale\", \"scope\": \"prePopulated\", \"localeData\": { \"en\": { \"value\":...","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-39450","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/39450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/comments?post=39450"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/39450\/revisions"}],"predecessor-version":[{"id":39451,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/39450\/revisions\/39451"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/media?parent=39450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/categories?post=39450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/tags?post=39450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}