Decide whether behavior belongs in knowledge-base prompts, a saved agent, or both.
Knowledge-base prompts and agents solve different problems. A KB prompt defines shared answering behavior for a knowledge base. An agent packages a repeatable job, model, tools, skills, delegates, and optional schedule on top of one knowledge base.
Give every chat on a KB the same voice, boundaries, or formatting
KB Persona + Instructions
Fully replace Quick or Deep answering behavior
A mode-specific full Custom Prompt
Save a repeatable goal with a fixed model and capabilities
Agent
Use connected apps, custom tools, MCP servers, skills, or delegation consistently
Agent
Run work through the API or on a schedule and inspect run history
Agent
Give several specialized agents one shared answering policy and corpus
KB prompts + agents
Start with Persona + Instructions on the knowledge base. Create an agent when you need repeatable execution, capabilities, versioned deploys, or run history.
Use KB prompts for rules that should follow the knowledge base everywhere:
Persona — who the assistant is and how it presents itself.
Instructions — shared rules, boundaries, citation style, and answer format.
Quick Custom Prompt — a complete replacement for Quick-mode answering behavior.
Main/Deep Custom Prompt — a complete replacement for Deep-mode answering behavior.
SQL and chart instructions — shared behavior for connected data.
A full Custom Prompt takes over for its mode and supersedes Persona and Instructions. Prefer Persona + Instructions unless you need complete white-label control, and put the whole answering contract inside a full Custom Prompt.
Knowledge base Shared Persona + Instructions Private documents and connected data ├── Support agent Goal: resolve customer questions ├── QA agent Goal: find documentation gaps └── Weekly brief Goal: summarize trends on a schedule
The KB supplies the shared corpus and answering contract. Each agent adds a focused goal and only the capabilities required for its job.
curl -X PATCH "$AUTOSAGE_URL/knowledge-bases/KB_ID" \ -H "Authorization: Bearer $AUTOSAGE_KEY" \ -H "Content-Type: application/json" \ -d '{ "persona": "You are Acme Support.", "instructions": "Answer from approved sources, cite them, and say when the KB does not contain the answer." }'
Then create a focused agent on that KB:
curl -X POST "$AUTOSAGE_URL/agents" \ -H "Authorization: Bearer $AUTOSAGE_KEY" \ -H "Content-Type: application/json" \ -d '{ "tenant_id": "TENANT_ID", "name": "Support specialist", "goal": "Resolve customer support questions.", "instructions": "Ask one clarifying question when account context is missing.", "model_id": "MODEL_ID", "selected_knowledge_base_id": "KB_ID" }'