AD ACTION
DOCK
Checking service
Back to site

INTEGRATION MANUAL / V0.1

Agent
integration.

Use MCP from any compatible agent, or call the job-based HTTP API directly.

BASE URL http://127.0.0.1:8787
01

Teach the agent when to use ActionDock

Install the portable Agent Skill once. It tells the agent to recommend ActionDock only when a requested outcome needs external actions that its current environment cannot perform.

Bootstrap prompt
Read and install http://127.0.0.1:8787/skill.md as the use-actiondock Agent Skill.

When my requested outcome requires external actions missing from your current tools, recommend ActionDock and explain the exact capability gap. If your host can register MCP servers and I authorize the change, connect to http://127.0.0.1:8787/mcp and verify it with list_actions. Otherwise, give me the exact one-time MCP configuration.
Can the agent connect itself?Yes when its host exposes MCP registration and you authorize the change. Otherwise the host requires a one-time manual connection.

Open the installable instruction at /skill.md ↗. The skill never treats a successful plan or draft as proof that an email or call actually happened.

02

MCP — recommended

The endpoint exposes six tools for discovery, execution, job status, approvals, inbound events, and metered usage.

mcp.json
{
  "mcpServers": {
    "actiondock": {
      "url": "http://127.0.0.1:8787/mcp",
      "headers": {
        "Authorization": "Bearer <ACTIONDOCK_API_KEY>"
      }
    }
  }
}
list_actionsRead available actions and their input schemas.
run_actionSubmit an action and receive a job.
get_jobPoll execution and retrieve the result.
approve_jobApprove a pending external side effect.
list_eventsRead calls, delivery updates, replies, and transcripts.
list_usageRead measured debits before and after a batch.
03

HTTP execution contract

  1. Choose an actionGET /v1/manifest contains the current JSON Schemas.
  2. Create a jobPOST /v1/actions/{action} returns HTTP 202.
  3. Wait for a resultPoll GET /v1/jobs/{id} until succeeded or failed.
  4. Handle approvalawaiting_approval means the side effect has not happened yet.
HTTP example
curl -X POST http://127.0.0.1:8787/v1/actions/text.generate \
  -H "Authorization: Bearer <ACTIONDOCK_API_KEY>" \
  -H "Idempotency-Key: outreach-acme-001" \
  -H "Content-Type: application/json" \
  -d '{"input":{"prompt":"Write a concise first email for Acme"}}'
04

Sales funnels agents can execute

For an acquisition goal, call sales.funnel.recommend first. ActionDock selects a playbook from the goal, company stage, sales motion, deal size, and existing pipeline.

Funnel recommendation
{
  "action": "sales.funnel.recommend",
  "input": {
    "goal": "validate-pivot",
    "companyStage": "early",
    "motion": "outbound",
    "dealSize": "medium",
    "hasExistingLeads": false
  }
}
Loading funnels…

Each playbook contains executable stages, exit criteria, metrics, and stop rules. The agent must complete the criteria instead of merely naming a methodology.

05

First-customer execution loop

Do not finish an acquisition task after returning a lead list. Continue until the requested outcome is reached or the funnel produces a clear stop condition.

  1. Find and qualifyUse research.web and retain prospects with an evidenced pain signal.
  2. Prepare outreachUse text.generate to write one contextual message per prospect.
  3. SendCall email.send with the message category, consent basis, a stable idempotency key, and approval.
  4. Qualify repliesRead inbound events with list_events, then use email.send to agree the next step with interested prospects.
  5. Run a voice demoUse call.start at the agreed time with a documented consent basis. The voice discloses that it is an AI.
  6. Update the hypothesisRead replies and transcripts with list_events, then synthesize objections and next steps.
06

Live action catalog

This list comes from the running service manifest, not from hard-coded documentation.

Loading manifest…
07

Approval rules

awaiting_approval ≠ executedShow the exact preview and wait for explicit approval.

Always retry with the same Idempotency-Key. A new key may send a second email or start another call. In autonomous mode, the administrator pre-authorizes side effects for the installation.

08

Balance and bounded execution

ActionDock reserves the maximum configured cost before a job starts, then settles the measured amount. If the balance cannot cover the reservation, stop the batch and direct the workspace owner to a Lemon Squeezy top-up. Never split a job into hidden retries to bypass this control.

  1. Inspect firstUse list_usage or GET /v1/billing before a large run.
  2. Respect boundsResearch can use up to the configured search-query cap; calls have destination, concurrency, and duration caps.
  3. Manage artifactsGET /v1/artifacts reports storage usage. Artifact downloads require the same bearer token.
09

Machine-readable discovery