Skip to main content
Get started

Execution types

Run an automation through its trigger, by hand, or as a simulation that changes no data in Tape. The execution type of a run decides if filters apply and if changes are real.

Execution typeStarted byFiltersChanges data
Regular (triggered)The trigger of the automationYesYes
Manual runA person in the automation editorYesYes
SimulationA person in the automation editorNoNo data in Tape, but requests to other services are real

To start a manual run or a simulation from code, use Run & simulate in the Automation API.

Regular / triggered​

The trigger of the automation starts the run. Example: an automation uses the trigger Record created. Someone creates a record in the web app, the mobile app or through the API, and the automation starts.

Tape checks the filters first. A run appears only if the record matches the filters of the automation.

Manual run​

Start a run yourself in the automation editor:

  1. Open the menu in the automation editor and select Manual run.
  2. Under Run on, choose the records: selected records, a view, a number of the most recent records, or all records of the database app. With the trigger Webhook received, choose Last payload or Custom payload instead.
  3. Select Start run.
The automation editor with Manual run open and the Run on options for selected records, a view, a number of records or all records

Filters apply. Only records that match the filters create a run.

Simulation run​

Use a simulation to test an automation without changing data:

  1. Open the menu in the automation editor and select Simulated run.
  2. Choose the records under Simulate on.
  3. Select Start simulation.
The automation editor with the Simulate on options and the Start simulation button

Filters don't apply in a simulation. Actions that change data in Tape only pretend to run: record updates, record creation, comments and other changes return test data. Requests to other services run for real: Send HTTP request, Send API request and http calls in scripts.

Your scripts can check current_workflow_is_simulation. Use it to skip calls to other services, so a simulation can't change data outside Tape.

if (!current_workflow_is_simulation) {
await http.post('https://hooks.acme.com/deals', {
data: { automation_id: current_workflow_id },
headers: { 'Content-Type': 'application/json' },
});
}

Tape sends data as JSON, but doesn't set the Content-Type header for you. Add it yourself when the receiving service expects application/json.

The tape client in Execute a script works the same way. In a simulation, calls that change data, like creating or updating a record, return test data.

Next steps​