Durable execution · Agent Brain System

Workflows that finish the job.

Agents and automations fail halfway: a model times out, an API is down, a person has not answered yet. Hookie runs each workflow as durable steps that retry, wait and resume, and keeps a log of every run so you can see what happened and replay what did not.

What durable means here

Every step survives a failure

Durable steps

Each step's result is saved before the next one starts. A failed step is retried; a finished one is never run again.

Wait without a server

Sleep for minutes or months, or wait for a matching event such as an approval or a payment, for up to a year.

Nothing dropped

Every stored event is written with its fan-out in one batch. If a step crashes, a scheduled sweep finishes the work.

Honest status

A scheduled check reconciles unfinished runs with the engine, so the status you see is what actually happened.

Triggers, steps and runs

Start from any event. Do the work in steps.

Draw the workflow on a canvas in the console, or define it through the API, the CLI or an agent over MCP. It is the same definition either way.

Triggers

  • Webhooks and formsA new record in a dataset starts the workflow when it matches the entry conditions.
  • SchedulesCron triggers start a run on a schedule, with a preview of the next times it fires.
  • Live feedsWebSocket listeners filter an external feed and start a run per matching message.
  • PollersPostgreSQL pollers read new rows on an interval and send each one through the pipeline.

Steps

  • AI and agent stepsCall a model, or hand the task to an AI agent with the context it needs.
  • Brain stepsWrite records to a table and create relationships in the knowledge graph.
  • HTTP and deliveriesCall an API, or emit an event that goes out as a signed delivery.
  • Control flowBranch on a condition, set and transform values, delay, or wait for an event.
trigger   new record in "leads"
step 1    call_ai          classify intent
step 2    branch           intent == "sales"
step 3    graph            link lead → company
step 4    wait_for_event   "meeting_booked"  (up to 14 days)
step 5    http             POST to the CRM   (retried until it succeeds)
A lead workflow: classify, link it in the brain, wait for the meeting, then update the CRM.
Runs and deliveries

See every run. Replay what failed.

Runs

Each run keeps its step log, AI calls and inputs. Trace a run back to the event that started it, retry a failed run, or cancel one that is waiting. Agents can do the same over MCP.

Deliveries

Outbound webhooks are signed to the Standard Webhooks spec and retried with backoff for about a day, then dead-lettered. Replay one delivery, or every failure in a time window, with one click.

Workflows read and write agent context, and forms can start one on every submission.

Make your first workflow durable

Point a webhook or a form at a dataset, add a workflow, and watch the run log fill in.