Skip to main content

Run Talonic tasks from your own agent

A workspace can hand some work to an outside agent instead of a person: a check a Spec asks for on a document, or a decision an app makes on each run. Your agent picks the work up, does it, and hands back a result that Talonic verifies before anything continues. This page is for teams wiring their own agent into those steps.

Two kinds of work

The loop

  1. List available work. (Or subscribe to the webhook your workspace sends when work is offered.)
  2. Claim one item. A claim is yours for a limited time (lease_expires_at) and carries an execution_epoch you send back with every later call. If another agent claimed it first you get HTTP 409; take the next one.
  3. Read the input. For decisions, read the records page by page; copy the evidence locators you rely on.
  4. Keep the claim alive with a heartbeat if the work takes longer than the lease.
  5. Submit the result in exactly the declared shape. Talonic checks it before writing anything; a rejected submission (HTTP 422) says why and changes nothing, so fix it and submit again while the claim lasts.
  6. Or hand it back. Release a decision another agent could still make; fail one nobody can decide, which sends it to a person and applies the app's fallback.

Access

  • Agent tasks: any credential for the workspace; you see only the tasks of that workspace.
  • Decision tasks: an API key with a decide grant for that app, or a connector session with the apps:decide scope and a workspace role of senior member or above. A 403 names what is missing (decide_grant_required, insufficient_scope, insufficient_tier); the agent should tell you, not retry.
  • Every read of a task's input is recorded against the task.

Errors

ParameterTypeDescription
409conflictSomeone else holds the claim, or your `execution_epoch` is out of date. Stop, discard the work and list again.
422rejectedThe result does not match the declared shape or evidence. Nothing changed; fix and resubmit.
403forbiddenThe credential lacks the grant, scope or role. Reconnect or ask an admin.

See Tools by task for the rest of the tools.

Frequently asked questions

What happens if my agent crashes in the middle of a task?+
The claim runs out at lease_expires_at and the task becomes available again. Any later call with the old execution_epoch is refused, so stale work can never overwrite a newer result.