← Receivers

crm:starters

crm family

The hottest sales-stage tag combos in a workspace, as ready-to-send conversation openers — SAMPLED from a 200-key scan, and it says when it sampled

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_lifecycle
The class of authority the caller must already hold, decided from the attested context with no round trip.
Authority action
manage_lifecycle
Also gated per node — the caller must be permitted this action over the workspace it names.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/crm:starters \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "limit": 5 }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string optional Workspace slug; defaults to the attested caller's.
  • limit number optional Openers to return, 1-20, default 5. Values above 20 are clamped, not refused.

Response

What comes back from the call.

  • ok boolean
  • starters object[]
  • scanned number Cached combos actually read for this answer. It may be BELOW scanLimit on a truncated read — KV can return a short page with more to come, so this is not the completeness signal.
  • scanLimit number The scan ceiling — 200
  • truncated boolean true = the KV listing was NOT complete, so these are the hottest of a SAMPLE and not of the workspace. Read from the store's own list_complete, never from scanned vs scanLimit. Always present on success, false included — never infer completeness from a missing key.
  • workspace string
  • error string no_db | workspace required | forbidden

Traffic

Every call to crm:starters, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names crm:starters, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 3
  • one.ie/web/src/lib/combo-read.ts:9
  • one.ie/web/src/lib/receiver-index.generated.ts:97
  • one.ie/web/src/pages/api/crm/starters.ts:6

Answered by

crm:starters one.ie/web/src/lib/resolvers/crm.ts:56 Dispatched through POST /api/ask/crm:starters, after the envelope validates the payload.

crm family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Workspace slug; defaults to the attested caller's.",
      "type": "string"
    },
    "limit": {
      "description": "Openers to return, 1-20, default 5. Values above 20 are clamped, not refused.",
      "type": "number"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "starters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "strength": {
            "type": "number"
          },
          "lifecycles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suggestedOpener": {
            "type": "string",
            "description": "The opener text, written from the stage — send it or rewrite it"
          },
          "workflows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "name",
                "tags"
              ]
            }
          },
          "recentThreads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "lastMsgAt": {
                  "type": "number"
                }
              },
              "required": [
                "id",
                "lastMsgAt"
              ]
            }
          }
        },
        "required": [
          "tags",
          "strength",
          "lifecycles",
          "suggestedOpener",
          "workflows",
          "recentThreads"
        ]
      }
    },
    "scanned": {
      "description": "Cached combos actually read for this answer. It may be BELOW scanLimit on a truncated read — KV can return a short page with more to come, so this is not the completeness signal.",
      "type": "number"
    },
    "scanLimit": {
      "description": "The scan ceiling — 200",
      "type": "number"
    },
    "truncated": {
      "description": "true = the KV listing was NOT complete, so these are the hottest of a SAMPLE and not of the workspace. Read from the store's own list_complete, never from scanned vs scanLimit. Always present on success, false included — never infer completeness from a missing key.",
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "error": {
      "description": "no_db | workspace required | forbidden",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}