Update a knowledge base
knowledge_updateChanges a knowledge base's name, its description, the keywords that hand a DM to it, whether it answers only when one of those keywords matches, its fallback message, or whether it is switched on. Only the fields you pass are changed, and every one of them can be set back. Switching one on is the only part a plan can refuse: a plan allows so many live at once, and the refusal says how many and what to do about it. Switching one off is always allowed and loses none of its documents, so use that rather than asking for a knowledge base to be deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A new name for it. | |
| isActive | No | True to switch the knowledge base on so it answers DMs, false to switch it off. | |
| keywords | No | The words in a DM that should be answered from this knowledge base, up to twenty. | |
| description | No | A new description, or null to clear it. | |
| keywordsOnly | No | True to make this knowledge base answer only DMs that contain one of its keywords, and the conversation that follows. "Answer every DM" then never uses it, so its documents never reach anyone who did not type a keyword: right for material meant for a few people, such as a partner or wholesale FAQ. A campaign that names this knowledge base still answers from it. It needs at least one keyword, or it never answers. False to let "Answer every DM" use it again. | |
| wholeWordMatch | No | True to match those keywords only as whole words. | |
| fallbackMessage | No | What to reply when the documents do not answer the question, or null for none. | |
| knowledgeBaseId | Yes | The id of the knowledge base. |