Create knowledge base document
Upload a file or webpage URL to create a knowledge base document.
After creating the document, update the agent’s knowledge base by calling Update agent.
Headers
xi-api-key
Request
This endpoint expects a multipart form containing an optional file.
name
A custom, human-readable name for the document.
url
URL to a page of documentation that the agent will have access to in order to interact with users.
file
Documentation that the agent will have access to in order to interact with users.
Response
Successful Response
id
prompt_injectable
Errors
422
Conversational AI Add to Knowledge Base Request Unprocessable Entity Error