Include this HTTP header for each API request:
Authorization: Bearer ${ACCESS_TOKEN}
Creates a new article.
Property | Type | Description |
---|---|---|
id |
String | Article id in KnowledgeBase API. Required. |
title |
String | Article title. Required. |
text |
String | Article plaintext. Required. |
topic |
Array.<String> | Array of topics which are used to recognize the article. Default: [] |
tags |
Array.<String> | Array of tags which are used to recognize the article. Default: [] |
questions |
Array.<String> | Trained questions for model. Default: [] |
visibility |
String | Visibility of the article. Default: public |
url |
String | Article URL. Default: "" |
{
id: "",
title: "Title"
text: "Plaintext",
topic: ["Topic name"],
tags: ["tag1", "tag2", "tag3"],
visibility: "public / internal / draft",
url: "article public URL"
}
{
title: "Article title"
text: "Article text content",
topic: ["Topic name"],
tags: ["tag1", "tag2", "tag3"],
visibility: "public / internal / draft",
url: "article public URL"
}
Train specific article.
Property | Type | Description |
---|---|---|
questions |
Array.<String> | Array of questions which are used to recognize the article. Required. |
Property | Type | Description |
---|---|---|
questions |
Array.<String> | Array of questions which are used to recognize the article. Required. |
{
query: [
"Do you support custom domains",
"What kind of pricing do you have",
"Im interested in your product",
"Hi"
]
}
[
{
id: "",
question: "Do you support custom domains?",
title: "Setting up custom domain",
description: "", // first 120 characters
url: "https://help.knowledgebase.ai/general/setting-up-custom-domain"
},
...
]