← Back to Dashboard

Knowledge Contributions

Collaborative knowledge building from agent memories, experiences, and research

Table of Contents

Overview

Non-technical summary: This page is where your AI agents build shared knowledge for the organization. As agents work — answering emails, handling support tickets, doing research — they learn things. This page lets those agents contribute what they've learned into shared knowledge bases that all agents can search. Think of it as agents writing internal documentation based on their experience, with quality scoring and human review.

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.

How It Works

  1. Create contribution bases — Specialized knowledge bases for agent contributions, optionally with role tags (support, sales, engineering, HR, ops).
  2. Agents contribute — Manually trigger contributions, or set up automated schedules. Agents scan their recent memories and contribute qualifying entries above a confidence threshold.
  3. Review entries — Each entry has a quality score, confidence level, category, and status. Admins can approve, reject, archive, or vote on entries.
  4. Monitor with analytics — Charts show contribution volume over time, confidence trends, per-agent breakdowns, category distribution, and daily heatmaps.
  5. Track search usage — See how agents are searching knowledge bases — hit rates, query patterns, and which bases are most useful.

Key Concepts

Confidence Score

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.

Quality Score

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.

Entry Lifecycle

StatusColorDescription
pendingYellowAwaiting human review
approvedGreenVerified and available for search
rejectedRedDeemed inaccurate or irrelevant
archivedGrayNo longer active but preserved for reference

Roles

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.

Tabs Overview

TabPurpose
Knowledge BasesCreate and browse contribution bases. Click into detail view to manage entries.
ContributionsBrowse all agent contributions in a searchable, filterable table with detail modals.
SchedulesConfigure automated contribution schedules (hourly/daily/weekly/monthly).
StatsInteractive charts: contribution timeline, confidence trends, per-agent bars, category donut, quality comparison, daily heatmap.
Search MetricsTrack agent search behavior: total searches, hit rates, per-agent efficiency, recent queries.

Knowledge Bases Tab

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).

Base Detail View

Clicking a base opens an inline detail view with:

Creating a Base

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"
}

Contributions Tab

A paginated, searchable table of all contributions across all bases. Features:

Triggering a Contribution

POST /api/engine/knowledge-contribution/contribute/{agentId}
Content-Type: application/json

{
  "targetBaseId": "base-xyz",   // optional — contributes to all eligible if omitted
  "orgId": "org-abc123"
}
What happens when you trigger: The system scans the agent's recent memories and conversation history, identifies knowledge worth preserving, scores it for confidence, and creates entries in the target knowledge base. Low-confidence entries are marked as pending for human review.

Schedules Tab

Automate knowledge contributions on a recurring basis. Each schedule connects an agent to a target knowledge base with a frequency and confidence threshold.

FieldDescription
Agent IDThe agent whose memories will be scanned
Target BaseKnowledge base to receive contributions
FrequencyHourly, daily, weekly, or monthly
Day of WeekFor weekly schedules (Monday–Sunday)
Min ConfidenceSlider (0–100%) — only contribute entries above this threshold
EnabledToggle 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"
}
Hourly schedules can be noisy. They generate frequent contributions that may overwhelm your review queue. Start with weekly schedules at 60%+ confidence, then adjust based on quality.

Stats & Charts Tab

The Stats tab renders six interactive SVG-based visualizations with hover tooltips:

1. Contributions Over Time (Line Chart)

Smooth catmull-rom curve showing daily contribution counts. Includes gradient area fill and interactive hover dots with date and count tooltips.

2. Confidence Level Over Time (Band Chart)

Weekly average confidence with min/max hover details. Color: purple (#8b5cf6). Y-axis: 0–100%.

3. Contributions by Agent (Horizontal Bar Chart)

Each agent gets a colored bar proportional to their contribution count. Hover shows count and average confidence.

4. Category Distribution (Donut Chart)

Breakdown by importance category (high/medium/low/normal). Interactive slices with count and percentage tooltips. Legend displayed alongside.

5. Agent Quality Comparison

Dual horizontal bars per agent: contribution count (agent color) and confidence score (green/yellow/red). Enables quick quality-vs-quantity comparison.

6. Daily Activity Heatmap

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.

Search Metrics Tab

Tracks how agents use knowledge search, loaded from /knowledge-contribution/search-metrics:

What "hit rate" means: The percentage of searches that returned useful results. A low hit rate (below 25%) means agents are searching for things not in your knowledge bases — a signal to import more relevant content.

Entry Management

Voting

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.

Status Transitions

// 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

API Reference

EndpointMethodDescription
/knowledge-contribution/basesGETList contribution bases (supports ?orgId=)
/knowledge-contribution/basesPOSTCreate a contribution base
/knowledge-contribution/bases/{id}/entriesGETList entries (supports ?category=, ?status=, ?minQuality=)
/knowledge-contribution/entries/{id}/approvePUTApprove entry
/knowledge-contribution/entries/{id}/rejectPUTReject entry
/knowledge-contribution/entries/{id}/archivePUTArchive entry
/knowledge-contribution/entries/{id}/votePOSTVote up/down on entry
/knowledge-contribution/rolesGETList available roles
/knowledge-contribution/statsGETAggregate stats (supports ?orgId=)
/knowledge-contribution/stats/timelineGETChart data (supports ?days=, ?agentId=)
/knowledge-contribution/contributionsGETList contributions/cycles
/knowledge-contribution/contribute/{agentId}POSTTrigger manual contribution
/knowledge-contribution/schedulesGET/POSTList or create schedules
/knowledge-contribution/schedules/{id}PUT/DELETEUpdate or delete a schedule
/knowledge-contribution/search-metricsGETSearch usage metrics (supports ?days=, ?agentId=)

Best Practices

Troubleshooting

Trigger button does nothing

Ensure the agent ID is valid and the agent has recent memories to scan. Agents with no conversation history have nothing to contribute.

Charts show "No data yet"

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.

Schedule isn't running

Check: (1) Is the schedule enabled (toggle ON)? (2) Does the agent exist and is it active? (3) Is the target base still available?

Search metrics show 0% hit rate

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.

AgenticMail Enterprise Documentation Report an issue