Introducing Dench MCP
OrgX logo

Integrate OrgX with your AI CRM

OrgX provides an operating system for coordinating organizational work, decisions, initiatives, handoffs, artifacts, and agent activity.

Explore Triggers and Actions

Activate an Operating Process

Activate a confirmed process so new work can flow through it.

ActionTry it

Apply Lifecycle Action

Apply one lifecycle action to an initiative, workstream, milestone, task, or run you own. Pause and cancel cascade to affected active runs; cancellation is irreversible. Retry may redispatch failed work. Each action is validated against current state, so repeating an already-applied action is safe. Use ORGX_CONTROL_RUN when run-level pause, resume, cancel, or rollback needs a run-specific reason or checkpoint.

ActionTry it

Ask a Human to Look at a Decision

Raise or refresh attention on a pending decision and receive a poll handle. Use it when work is blocked and a person needs to rule: carry the option you would pick, why, and what it costs to wait. This operation writes the attention request and leaves the ruling itself to a signed-in human at `resolve_url`. The workspace, initiative, and run the decision belongs to are read from the decision row, so the request body carries none of them; an unrecognised field is rejected rather than ignored. Repeating the call refreshes one attention record — the original `attention_id` and `requested_at` are kept and `request_count` advances — so a retry after a timeout is safe.

ActionTry it

Cancel Handoff

Cancel a handoff that no longer needs action. Cancellation is a terminal, irreversible transition; the handoff cannot later be claimed or fulfilled.

ActionTry it

Cancel Launch

The kill switch. In one call it releases the spend reservation, cancels the launch's queued and running jobs and runs, and restores the initiative status this launch promoted — and reports each count separately so you can see what actually stopped. Until the reservation is released, the estimate keeps counting against your daily cap for the rest of the UTC day, whether or not the work ran. Jobs already finished are left alone. Cancelling a launch that was already cancelled returns `409`.

ActionTry it

Capture Artifact Revision

Capture supplied content bytes for the current owned artifact revision. Send the `artifact_revision_witness_profile` from ORGX_GET_API_REQUEST_SCHEMAS, the expected artifact version, and a stable `idempotency_key`. The service computes the digest and preserves exact retry identity.

ActionTry it

Claim Dedup Fingerprint

Claim a durable fingerprint for an event so local and cloud triggers reacting to the same signal fire once. The fingerprint derives from `source`, `event_key`, and the optional `initiative_id`; the first claimant wins until the claim expires or is released. The store fails closed — when it is unavailable the endpoint returns `503` rather than letting both triggers proceed.

ActionTry it

Claim Handoff

Assign a queued handoff to the current actor.

ActionTry it

Complete Work

Mark a work item done using its current version token or legacy timestamp and aggregate-version pair, and record completion evidence and a receipt. Completion is terminal for the item.

ActionTry it

Confirm an Operating Process

Confirm that a proposed process represents how the workspace intends to operate.

ActionTry it

Control Run

Apply one control action to an agent run: `pause`, `resume`, `retry`, `cancel`, or `rollback` (rollback takes a `checkpoint_id`). Cancellation is irreversible, retry may redispatch failed work, and rollback replaces later run state with the selected checkpoint. State checks make repeating an already-applied action safe.

ActionTry it

Create a Legacy Scaffold Batch

Machine-only staged contract for initiative/workstream/milestone/task nodes in one admitted workspace. Every child names its full hierarchy through explicit IDs or batch refs; implicit backlog generation is excluded before writes. Goal/objective references must be arrays. Rich node fields pass through the existing entity handler. The 4 MiB JSON body limit is enforced before execution. Results may be partial; do not replay a failed or uncertain write or fall back to another create endpoint. Existing entity guards, per-node credential admission and gateway token expiration still apply. Dedicated scaffold launch/mirror follow-ups remain at the existing client edge. Existing entity-write side effects are retained; this route does not grant action authority. Generic entity types, session credentials and parent context types outside the supported hierarchy/project/objective/goal set require the existing client path until a separately verified migration.

