Which Sume API should a workflow agent step call?

A workflow agent step needs a fixed recipe, a clock, or an open task. Pick Format run, Scheduled action or Agent Completion by what you know up front.

5 min readSume
All posts

A workflow agent that calls a video step has three Sume surfaces to choose from, and the right one depends on how much of the job you already know. If the recipe is fixed, call a Format run. If a clock should start it, create a Scheduled action. If the task is open-ended and you only have a brief, send an Agent Completion. All three take a spend cap, but they differ in what the cap defaults to.

Parameters are from Sume's docs for Calling a Format, Scheduled and Agent Completions.

How do the three compare?

A Format run is POST /v1/formats/{handle}/{slug}/runs. It takes an input object of at most 64 keys and 2 MiB, supports an Idempotency-Key, and accepts generation_spend_cap_usd up to $500. A scheduled action uses a 5-field cron and an IANA time zone, and its default spend cap is $1.00, which a per-run override can only lower. An Agent Completion is POST /v1/agent/completions, returns 202, and requires generation_spend_cap_usd with no default.

Choosing a Sume surface (read 2026-10-03)
SurfaceUse whenCap default
Format runThe recipe is fixed and inputs varyUp to $500; null runs at $500
Scheduled actionA clock starts the work$1.00; overrides only lower it
Agent CompletionThe task is a briefNone; field is required

What should I ask first?

  • Do I know the steps? Use a Format and pass only the inputs.
  • Does time trigger it? Use a Scheduled action; schedules are authored in the Agents dashboard or by asking the Agent in chat.
  • Do I only have a goal in words? Use an Agent Completion, and put customer data in input.
  • Do I need many items? Format bulk runs take 1 to 100 items and a concurrency of 1 to 16.

What do all three share?

Runs are tracked by receipt, and terminal events can arrive by webhook: action.run.terminal, format.run.terminal, or agent.run.terminal. Admission rules apply to all: a plan's concurrency is Free 1, Pro 4, Startup 8 and Scale 20, with queue_full and rate_limited returning 429 and insufficient_credits returning 402.

What is the most common mistake?

Using an open task where a recipe exists. An Agent Completion decides its own steps, so cost and output vary run to run. A Format run with the same inputs is easier to cap, test and compare. Reach for the agent only when the task cannot be written as a recipe.

A last check on cost: null on a Format run's cap runs at the $500 ceiling and 0 is rejected, while a scheduled action's null runs without the automation ceiling. Treat null as a decision you make on purpose, never a default your workflow inherits.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume