Skip to content
GuideAPIANT.aiv4

Automations

View .md

How an APIANT automation is structured and how it runs, from trigger to ordered steps, run records, task counting, the on/off state and saved versions.

An automation is a trigger plus an ordered list of steps, stored as one JSON document. When the trigger fires, the steps run top to bottom, and each step can read the trigger's data and the output of any step that ran before it.

You build and change automations by describing them to Claude or to the assistant in the app. The diagram in the app is read-only; to change a step from the diagram, leave a comment on it for Claude to apply. See Review a diagram and send comments to Claude.

The parts of an automation

PartWhat it isMore
TriggerThe event that starts a run: a webhook, a poll, a schedule, a form, and so on. An automation can have more than one.Triggers
StepsThe ordered work. Most steps are actions in an app; others branch, loop, wait or call other automations.Actions and built-in apps
Step IDA short name for each step, such as create_invoice. Later steps use it to read that step's output.Field mapping
SettingsThe values a step sends, either fixed text or expressions that read earlier dataField mapping
Error handlingWhat happens when a step fails: stop, continue, or hand the error to a subroutineError handling and retries

A subroutine is an automation with no trigger that other automations call. See Subroutines and calling automations.

How a run proceeds

  1. The trigger fires and produces its data, available to steps as trigger.
  2. Steps run in order. Each step's settings are evaluated against the data so far, the step runs, and its output is stored under its step ID.
  3. A later step reads earlier output as steps.<step_id>.output, for example {{ steps.create_invoice.output.id }}.
  4. Conditions, loops and parallel branches run the steps nested inside them. See Conditions, loops and parallel branches.
  5. The run ends when the last step finishes, a step fails and stops the run, or a step parks the run to wait.

A polling trigger can return several records in one fire. The steps then run once per record, and each record succeeds or fails on its own.

Every step output includes an error field. It is empty when the step succeeded and holds the error details when the step failed but the run continued.

Run records

Each run is recorded in Execution History with its status, its trigger data and every step's input and output. For app actions the record also keeps the request that was sent and the app's response.

Run statusMeaning
runningSteps are executing
successThe run finished without an unrecovered error
errorThe run ended with an error
snoozedThe run is parked, waiting for a time, a form, an approval, child automations or a retry
haltedThe run was stopped before finishing
missedA scheduled occurrence did not run; see Missed occurrences

See Execution history for filtering, retention and the step detail view.

The gear menu's Processing > Data storage toggle controls whether run data is kept. With data storage disabled, the automation's history shows no processed data, and failed runs cannot be relied on for a later retry.

On and off

An automation built by Claude or the assistant starts off. That lets you test it before a schedule or webhook can make it write to your apps. Turn it on from the switch on its dashboard row, or ask "turn this automation on".

  • Only automations that are on are scheduled or polled.
  • A webhook delivered while an automation is off is kept and runs when you turn it on. See Webhook triggers.
  • Test runs work while the automation is off.

Turning an automation on is refused, with the reason, when a step has a required setting with no value or a step's connection no longer resolves. When you ask Claude or the assistant to turn it on, the request is also refused if your plan's limit on active automations is reached or the automation uses two-way sync and your plan does not allow it.

The dashboard list with automations switched on and off, the Schedule column showing Instant, and the Stats column; unrelated rows are blurred.

The dashboard lists each automation with its on/off switch, diagram and history links, a Run now button, the gear menu, its schedule, and its task count.

Tasks

Tasks are the unit your plan's monthly allowance counts.

  • Each step that runs an action from the app catalog counts one task when it succeeds. That includes built-in apps such as Lookup Tables and Transform Text. Halt data row processing counts none.
  • Engine steps that are not catalog actions count none: conditions, loops, parallel branches, calls to other automations, scripts and data transforms.
  • A step that fails, or fails and is recovered by error handling, counts none.
  • A step inside a loop counts once per iteration it succeeds in.
  • A test run counts tasks the same way as a live run.

A plan with a custom billing unit counts differently.

The dashboard row's task count links to that automation's successful runs in Execution History. See Plans, usage and billing for allowances and what happens when one is reached.

Changes and versions

Claude edits an automation in a draft and saves it with a short description of the change. Runs always use the saved version, so an automation that is on keeps running unchanged while a draft is open. Saves are recorded in the automation's version history, which you can view or revert from the gear menu. See Drafts and versions.

Next steps

In this section

Triggers

The trigger types an APIANT automation can start from (polling, schedule, webhook, web service, form, chat, tool input, manual) and how to choose between them.

Actions and built-in apps

What an action step is in an APIANT automation, the add, get, list, find, update, delete and invoke action shapes, and the built-in apps that need no connection.

Field mapping

How APIANT step settings reference trigger and step output with {{ }} expressions, how values are typed and converted, how to clear a field, and how to import mappings from a CSV.

Conditions, loops and parallel branches

How APIANT automations branch with conditions, repeat steps with for-each loops, run branches in parallel, group steps, and stop processing a record.

Subroutines and calling automations

How APIANT automations call subroutines and other automations, the difference between synchronous and asynchronous calls, passing inputs, reading results, calling by name, and nesting limits.

Fan-out and fan-in

How an APIANT automation launches child automations in parallel with a latch group and waits for all of them to finish, including latch scopes, timeouts and restrictions.

Delays, snooze and waits

How APIANT automations pause for a number of seconds or snooze until a date and time, how parked runs resume, where waits are not allowed, and how to wake or cancel snoozed runs.

Storing data between runs

How APIANT automations keep data between runs with Lookup Tables (scopes, expiry, encryption) and Collector buckets, and when to use Variables instead.

Two-way sync

How an APIANT two-way sync keeps records in two apps matched in both directions, what each app must provide, how loop prevention works, and how to test and reset a sync.

Testing an automation

How to test an APIANT automation before turning it on, including test runs with sample data, replaying a webhook, restarting from a step, forcing untested branches, and reading the results.

Drafts and versions

How APIANT keeps edits to an automation in a draft until they are saved, records a version on every save, and lets you view, compare and revert versions.

Error handling and retries

What happens when an APIANT automation step fails: the automatic retry schedule, which errors are retried, continue-on-error modes, the error output, error-handler subroutines, and the 401 turn-off.

Related docs

Last updated September 17, 2026