ActionTry it

Create an Initiative

Create an initiative in one of three forms, discriminated by body shape: - **Commit a proposal**: send `proposal_id` + `proposal_digest` (from ORGX_PROPOSE_INITIATIVE_SCAFFOLD) to instantiate the exact reviewed plan. Proposals are single-use and expire after 7 days. - **Inline plan**: send a full `plan` hierarchy plus its `plan_digest` (sha256 over the canonical JSON of `plan`); the server recomputes the digest and refuses drift with 409. - **Title only**: send `{title, summary?}` for the starter 3-row hierarchy (initiative, first workstream, backlog milestone). Plan commits write the whole tree — workstreams, milestones, tasks, dependency edges, receipt, and ledger event — in one transaction; a failed commit persists nothing. Creation is inert: agents dispatch only through an explicit launch. Safe to retry with the same Idempotency-Key.

ActionTry it

Create Artifact

Register a produced piece of work against the entity it belongs to. One of `artifact_url` or `external_url` is required. The target entity determines the workspace. Statuses that assert a human ruling (`approved`, `rejected`) are refused on this path; an automated reviewer records `eval_passed` instead. Reuse the same `Idempotency-Key` and request body to safely retry a timed-out create; reusing a key with a different body returns a conflict. Optional `expected_scope` pins workspace and target `updated_at` in a service-only database transaction. This requires a work target (not a decision) and draft or in-review status. A stale target conflicts; no direct insert is used if admission fails. It cannot be combined with content_snapshot in one request. Requests are bounded to 1 MiB of UTF-8 JSON. content_snapshot captures at most 512 KiB of supplied bytes in an immutable revision. The core computes the content digest; artifact_url remains the source locator.

ActionTry it

Create Handoff

Create a responsibility transfer between two stages of work.

ActionTry it

Create Launch

Irreversibly turn a previewed committed plan into running work and spend provider budget. Call ORGX_PREVIEW_LAUNCH first, then pass its digest and an explicit cost ceiling. OrgX refuses a stale, unpriceable, or over-ceiling plan whole rather than trimming it. Scoped IDs are checked before dispatch, and the autonomy ceiling can only lower policy. A successful execute asynchronously dispatches targets and writes spend reservations; targets fail independently. Poll the launch for jobs, runs, receipts, and spend to date. Rate limited to 6 launches per hour per credential.

ActionTry it

Create Work

Create a workspace work item, either in the default Inbox or under an explicitly supplied initiative, workstream, and milestone hierarchy.

ActionTry it

Diagnose a Workload

Score a workload across time, agents, systems, authority, and accountability.

ActionTry it

Discover Processes

Start and persist a discovery run over connected company signals. Return the recorded run and its process candidates with source evidence.

ActionTry it

Escalate Handoff

Escalate a handoff when it needs another owner or a faster response.

ActionTry it

Fulfill Handoff

Fulfill a claimed handoff and permanently record its result evidence. Fulfillment is a terminal, irreversible transition.

ActionTry it

Generate an Initiative Plan Proposal

Run the planning pipeline synchronously over your title, prompt, and optional explicit workstreams, and persist an immutable, digest-addressed proposal — agent assignments with confidence and rationale, milestone/task expansion, effort and budget estimates, and the generation receipt. No workstream, milestone, or task rows are written: review the proposal, then commit it with ORGX_SCAFFOLD_INITIATIVE using `proposal_id` + `proposal_digest`. Retrying with the same Idempotency-Key returns the original stored proposal without re-running generation. Rate limited to 6 requests per minute with one concurrent generation per workspace.

ActionTry it

Get a Discovery Run

Get one discovery result with its process candidates and evidence limits.

ActionTry it

Get an Initiative

Poll half of the scaffold loop. `include=tree` returns workstreams, milestones, and tasks with dependency edges, agent assignments, and estimates, assembled from one batched query set. `include=launches` lists launch summaries when they are available; otherwise it returns an empty list with an explanatory note in `meta.notes`. Initiative ids are UUIDs; resolve names or prefixes through search.

