What Nucleus is
Nucleus is Audity’s persistent memory layer. It remembers facts about your clients (memories), ingests text from outside sources like meeting transcripts (captures), and produces proactive observations from background jobs (insights). The agent API exposes the read and write surface of Nucleus so you can query and update it from Claude, Cursor, n8n, or any other agent, the same way Audity’s internal AI does inside the web app.What’s exposed to the agent
The full request and response shapes are in the API Reference.
What’s not exposed (and why)
- Nucleus chat (
/api/nucleus/chat). Exposing it would turn Audity into a chatbot middleman, your agent IS the chatbot. Use the underlying memory and capture endpoints directly. - Live co-pilot (
/api/nucleus/live). Real-time, requires a UI. - Backfill and admin operations. Internal-only.
- Slash commands. Internal Nucleus chat affordances.
Pattern: “What does Audity remember about this client?”
GET /api/nucleus/memories?type=clientfiltered toprojectIdfor AcmeGET /api/nucleus/memories?type=patternfor cross-client patterns- The agent synthesizes the join
confidence (0–1) and sourceType (explicit, extracted, detected). Tell the agent to cite both, detected patterns under 0.8 confidence are hypotheses, not facts.
Pattern: “Capture this for me”
After a client call, paste a transcript:POST /api/nucleus/capture/notewith the transcript text andprojectId. Returns immediately with the capture inpendingstatus.- The capture goes into the extraction pipeline (Inngest job, runs async). Action items, decisions, key insights, and contact mentions are extracted into structured items.
- After ~15–60 seconds:
GET /api/nucleus/captures/{id}returns{ capture, items }. The agent reads the items and summarizes.
processing after a minute, something failed, call POST /api/nucleus/captures/{id} to trigger a reprocess.
Pattern: “What insights are sitting in my queue?”
GET /api/nucleus/insights?unreadOnly=true returns the typed insight set.
In v1, four insight types are actively generated by background jobs:
overdue_followup, leads or clients you said you’d follow up with, where the date has passedpattern_detected, cross-client pattern Nucleus noticed in your portfoliosimilar_lead, a new lead matches a profile of a past projectstale_client, a client who’s been quiet long enough to risk going cold
pre_meeting, referral_opportunity, portfolio_insight, and content_suggestion as valid types. These are reserved in the schema but not yet produced by any background job. Don’t promise them to your customers as if they’re live; they aren’t.
Pattern: “Daily Nucleus brief”
A common n8n / scheduled workflow:list_insights, list_captures) is exposed.
Memory hygiene
Memories accumulate. Periodically have the agent prune:GET /api/nucleus/memories?type=pattern- The agent dedupes / contradicts client-side
- The agent proposes a deletion list, wait for approval
- After approval:
DELETE /api/nucleus/memories/{id}for each approved ID
DELETE /api/nucleus/memories/{id} is idempotent and soft (sets is_archived = true); the row stays on disk for audit purposes.
To edit a memory in place, use PATCH /api/nucleus/memories with the target ID in the body:
subject / content must be present. PATCH returns { success: true } on success. There’s no separate “version history”, the row is updated in place, so reserve PATCH for content corrections rather than running edit logs.
Confidence and sourceType
Every memory has:confidence(0.00–1.00), how trustworthy the memory issourceTypeexplicit, you (or your agent) asked Nucleus to remember itextracted, pulled from a conversation by the extraction pipelinedetected, AI-identified pattern
explicit memory is a fact. A low-confidence detected pattern is a hypothesis worth sanity-checking against fresh data.

