@agent-crm/sdk
v0.5.1
Published
The headless CRM for Claude
Downloads
1,478
Readme
@agent-crm/sdk
Programmatic API for the Agent CRM .acrm workspace — the same operations the @agent-crm/cli acrm command runs, but as typed functions you can call in-process.
import { Workspace, importTranscript } from "@agent-crm/sdk";
const workspace = await Workspace.open("/path/to/file.acrm");
try {
const result = await importTranscript(workspace, {
source: "granola",
source_id: "meeting-123",
title: "Discovery — Acme",
participants: [{ email: "[email protected]" }],
});
console.log(result.transcript_record_id);
} finally {
await workspace.close();
}Workspace.create(path) creates a new .acrm file and initializes the built-in
schemas, objects, and attributes. Workspace.open(path) only opens an existing
workspace and will not create a missing file.
See the main README for an overview of the workspace model, the EAV schema, and the CLI on top of this SDK.