ActionTry it

Get an Initiative Plan Proposal

Retrieve a proposal for review or diff. The returned `proposal_digest` is exactly the value a commit must echo. Status is one of proposed, instantiated (with `instantiated_initiative_id`), or expired.

ActionTry it

Get an Operating Process

Get one process with its current revision, lifecycle state, and evidence references.

ActionTry it

Get API Enums

The closed value sets the API enforces, read from the same constants the handlers validate against. A value absent here is a value the runtime rejects. Includes decision urgency and shape, lifecycle level and action, the accepted ledger event types for the event-stream filter, and the rate classes budgets are drawn from. Account-free.

ActionTry it

Get API Request Schemas

JSON Schema for the request bodies the API enforces, generated from the same validators the handlers parse with, so the published shape matches the enforced shape. Covers the operations whose inner shapes are otherwise reachable only by trial and error: decisions, operating-process proposals, the handoff return, escalate, and cancel bodies, lifecycle commands, discovery promotion, and receipt import. Account-free.

ActionTry it

Get Artifact

Return one artifact's metadata, entity relationships, and current revision. Optionally require an expected version to detect a concurrent revision change.

ActionTry it

Get Artifact Revision Content

Read captured bytes for a specific owned artifact revision. The response is a private attachment with the captured media type and a content-digest ETag. Unsupported retained profiles return 409 with an incomplete projection.

ActionTry it

Get Controller Status

Returns the workspace-scoped shadow controller projection, including its latest run, signal, result, and audit linkage when available.

ActionTry it

Get Decision

Return one decision by ID, including its current status, open context and options, blocking scope, attention request, and recorded outcome when available.

ActionTry it

Get Handoff

Get one handoff and its current lifecycle state.

ActionTry it

Get Identity

Return the connected API key's principal, accessible workspaces, default workspace ID, and rate limits. Use this first to resolve workspace_id for other actions.

ActionTry it

Get Launch

The state of one launch: which targets dispatched, the runs they produced, the reservation receipts backing them, spend reserved and settled so far, and any decision currently blocking the initiative. A launch ID outside your workspace is reported exactly like an ID that was never issued.

ActionTry it

Get Metered Usage

Get immutable usage records and their current billing eligibility.

ActionTry it

Get Operating Map

Return a workspace's derived operating-process map for at most 50 process aggregates by default (maximum 200). Inspect data.limitations and meta.truncated before treating the projection as complete. sourceCursor is replay provenance, not a continuation token, and truncated data cannot be retrieved by paging this operation.

ActionTry it

Get Process Adoption

Get behavioral and self-reported adoption measures for one process.

ActionTry it

Get Process Value

Get the evidence and outcomes attributed to one process.

ActionTry it

Get Receipt Validation Metadata

Get the supported receipt schema, limits, and a runnable example.

ActionTry it

Get the Work Ledger

Get work, evidence, and receipt totals for a time range. ### Boundaries When `mode` is `scanned`, the API calculates results from the available ledger rows and the counts are a lower bound.

ActionTry it

Get Work

Return one work item and its current opaque concurrency token, which is required to complete it safely.

ActionTry it

Get Workload Diagnosis Metadata

Get the workload diagnosis request schema and a runnable example.

ActionTry it

Import a Receipt

Validate and store a portable Agent Work Receipt in the selected workspace.

ActionTry it

List API Error Codes

Every error code the API emits, with the status it carries, whether repeating the request can succeed, what happened, and what to do about it. This is the registry behind the `docsUrl` on every error body. It is account-free and served from a compiled constant, so it stays available while the dependency that caused your error is still failing. Pass `?code=` to resolve a single entry.

ActionTry it

List Artifact Types

List the artifact types ORGX_CREATE_ARTIFACT accepts. Use a `type_code` from this list as `artifact_type` when you register produced work. ### One global vocabulary The catalog is the same for every caller and takes no workspace parameter. Entries are seeded by migration, so this surface is read-only. `is_deliverable` is false for the types that describe run health rather than a produced deliverable. ### Freshness Responses are cacheable for five minutes. `meta.stale` is true when the catalog was served from the last successful load because a refresh failed.

