Required permission:
- View automation
- Create automation
Before you start
- Field workers use the field app, and the start trip / end trip feature is turned on for your organization.
- A trip can only end after it was started.
- The event can only come from the field app.
Set it up
- On Workflow › Automation, click New.
- Event: On Finish Trip.
- Automation Type: Webhook, the only type this event allows.
- Fill in the webhook URL and Headers, for example
https://api.example.com/trip/endwith anAuthorizationheader. - Click Submit and make sure the automation is Active.
Use cases
Webhook payload
An example request body.duration is in seconds:
Troubleshooting
The automation doesn’t run when a trip ends.- Check that its Active switch is on.
- Check that the trip was started first.
- A field worker without a connection sends the trip end when they come back online.
- Look at the log for failed runs.