{"id":41158,"date":"2022-04-21T02:27:17","date_gmt":"2022-04-21T01:27:17","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41158"},"modified":"2022-04-21T02:27:35","modified_gmt":"2022-04-21T01:27:35","slug":"add-questions-from-extract-kg","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/add-questions-from-extract-kg\/?lang=ko","title":{"rendered":"\ucd94\ucd9c\uc5d0\uc11c \uc9c8\ubb38 \ucd94\uac00 &#8211; KG"},"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>\uc9c0\uc2dd \uadf8\ub798\ud504\uc5d0 \ud2b9\uc815 \uc9c8\ubb38 \ucd94\uac00.<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 <em>KnowlegedGraph<\/em>\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><b>POST<\/b> <code>https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs\/bulk?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\">\uacbd\ub85c \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\ub9e4\uac1c \ubcc0\uc218<\/b><\/th>\n<th><b>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/b><\/th>\n<th><b>\uc124\uba85<\/b><\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/td>\n<\/tr>\n<tr>\n<td>botId<\/td>\n<td>\ud544\uc218<\/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\">\ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\ub9e4\uac1c \ubcc0\uc218<\/b><\/th>\n<th><b>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/b><\/th>\n<th><b>\uc124\uba85<\/b><\/th>\n<\/tr>\n<tr>\n<td>language<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ubd07 \uc5b8\uc5b4(\uc608: \uc601\uc5b4\ub294 &quot;en&quot;, \ub3c5\uc77c\uc5b4\ub294 &quot;de&quot;).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"i-3\">\ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\ub9e4\uac1c \ubcc0\uc218<\/b><\/th>\n<th><b>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/b><\/th>\n<th><b>\uc124\uba85<\/b><\/th>\n<\/tr>\n<tr>\n<td>faqs<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\n<p>\ub2e4\uc74c \ud56d\ubaa9\uc774 \uc788\ub294 \ubc30\uc5f4\uc785\ub2c8\ub2e4.<\/p>\n<ul>\n<li>questionPayload\n<ul>\n<li>question<\/li>\n<\/ul>\n<\/li>\n<li>answerPayload\n<ul>\n<li>text<\/li>\n<li>\uc720\ud615<\/li>\n<li>channel<\/li>\n<\/ul>\n<\/li>\n<li>knowledgeTaskId<\/li>\n<li>subQuestions<\/li>\n<li>responseType<\/li>\n<li>subAnswers<\/li>\n<li>streamId<\/li>\n<li>parent<\/li>\n<li>leafterm<\/li>\n<li>qsId<\/li>\n<\/ul>\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-4\">\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-5\">\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-6\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs\/bulk?language=en \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n  -H 'content-type: application\/json' \\\r\n  -d '{\r\n    \"faqs\": [\t\r\n     {\r\n      \"questionPayload\": {\r\n         \"question\": \"You will receive an SMS alert on your registered mobile number once the registration is done.\"     \r\n        },\r\n      \"answerPayload\": [{\r\n            \"text\": \"Will I get a confirmation of my registration?\",\r\n            \"type\": \"basic\",\r\n            \"channel\": \"default\"\r\n         }],\r\n        \"knowledgeTaskId\": \"5afa79639466e4369e3c809f\",\r\n        \"subQuestions\": [],\r\n        \"responseType\": \"message\",\r\n        \"subAnswers\": [],\r\n        \"streamId\": \"st-0af60d2d-dab9-59a3-9380-b1923644b5e5\",\r\n        \"parent\": \"be36bc3a-3055-417c-9d2d-0ab321fead9d\",\r\n        \"leafterm\": \"tarak\",\r\n        \"qsId\": \"qna-d2eff43d-e942-5d70-9218-ffdc840f9c41\"\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      \u201cstatus\u201d: \u201csuccess\u201d} \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":"\uc9c0\uc2dd \uadf8\ub798\ud504\uc5d0 \ud2b9\uc815 \uc9c8\ubb38 \ucd94\uac00. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 KnowlegedGraph\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. POST https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs\/bulk?language=en \uacbd\ub85c \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d \uc124\uba85 host \ud544\uc218 \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) botId \ud544\uc218 \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. \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d \uc124\uba85 language \ud544\uc218 \ubd07 \uc5b8\uc5b4(\uc608: \uc601\uc5b4\ub294 &quot;en&quot;,...","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41158","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\/41158","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=41158"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41158\/revisions"}],"predecessor-version":[{"id":41159,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41158\/revisions\/41159"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}