{"id":29321,"date":"2021-08-25T06:44:55","date_gmt":"2021-08-25T05:44:55","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-1\/?p=29321"},"modified":"2021-08-25T06:45:16","modified_gmt":"2021-08-25T05:45:16","slug":"add-questions-from-extract-kg","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/api-guide\/add-questions-from-extract-kg\/?lang=ja","title":{"rendered":"\u62bd\u51fa\u3057\u305f\u3082\u306e\u304b\u3089\u8cea\u554f\u3092\u8ffd\u52a0\u3059\u308b &#8211; \u30ca\u30ec\u30c3\u30b8\u30b0\u30e9\u30d5"},"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>\u7279\u5b9a\u306e\u8cea\u554f\u3092\u30ca\u30ec\u30c3\u30b8\u30b0\u30e9\u30d5\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f [<em>\u30ca\u30ec\u30c3\u30b8\u30b0\u30e9\u30d5<\/em>] \u306e [\u7ba1\u7406\u8005API\u30b9\u30b3\u30fc\u30d7] \u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/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\">\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/td>\n<\/tr>\n<tr>\n<td>botId<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30dc\u30c3\u30c8ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/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\">\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>language<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30dc\u30c3\u30c8\u306e\u8a00\u8a9e\uff08\u4f8b\uff1a\u82f1\u8a9e\u306e\u300cen\u300d\u3001\u30c9\u30a4\u30c4\u8a9e\u306e\u300cde\u300d\uff09\u3067\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"i-3\">\u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>faqs<\/td>\n<td>\u4efb\u610f<\/td>\n<td>\u4ee5\u4e0b\u306e\u9805\u76ee\u3067\u914d\u5217\u3057\u307e\u3059\u3002<\/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>type<\/li>\n<li>\u30c1\u30e3\u30cd\u30eb<\/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\">\u8a8d\u8a3c<\/span><\/h3>\n<p>\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\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-5\">\u5fdc\u7b54\u306e\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-6\">\u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl -X POST \\ https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs\/bulk?language=en \\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -H &apos;content-type: application\/json&apos; \\ -d &apos;{ &quot;faqs&quot;: [ { &quot;questionPayload&quot;: { &quot;question&quot;: &quot;You will receive an SMS alert on your registered mobile number once the registration is done.&quot;}, &quot;answerPayload&quot;: [{ &quot;text&quot;: &quot;Will I get a confirmation of my registration?&quot;, &quot;type&quot;: &quot;basic&quot;, &quot;channel&quot;: &quot;default&quot; }], &quot;knowledgeTaskId&quot;: &quot;5afa79639466e4369e3c809f&quot;, &quot;subQuestions&quot;: [], &quot;responseType&quot;: &quot;message&quot;, &quot;subAnswers&quot;: [], &quot;streamId&quot;: &quot;st-0af60d2d-dab9-59a3-9380-b1923644b5e5&quot;, &quot;parent&quot;: &quot;be36bc3a-3055-417c-9d2d-0ab321fead9d&quot;, &quot;leafterm&quot;: &quot;tarak&quot;, &quot;qsId&quot;: &quot;qna-d2eff43d-e942-5d70-9218-ffdc840f9c41&quot; } ] }&apos;<\/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\">\u30b5\u30f3\u30d7\u30eb\u5fdc\u7b54<\/span><\/h3>\n<pre>{ &ldquo;status&rdquo;: &ldquo;success&rdquo;}<\/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":"\u7279\u5b9a\u306e\u8cea\u554f\u3092\u30ca\u30ec\u30c3\u30b8\u30b0\u30e9\u30d5\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f [\u30ca\u30ec\u30c3\u30b8\u30b0\u30e9\u30d5] \u306e [\u7ba1\u7406\u8005API\u30b9\u30b3\u30fc\u30d7] \u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002 POST https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs\/bulk?language=en \u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e \u30db\u30b9\u30c8 \u5fc5\u9808 \u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09 botId \u5fc5\u9808 \u30dc\u30c3\u30c8ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e language \u5fc5\u9808 \u30dc\u30c3\u30c8\u306e\u8a00\u8a9e\uff08\u4f8b\uff1a\u82f1\u8a9e\u306e\u300cen\u300d\u3001\u30c9\u30a4\u30c4\u8a9e\u306e\u300cde\u300d\uff09\u3067\u3059\u3002 \u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e faqs \u4efb\u610f \u4ee5\u4e0b\u306e\u9805\u76ee\u3067\u914d\u5217\u3057\u307e\u3059\u3002 questionPayload question answerPayload text type \u30c1\u30e3\u30cd\u30eb knowledgeTaskId subQuestions responseType subAnswers streamId parent leafterm qsId \u8a8d\u8a3c \u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} \u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/json...","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-29321","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/comments?post=29321"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29321\/revisions"}],"predecessor-version":[{"id":29322,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29321\/revisions\/29322"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=29321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=29321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=29321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}