Skip to main content
A procedure runs one of your operations the same way every time. It reads from your systems, asks the right person to approve, waits for the right date, writes to your systems, and keeps a record of every step. Effective runs it, and your team decides what it does and who signs off.

What procedures give an operations team

  • The same steps every time. The procedure is a written document. Your team can read it like an operating procedure, and Effective runs exactly what it says.
  • People decide where judgment is needed. An approval is a step in the procedure. Nothing after it runs until the right person answers, and the run records who answered and what they said.
  • Waits for a date. A run can wait until a set date and time, such as a notice date, and keeps its place across restarts and deployments while it waits.
  • A record of every run. Each run shows what it started with, what each step read and wrote, each approval, and the version it ran.
  • Changes are versioned. Every published version is kept unchanged. A change can be tried as a draft first, and runs already under way keep the version they started with.

Operations that fit

Procedures fit operations that follow fixed steps, touch your own systems, and have to leave a record. For example: The Cancel a policy and Reconcile payments tutorials build the first and third in full. The other rows are combinations of the same building blocks.

What you control, what Effective guarantees, what your systems must do

You control:
  • the steps, the rules and the order they run in;
  • who approves each decision, and who can publish, run and see the procedure;
  • which version is live. A new version with the same inputs and output goes live as soon as it’s published, so review a change before you publish it, or pin callers to an exact version;
  • the credentials each step uses, and what each step may reach.
Effective guarantees:
  • a run keeps its place across restarts and deployments, and on its own never repeats a step whose result it has recorded. A code step that was still in progress can run again under its retry policy;
  • a published version never changes, and each run records the version it ran;
  • only a task’s assignees can answer it, and an answer that doesn’t fit its form is refused;
  • credentials are set in Effective, not in the source. Effective never writes a secret’s value to the source, the version or the run record. Code that reads a secret must not return it in a step’s result, because results are recorded.
Your systems must:
  • be reachable from the public internet over HTTPS, and authenticate each request. Procedure code can’t reach private networks;
  • honour the idempotency key on every write, so a repeated request isn’t applied twice. An idempotency key is a value sent with a write so that the receiving system can recognize a repeat of it. Effective doesn’t guarantee that a write happens exactly once. See Writes to your systems;
  • refuse requests they can’t accept with a clear error, so the procedure can stop instead of retrying;
  • keep their own record of each write, with the ID the procedure can return.
Safety for regulated operations covers approvals, the audit trail, deadlines, failures, change control and access in more detail.

Who does what

Procedures are not a drag-and-drop builder. A procedure is a text file: Markdown that people read, with small blocks of YAML and TypeScript that say exactly what runs. Effective supplies the parts a developer would otherwise build: waits that last for days, the inbox where approvers answer, the record of every step, and versioning and pinning. Developers and coding agents, including the Effective agent, write it with the tools they already use, and review it like any other code. Business owners review the same document, because its headings and paragraphs describe each step in plain words, and approve individual operations through tasks. Rules that must always give the same answer, such as a return premium, are code in the document.

How a procedure works

A procedure is a document that Effective runs for your organization. It reads like a written operating procedure: headings and short paragraphs say what each step does and why. Under each heading, small YAML blocks called nodes say exactly what runs: read a policy from your system, ask a person to approve a refund, wait until a notice date, return a result whose shape the procedure declares. Effective runs each procedure durably: a run keeps its place across restarts and deployments, records what every step returned, and doesn’t repeat a step whose result it has recorded. Every version you publish is kept unchanged, and every run records which version it ran.

What a procedure looks like

This procedure acknowledges a new claim. The front matter, the block between the --- lines, declares its inputs and output. The complete node returns the result, and the schema block describes the result’s shape.
claim-acknowledgement.procedure.md
Nodes run in document order. Declarations, such as schema blocks and code declarations, can sit anywhere in the document. See Procedure document for the full file format.

The building blocks

Each node type has its own reference page with its syntax, fields, examples, and what happens when a step is retried or a run resumes. The cheat sheet shows them all on one page.

How you work with procedures

  1. Write. Ask the Effective agent to write one, or write the file yourself and keep it in source control.
  2. Try it. Start a draft run from the source before you publish anything. Only you can see a draft unless you share it. See Try a draft.
  3. Publish. Each publish creates the next immutable version. A version whose inputs and output match the live version becomes live automatically.
  4. Run. Start runs from the Effective app, from a trigger, or from your own system through the API.
  5. Inspect. Every run shows each step’s inputs, outputs and status, the tasks it created, and the version it ran.

Where to go next