{"id":41229,"date":"2022-04-21T07:04:51","date_gmt":"2022-04-21T06:04:51","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41229"},"modified":"2022-04-21T07:05:12","modified_gmt":"2022-04-21T06:05:12","slug":"get-faqs-kg","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/get-faqs-kg\/?lang=ko","title":{"rendered":"FAQ \ubc1b\uae30- 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 \uc791\uc5c5\uc5d0\uc11c \uc9c8\ubb38 \ubc0f \ub178\ub4dc \ubaa9\ub85d\uc744 \uac00\uc838\uc635\ub2c8\ub2e4.<\/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>GET<\/b> <code>https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs?ktId=&amp;limit=&amp;offset=&amp;parentId=&amp;withallchild=&amp;type=&amp;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=\"Query_Parameters\">Query Parameters<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required\/Optional<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<\/tr>\n<tr>\n<td>ktId<\/td>\n<td>Required<\/td>\n<td>Knowledge task id from where the FAQs are required to be listed.<\/p>\n<p><b>Note: <\/b>You can retrieve the ktId from the request of the\u00a0<strong>FAQs\u00a0<\/strong>API call. To know more, go to\u00a0<a href=\"https:\/\/community.kore.ai\/t\/using-getfaqs-api\/1724\/2\">Using GetFAQs API<\/a>. The ktId values are different for both in-development and published bots.<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>Optional<\/td>\n<td>Number of records to be fetched, if not provided set to 50.<\/p>\n<p><b>Note:<\/b>\u00a0The maximum limit that can be set is 50.<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>Optional<\/td>\n<td>Number of records to be skipped, if not provided set to 0<\/td>\n<\/tr>\n<tr>\n<td>parentId<\/td>\n<td>Required<\/td>\n<td>The Id of the nodes in the Knowledge tasks section.<\/p>\n<p><b>Note:<\/b> You can retrieve the parentId from the response of the <b>FAQs<\/b>\u00a0API call. To know more, go to\u00a0<a href=\"https:\/\/community.kore.ai\/t\/using-getfaqs-api\/1724\/2\">Using GetFAQs API<\/a>.<\/td>\n<\/tr>\n<tr>\n<td>withallchild<\/td>\n<td>Optional<\/td>\n<td>Whether child nodes need to be included<\/td>\n<\/tr>\n<tr>\n<td>type<\/td>\n<td>Optional<\/td>\n<td>Type of FAQs to be fetched.<\/td>\n<\/tr>\n<tr>\n<td>language<\/td>\n<td>Required<\/td>\n<td>The bot language, for example, \u201cen\u201d for English and \u201cde\u201d for German.<\/td>\n<\/tr>\n<tr>\n<td>search<\/td>\n<td>Optional<\/td>\n<td>Can be reference id or display name.<\/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\">\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-3\">\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=\"Sample_Request\">Sample Request<\/span><\/h3>\n<pre>curl -X GET \\\r\n  https:\/\/{{host}}\/api\/public\/bot\/{{bot_id}}\/faqs?ktId=5afxxxxxf&amp;limit=30&amp;offset=0&amp;parentId=xxxxx-xxx-xxx-xxx-xxxxx&amp;withallchild=true&amp;type=all&amp;language=en \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n  -H 'content-type: application\/json' \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=\"Sample_Response\">Sample Response<\/span><\/h3>\n<pre>{\r\n    \"faqs\": [\r\n        {\r\n            \"_id\": \"5e0ef00f41c79c0a7c3a729a\",\r\n            \"subAnswers\": [],\r\n            \"editLocked\": false,\r\n            \"isPublished\": true,\r\n            \"questionPayload\": {\r\n                \"question\": \"What is Bank Internet Banking?\",\r\n                \"tagsPayload\": []\r\n            },\r\n            \"answerPayload\": [\r\n                {\r\n                    \"_id\": \"mt-95deca18-9b2a-5c5e-970e-566ef678e270\",\r\n                    \"channel\": \"default\",\r\n                    \"streamId\": \"st-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n                    \"lModBy\": \"u-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n                    \"lMod\": \"Fri Jan 03 2020 13:11:03 GMT+0530 (India Standard Time)\",\r\n                    \"createdBy\": \"u-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n                    \"createdOn\": \"Fri Jan 03 2020 13:11:03 GMT+0530 (India Standard Time)\",\r\n                    \"text\": \"Bank Internet banking is a convenient way to bank anytime, anywhere even from the comfort of your home using your PC or Tab.\",\r\n                    \"type\": \"basic\"\r\n                }\r\n            ],\r\n            \"knowledgeTaskId\": \"5afa79639466e4369e3c809f\",\r\n            \"subQuestions\": [],\r\n            \"responseType\": \"message\",\r\n            \"referenceId\" :\"12xxx32\",\r\n            \"label\" :\"displayname\",\r\n            \"streamId\": \"st-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n            \"parent\": \"pa-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n            \"leafterm\": \"yes\",\r\n            \"language\": \"en\",\r\n            \"createdBy\": \"u-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n            \"lastModifiedBy\": \"u-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n            \"createdOn\": \"2020-01-03T07:41:03.017Z\",\r\n            \"modifiedOn\": \"2020-01-03T07:41:03.017Z\",\r\n            \"sortId\": 1578037263017,\r\n            \"botName\": \"BankingBot\",\r\n            \"refId\": \"re-xxxxx-xxx-xxx-xxx-xxxxx\",\r\n            \"__v\": 0\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":"\uc9c0\uc2dd \uc791\uc5c5\uc5d0\uc11c \uc9c8\ubb38 \ubc0f \ub178\ub4dc \ubaa9\ub85d\uc744 \uac00\uc838\uc635\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc5d0 KnowlegedGraph\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. GET https:\/\/{{host}}\/api\/public\/bot\/{{botId}}\/faqs?ktId=&amp;limit=&amp;offset=&amp;parentId=&amp;withallchild=&amp;type=&amp;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. Query Parameters Parameter Required\/Optional Description ktId Required Knowledge task id from where...","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-41229","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\/41229","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=41229"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41229\/revisions"}],"predecessor-version":[{"id":41230,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41229\/revisions\/41230"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}