ActionTry it

List Artifacts

Return a bounded list of artifacts. Provide workspace_id for workspace-wide listing with optional entity, review-status, and update-time filters. Omit workspace_id and provide entity_type plus entity_id to use the entity route, which also supports kind. Use workspace_limit or entity_limit for the selected route.

ActionTry it

List Decisions

Return at most 50 workspace decisions by default (maximum 200), optionally filtered by shape, urgency, or status. This operation has no cursor or continuation token, so results beyond the selected limit cannot be paged.

ActionTry it

List Discovery Runs

List at most 20 completed process-discovery runs by default (maximum 50). This operation has no cursor or continuation token, so results beyond the selected limit cannot be paged.

ActionTry it

List Events

List accepted workspace ledger events as a cursor-paginated JSON page or open a bounded Server-Sent Events stream, with filters for event and aggregate type. Use the returned cursor to continue.

ActionTry it

List Handoffs

List responsibility transfers in the workspace.

ActionTry it

List Missions

List at most 50 missions through the OrgX compatibility view. This operation has no cursor or continuation token, so additional missions cannot be paged.

ActionTry it

List Operating Processes

Return a workspace's collection of proposed, confirmed, and active operating processes.

ActionTry it

List Work

Return one newest-first page of work in a workspace, optionally filtered by initiative, status, or update time, with an opaque continuation cursor.

ActionTry it

Prepare Context

Build a fresh context package scoped to a workspace, initiative, workstream, or task before reasoning over current OrgX state. Use `delivery_mode=delta` with an acknowledged context version for exact byte reconstruction; unknown bases return a full rebootstrap. Preparation reads current sources on every call, and the returned context does not grant action authority.

ActionTry it

Preview Launch

Preview a committed plan without starting agents, writing reservations, or spending provider budget. Returns targets, block reasons, a server estimate, and the launch-plan digest required by ORGX_CREATE_LAUNCH. Scoped IDs are checked before preview and the autonomy ceiling can only lower policy.

ActionTry it

Propose a Discovered Process

Turn one discovered process candidate into a proposal for workspace review.

ActionTry it

Propose an Operating Process

Store the caller-supplied operating process and first revision as a proposal for workspace review.

ActionTry it

Raise a Decision

Create a decision request for a human ruling. Automated callers raise and read decisions; approving or declining stays a signed-in human action, recorded with lifecycle history. Reuse the same Idempotency-Key and request body to receive the original decision. Reusing the key with a different body returns an idempotency conflict.

ActionTry it

Reconcile Controller

Produces a typed shadow proposal candidate or no-op. A proposal is atomically admitted as a pending human Decision with canonical decision.proposed evidence and a neutral reconciliation Receipt. It grants no execution or policy authority.

ActionTry it

Return Handoff

Return a claimed handoff to the queue.

ActionTry it

Validate a Receipt

Validate a portable Agent Work Receipt without storing it.

ActionTry it

How the OrgX integration works

The OrgX integration connects Dench directly to OrgX, so agents can read and act on your OrgX data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

62 actions are available for agents to invoke on your behalf. Every call runs through OrgX's own authorization, scoped to the account you connect.

Set up OrgX in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find OrgX and click Connect — you'll authorize access through OrgX's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use OrgX in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the OrgX integration work with Dench?

The Dench OrgX integration connects your AI CRM to OrgX, so AI agents can work with your OrgX data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with OrgX via Dench?

The OrgX integration currently exposes 62 actions, including Activate an Operating Process, Apply Lifecycle Action, Ask a Human to Look at a Decision, Cancel Handoff, Cancel Launch, and Capture Artifact Revision. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect OrgX to Dench?

No. You connect OrgX from your Dench workspace using OrgX's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the OrgX integration secure?

Connections are authorized through OrgX's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the OrgX connection from your workspace settings at any time.