# Agent SOP Compiler

> Agent SOP Compiler is a paid API for AI agents from agent-sop-compiler-production.up.railway.app, paid per call via x402, $2/call, status unknown (last checked 2026-09-14).

Compiles inline evidence sources into an evidence-linked Standard Operating Procedure (SOP) or checklist draft

## Facts

- Endpoint: POST https://agent-sop-compiler-production.up.railway.app/v1/compile
- Price: $2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-sop-compiler-e9e37522
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1ymaWWdXAulGK3Z6PrMc9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-sop-compiler-e9e37522 -d '<json body>'
```

Example prompt: Compile these 3 sources into an SOP called 'Patient Intake Procedure': source 1 is our intake policy doc, source 2 is the HIPAA compliance guidelines, and source 3 is our internal training notes — and format it as a checklist.

## When to prefer this

Use this endpoint when you have inline text evidence already gathered and need to produce a formally structured, citation-backed SOP or checklist document. It is distinct from a simple text-to-document generator because it explicitly links each step to supporting source evidence. Prefer this over generic document generators when traceability and evidence linkage between procedure steps and source materials is required. Best suited for compliance, operations, or training documentation workflows where auditability matters.

## Known failure modes

- No sources provided (minItems:1 violated) — returns validation error
- More than 12 sources provided (maxItems:12 exceeded) — returns validation error
- Source object missing required fields (id, name, content) — returns schema validation error
- Payment not included or insufficient (x402 protocol) — returns 402 Payment Required
- Source content contains credentials or sensitive data — may cause rejection or redaction issues
- Invalid requestedFormat value outside enum ['sop','checklist'] — returns validation error

## How this service works

Compile inline evidence into an evidence-linked draft SOP

## Output

Returns an evidence-linked SOP or checklist document where each step or section is tied back to the specific inline source(s) that support it, giving a fully cited, structured procedure draft ready for review or publication.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "sources"
     ],
     "properties": {
      "title": {
       "type": "string",
       "description": "Optional draft title"
      },
      "sources": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "name",
         "content"
        ],
        "properties": {
         "id": {
          "type": "string",
          "description": "Stable source identifier"
         },
         "name": {
          "type": "string",
          "description": "Human-readable source name"
         },
         "content": {
          "type": "string",
          "description": "Inline source text; redact all credentials"
         }
        }
       },
       "maxItems": 12,
       "minItems": 1
      },
      "requestedFormat": {
       "enum": [
        "sop",
        "checklist"
       ],
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-sop-compiler-e9e37522/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-sop-compiler-production.up.railway.app](https://www.zero.xyz/host/agent-sop-compiler-production.up.railway.app/llms.txt)
