Add knowledge source
add_knowledge_sourceAdds a website or a document to the facts the AI looks up while drafting reply suggestions: FAQs, prices, shipping and return policies, ingredients, product sheets. Not for tone, style or brand-voice guides, do's and don'ts, persona or wording rules: those only work as instructions (save_instruction), because the AI retrieves knowledge by topic and never reads a style guide while writing. A mixed document splits into facts here and rules as instructions. type "website": replient.ai crawls the pages listed in the sitemap (limited to the given path when the URL has one) in the background, usually within a few minutes; list_knowledge_sources reports progress. Links from those pages become links the AI may use in replies. Social networks, file-sharing sites and private or local addresses are rejected. An account can crawl about 10,000 page sections per week; at most 10 websites per hour. type "document": an FAQ, price list, policy or product sheet as text or Markdown (text), or a .pdf, .docx, .csv, .txt or .md file (contentBase64, up to 5 MB, at most 300,000 characters of text). PDFs without selectable text (scanned, or exported as images) are not supported; spreadsheets go in as .csv. The document is trained during the call and URLs inside it become links the AI may use (urlsInDocument); when the call fails, nothing is saved. At most 20 documents per hour. Over MCP, files travel as text (fileName ending in .md, or .csv for a table); other files are uploaded on the brand's Learning page (learningUrl from list_knowledge_sources).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brand": "<brand>",
"type": "<type>"
},
"name": "add_knowledge_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The website to learn from, e.g. "https://www.example.com" or a section like "https://www.example.com/help". | |
| text | No | Documents: plain text or Markdown, at most 300,000 characters. Either this or contentBase64. | |
| type | Yes | "website": crawl a website. "document": upload a file or text. | |
| brand | Yes | ||
| fileName | No | Documents: file name with extension, e.g. "shipping-faq.md". Supported: .txt, .md, .markdown, .csv, .pdf, .docx. | |
| contentBase64 | No | Documents: the file bytes, base64-encoded, at most 5 MB before encoding. Either this or text. |