First Agent · Connect a Knowledge Base
Build a customer-service Agent in 10 minutes that answers based on your enterprise documents
Upgrade the generic customer-service Agent into a real assistant that answers your company's questions. About 10 minutes.
What You'll Accomplish
- Create a knowledge base and upload 1–3 PDF/Markdown documents
- Create an Agent and bind the knowledge base
- Configure the prompt so the Agent admits "I don't know" when it doesn't know
- Verify on the Workbench
Prerequisites
- You've completed the SaaS 5-minute walkthrough or Minimal private deployment
- 1–3 enterprise documents ready (product manual / FAQ / policy)
Steps
1 · Create a knowledge base (2 minutes)
- Workspace → Data · Knowledge base → New
- Name it:
Product FAQ - Choose an Embedding model (default is fine)
- Click create
2 · Upload documents (2 minutes)
- Open the new knowledge base → Upload documents
- Drag in PDF / Markdown / Word / Txt — the system will:
- Parse → automatically chunk (default 1000 tokens / chunk, 200-token overlap)
- Vectorize and write to pgvector
- Wait for status to become Ready (usually within 30 seconds; large files may take 1–2 minutes)
3 · Create the Agent (3 minutes)
-
Workspace → Apps · Agent → New → Blank Agent
-
Name it:
Product Support Pro -
Role prompt:
-
Bind knowledge base: check
Product FAQ -
Base model: pick what you consider the strongest LLM (commonly Claude / GPT-4 class)
-
Temperature: 0.2 (customer service needs stability)
-
Click Save
4 · Debug (2 minutes)
In the Agent edit page's built-in Debug panel:
If answers are off:
| Symptom | Adjust |
|---|---|
| Off-topic answers | Increase TopK (default 5, try 8–10) |
| Over-divergent answers | Lower LLM temperature to 0.1 |
| Info exists in KB but answer omits it | Check Trace — is it retrieval failure or generation drop? Consider smaller chunks |
| Fabricated answers | Strengthen prompt: "If something is not explicitly in the knowledge base, say you're not sure" |
5 · Publish and verify (1 minute)
- Top right of the editor → Publish to Workbench
- Set visibility (default: just you; can add members or roles)
- Switch to Workbench · Task, ask the same question in "Product Support Pro" to verify
Use Traces to Understand What the Agent Does
Workspace → Workspace management · Observability · Traces — find the conversation. You'll see:
Every step is visible — debugging gets very efficient.
Next Steps
- Add tools → Agent + Tools · MCP Tools
- Multi-step flows → First Workflow
- Share with the team → Resource policy ACL