Skip to main content

What is Automation?

Automation enables you to set up automation based on tasks’ events and data source’s events. It might help you automate creation of tasks, task assignment, task placement, task webhook, data source update, datasource creation, data source webhook, and task component updates. Automation attributes consist of IDs, automation name, automation type, automation details, and rules. Automation logs are stored with 30-day data retention.

Automation Types

For Update Task, a field value can also be sourced from a record in a data source linked to the triggering task (“From Data Source”). The picker shows only the data source fields that are mapped in the flow’s data source configuration (the primary key is the lookup, not a selectable value). The value is fetched at the system level, so it works even when the field is restricted for the user who created the task.

Automation Events

The event field accepts one of ten values across four data types. Any other value is rejected with 400 Bad Request.

Geofence Events

onGeofenceEntry and onGeofenceLeave fire when a field worker’s GPS position crosses into or out of a geofence. They carry two constraints the other events do not:
  • automationType must be webhook. Every other type is rejected with 400 Bad Request.
  • rules.fields.geofenceGroupId is required. The automation is scoped to exactly one geofence group, and the request fails validation without it. Do not send rules.schema: the API derives it from the keys of rules.fields and overwrites anything you send.
Geofence is not generally available yet. It is enabled for MileApp internal staff and explicitly allowlisted pilot organizations. Every geofence endpoint returns 404 Not Found for organizations outside the rollout, not 403. See On Geofence Entry and On Geofence Leave for the webhook payload. To see the details of automation object, please follow this link

Key Features

Read automation

GET /automations

Read log automation

GET /automation-log

Read automation by ID

GET /automation/

Create automation

POST /automation