Collaborative knowledge building from agent memories, experiences, and research
The Knowledge Contributions page (KnowledgeContributionsPage) is the most feature-rich page in the dashboard at 1,629 lines. It combines knowledge base management, agent contribution tracking, automated scheduling, rich analytics with interactive SVG charts, and search metrics into a five-tab interface. It represents the collaborative knowledge loop: agents learn → contribute → other agents search → better answers → more learning.
A 0–100% score indicating how certain the contributing agent is about the accuracy of the knowledge. Contributions below your minimum threshold (set per schedule) are flagged for review. High confidence (80%+) indicates well-verified knowledge; below 50% may be speculative.
An independent quality assessment of each entry, displayed as a colored progress bar. Green (80%+) = high quality, yellow (50–80%) = moderate, red (<50%) = needs improvement. Quality is determined by content completeness, clarity, and relevance.
| Status | Color | Description |
|---|---|---|
pending | Yellow | Awaiting human review |
approved | Green | Verified and available for search |
rejected | Red | Deemed inaccurate or irrelevant |
archived | Gray | No longer active but preserved for reference |
Knowledge bases can be tagged with roles (support, sales, engineering, HR, ops, general) to help organize and filter by department. Each role gets a distinct color badge.
| Tab | Purpose |
|---|---|
| Knowledge Bases | Create and browse contribution bases. Click into detail view to manage entries. |
| Contributions | Browse all agent contributions in a searchable, filterable table with detail modals. |
| Schedules | Configure automated contribution schedules (hourly/daily/weekly/monthly). |
| Stats | Interactive charts: contribution timeline, confidence trends, per-agent bars, category donut, quality comparison, daily heatmap. |
| Search Metrics | Track agent search behavior: total searches, hit rates, per-agent efficiency, recent queries. |
Displays knowledge bases as cards with name, role badge, description, entry count, contributor count, and last contribution date. Merges data from the contribution system's bases and the main knowledge bases (deduplicating by ID).
Clicking a base opens an inline detail view with:
POST /api/engine/knowledge-contribution/bases
Content-Type: application/json
{
"name": "Customer Support Knowledge",
"description": "Solutions, troubleshooting, and best practices from support agents",
"role": "support",
"orgId": "org-abc123"
}
A paginated, searchable table of all contributions across all bases. Features:
POST /api/engine/knowledge-contribution/contribute/{agentId}
Content-Type: application/json
{
"targetBaseId": "base-xyz", // optional — contributes to all eligible if omitted
"orgId": "org-abc123"
}
Automate knowledge contributions on a recurring basis. Each schedule connects an agent to a target knowledge base with a frequency and confidence threshold.
| Field | Description |
|---|---|
| Agent ID | The agent whose memories will be scanned |
| Target Base | Knowledge base to receive contributions |
| Frequency | Hourly, daily, weekly, or monthly |
| Day of Week | For weekly schedules (Monday–Sunday) |
| Min Confidence | Slider (0–100%) — only contribute entries above this threshold |
| Enabled | Toggle ON/OFF without deleting the schedule |
POST /api/engine/knowledge-contribution/schedules
Content-Type: application/json
{
"agentId": "agent-xyz",
"targetBaseId": "base-abc",
"frequency": "weekly",
"dayOfWeek": "monday",
"minConfidence": 0.7,
"orgId": "org-abc123"
}
The Stats tab renders six interactive SVG-based visualizations with hover tooltips:
Smooth catmull-rom curve showing daily contribution counts. Includes gradient area fill and interactive hover dots with date and count tooltips.
Weekly average confidence with min/max hover details. Color: purple (#8b5cf6). Y-axis: 0–100%.
Each agent gets a colored bar proportional to their contribution count. Hover shows count and average confidence.
Breakdown by importance category (high/medium/low/normal). Interactive slices with count and percentage tooltips. Legend displayed alongside.
Dual horizontal bars per agent: contribution count (agent color) and confidence score (green/yellow/red). Enables quick quality-vs-quantity comparison.
Grid table with agents as rows, days as columns. Cell intensity scales with contribution count. Each agent has a unique color from the CHART_COLORS palette.
All charts support time range filtering (7/14/30/60/90 days) and per-agent filtering.
Tracks how agents use knowledge search, loaded from /knowledge-contribution/search-metrics:
Entries support upvote/downvote via POST /knowledge-contribution/entries/{id}/vote with { "direction": "up" } or "down". Vote counts are displayed next to the arrow buttons.
// Approve an entry
PUT /api/engine/knowledge-contribution/entries/{id}/approve
// Reject an entry
PUT /api/engine/knowledge-contribution/entries/{id}/reject
// Archive an entry
PUT /api/engine/knowledge-contribution/entries/{id}/archive
| Endpoint | Method | Description |
|---|---|---|
/knowledge-contribution/bases | GET | List contribution bases (supports ?orgId=) |
/knowledge-contribution/bases | POST | Create a contribution base |
/knowledge-contribution/bases/{id}/entries | GET | List entries (supports ?category=, ?status=, ?minQuality=) |
/knowledge-contribution/entries/{id}/approve | PUT | Approve entry |
/knowledge-contribution/entries/{id}/reject | PUT | Reject entry |
/knowledge-contribution/entries/{id}/archive | PUT | Archive entry |
/knowledge-contribution/entries/{id}/vote | POST | Vote up/down on entry |
/knowledge-contribution/roles | GET | List available roles |
/knowledge-contribution/stats | GET | Aggregate stats (supports ?orgId=) |
/knowledge-contribution/stats/timeline | GET | Chart data (supports ?days=, ?agentId=) |
/knowledge-contribution/contributions | GET | List contributions/cycles |
/knowledge-contribution/contribute/{agentId} | POST | Trigger manual contribution |
/knowledge-contribution/schedules | GET/POST | List or create schedules |
/knowledge-contribution/schedules/{id} | PUT/DELETE | Update or delete a schedule |
/knowledge-contribution/search-metrics | GET | Search usage metrics (supports ?days=, ?agentId=) |
Ensure the agent ID is valid and the agent has recent memories to scan. Agents with no conversation history have nothing to contribute.
Charts require contribution data over time. If you just started, wait for contributions to accumulate. Also check the time range filter — try extending to 30 or 60 days.
Check: (1) Is the schedule enabled (toggle ON)? (2) Does the agent exist and is it active? (3) Is the target base still available?
Agents are searching but finding nothing useful. Review the "Recent Searches" table to see what queries are failing, then import relevant content into your knowledge bases.