The Knowledge Base is the core of your AI Agent's expertise. These endpoints manage its settings and trigger retraining.
Det här innehållet är inte tillgängligt på ditt språk än.
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.
Get Settings
Section titled “Get Settings”Retrieve your Knowledge Base configuration.
Scope: read_allGET https://app.quickchat.ai/v1/api/knowledge_base/
curl https://app.quickchat.ai/v1/api/knowledge_base/ \ -H 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.get( url="https://app.quickchat.ai/v1/api/knowledge_base/", headers={"Authorization": "Bearer <API_TOKEN>"},)data = response.json()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}| Field | Description |
|---|---|
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" |
Update Settings
Section titled “Update Settings”PATCH https://app.quickchat.ai/v1/api/knowledge_base/
Request Body
| Parameter | Description |
|---|---|
one_word_description string | AI Agent name |
short_description string | System prompt / AI Agent description |
ai_commands array of strings | AI Guidelines |
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"}'import requests
response = requests.patch( url="https://app.quickchat.ai/v1/api/knowledge_base/", headers={"Authorization": "Bearer <API_TOKEN>"}, json={"one_word_description": "Sales Bot"},)data = response.json()Response 200 OK — Returns the updated Knowledge Base settings (same schema as Get Settings).
Retrain Knowledge Base
Section titled “Retrain Knowledge Base”Trigger an asynchronous retraining of the Knowledge Base.
Scope: write_allPOST https://app.quickchat.ai/v1/api/knowledge_base/retrain/
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/retrain/ \ -H 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.post( url="https://app.quickchat.ai/v1/api/knowledge_base/retrain/", headers={"Authorization": "Bearer <API_TOKEN>"},)Response 202 Accepted