For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Agentic Control Center

Run AI agents for insurance from one interface, all acting on a shared context layer, with human controls for approval and auditing.

Use cases: Gen AI, Single View

Industries: Insurance

Products: MongoDB Atlas, MongoDB Node.js Driver, MongoDB Search

Fragmented data and application context-switching waste time and create unnecessary cognitive strain for insurance teams.

Agentic AI transforms these workflows, but adoption requires clear audit trails showing what was decided and why. The Agentic Control Center unifies every agent and business record in one interface, giving you the tools to audit activity and manually edit data.

MongoDB Atlas stores both the context layer and application data. The Agentic Control Center logs chat histories and manual edits in a single collection. Because JSON is human-readable, summary generation is straightforward. Centralizing agent and business data helps you process claims quickly without sacrificing human judgment. To review a session, you can generate summaries from stored data or view raw logs in the audit view.

From Fragmentation to One Control Center

Figure 1. From Fragmentation to One Control Center

The solution consists of the following components:

  • MongoDB Atlas: Stores multi-schema log entries, application data, and the context layer in a single collection.

  • Next.js: Builds the interface and uses Server Actions and server-side API routes to prevent exposing agent credentials to the client.

  • LLM provider: Aggregates relevant logs and sends them to an LLM to generate structured session recaps for external stakeholders.

  • Agent platform: Runs agents and exposes them through APIs for application calls.

  • Key vault: Not implemented in this demo. In production, this component manages keys for field-level-encryption of stored agent credentials.

The client doesn't store agent credentials. Instead, the server routes the message, resolves credentials, and forwards the request to the agent platform. The response streams to the Next.js backend, which relays it to the client interface.

The app includes key features for regulated teams:

  • Server-side execution: The platform executes workflows, not the browser.

  • Human-in-the-loop controls: Certain actions require human review and approval. The agent stops execution, and the task run remains recoverable until you approve or reject it.

You can work with business object data in two ways:

  • Chat panel: Perform complex tasks using natural language.

  • Dashboard: Manually edit data for straightforward tasks and corrections.

Agents use dedicated tools to access the same collections that the dashboard reads. The app logs both agent-assisted and manual changes so you can review them.

Every actor writes to a single shared log. Agent conversations, human approval actions, and manual record edits save to one collection. The app uses MongoDB's flexible document model to store logs with varied structures.

This single source of truth supports two types of reports:

  • Audit report: Displays raw agent logs without involving an external model. Use this to review the steps a specific agent took.

  • Summary: Sends all log types, including agent actions and manual changes, to an LLM to generate a short, structured, exportable document. Use this to share key session updates with external stakeholders and non-technical readers.

The control center unifies these features in one interface to streamline daily operations and ensure complete auditability.

Reference architecture of the Agentic Control Center

Figure 2. Reference architecture of the Agentic Control Center

A single collection stores three types of events: agent turns, human approvals, and manual record edits. Because MongoDB uses a flexible document model, each log document contains only the fields required for its event type, keeping log entries simple and lightweight.

{
"_id": { "$oid": "6a76077e73179f98864eafc3" },
"timestamp": { "$date": "2026-08-07T16:27:42.776Z" },
"agentId": "property-and-casualty",
"sessionId": "454351fb-f8aa-44b0-a5d1-add3a70385f5",
"userId": "bea53e1a-3360-4dcc-957d-fa94cbfde37c",
"text": "## Active Policies\n\nI found **4 active policies** in the system:\n\n1. **PAP-IL-2024-0093821** ...",
"query": "Show me all active policies.",
"result": {
"failed": false,
"reason": null
},
"agent_steps": [
{
"text": "Thinking...",
"at": { "$date": "2026-08-07T16:27:32.821Z" }
},
{
"text": "Calling tool: list_policies_by_status...",
"at": { "$date": "2026-08-07T16:27:34.163Z" }
},
{
"text": "Thinking...",
"at": { "$date": "2026-08-07T16:27:34.843Z" }
}
]
}

Visit the Insurance Agentic Webapp GitHub Repository and follow the repository README for complete instructions.

1

Clone the repository and run npm install.

2

Copy EXAMPLE.env to create your own .env file, then provide the following credentials:

  • The MongoDB connection string.

  • Database names for the app data and business object data.

  • Agent credentials (API key, project ID, workspace ID, and a custom agent ID).

  • LLM provider credentials (endpoint, model name, and API key).

3

Seed the business collections by running npm run seed:members, npm run seed:plans, npm run seed:claims, and npm run seed:providers. Each script exits without writing if its target collection already contains documents.

4

Run npm run dev and open http://localhost:8080, or run make build to launch the app in Docker.

5

In the chat panel, test a predefined prompt or ask an agent about a member, plan, or claim. To switch agents, select an option from the bottom dropdown menu or press Shift + Tab. Both conversations appear in a single feed.

6

Approve or deny suspended actions when prompted for review. Click the notification button to navigate to the pending action. The notification remains visible until you resolve or dismiss it.

7

Open Business Record, update a member's details, and provide a reason for the change. The app saves the edit, reason, and field diff to the logs collection.

8

Open the Decisions tab to review recorded decision traces.

9

Open Summaries to generate an agent summary, session overview, or audit report, then export the result as a PDF.

10

To add an agent at runtime, open Settings. Credentials added in this view persist in memory and reset when the server restarts. Secure persistent storage is required for production deployments.

Screenshot of the application

Figure 3. Screenshot of the application

  • Log all activity in a single collection: Agent turns, human approvals, and manual edits save to one logs collection. A single query returns the complete timeline, so you never need to join multiple data sources.

  • Record reasons alongside changes: Requiring a reason for manual edits turns field updates into complete audit records, storing explanations alongside before and after values for compliance reviews.

  • Maintain human oversight for critical actions: Agents pause before executing high-stakes tasks and resume only after you approve them. The decision logs to the same collection as agent actions, preserving accountability across handoffs.

  • Share a unified context layer: Agents read from and write to a shared context layer instead of isolated copies. MongoDB stores multiple memory types, including episodic, short-term, and procedural, allowing agents to build on established history.

  • Oskar Kloczko, MongoDB

  • Albert Cortez, MongoDB

  • Daniel Jamir, MongoDB