Zum Inhalt springen

The Knowledge Base is the core of your AI Agent's expertise. These endpoints manage its settings and trigger retraining.

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

The Knowledge Base is the core of your AI Agent’s expertise — it contains all the information your AI uses to answer questions. These endpoints let you manage the Knowledge Base configuration and trigger retraining after content changes.

The Knowledge Base draws from Articles you create, import from websites, or upload as files. After making changes to articles, you need to retrain the Knowledge Base for updates to take effect in conversations.

Retrieve your Knowledge Base configuration.

Scope: read_all

GET https://app.quickchat.ai/v1/api/knowledge_base/

Terminal window
curl https://app.quickchat.ai/v1/api/knowledge_base/ \
-H 'Authorization: Bearer <API_TOKEN>'

Response 200 OK

{
"one_word_description": "Support Agent",
"short_description": "A helpful customer support assistant.",
"ai_commands": ["Be polite", "Stay on topic"],
"retrain_state": null
}
FieldDescription
one_word_description
string
AI Agent name. Dashboard: Identity > Profile > AI Agent Name
short_description
string
System prompt / AI Agent description. Dashboard: Identity > Profile > AI Agent Description
ai_commands
array of strings
Behavioral guidelines. Dashboard: Identity > Conversation Style > AI Guidelines
retrain_state
string or null
Current training status: null (up to date or never trained), "to_be_retrained", "in_progress", "up_to_date", or "failed"
Scope: write_all

PATCH https://app.quickchat.ai/v1/api/knowledge_base/

Request Body

ParameterDescription
one_word_description
string
AI Agent name
short_description
string
System prompt / AI Agent description
ai_commands
array of strings
AI Guidelines
Terminal window
curl -X PATCH https://app.quickchat.ai/v1/api/knowledge_base/ \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"one_word_description": "Sales Bot"
}'

Response 200 OK — Returns the updated Knowledge Base settings (same schema as Get Settings).

Trigger an asynchronous retraining of the Knowledge Base.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/retrain/

Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/retrain/ \
-H 'Authorization: Bearer <API_TOKEN>'

Response 202 Accepted