Automate the Permit Workflow
Automations move a permit through its lifecycle: when a record reaches a status, an automation sets the next status, creates the next review task, emails the applicant, or generates the permit document. This page covers the patterns a permit workflow uses. For building an automation step by step, see the Automation Builder guides.
Prerequisites
- The permit entity, its Application Status options, and any review task entity exist.
- For documents, a PDF template (see PDF templates).
- A staff role that can configure automations.
Triggers for permit work
| Trigger | Use it for |
|---|---|
| When records matches condition | The default for status gates. Runs when a record is created or updated and matches your conditions. Pair it with an "only run once" guard (below). |
| Form Submission Trigger | Work that must start the moment an applicant submits. |
| When record is created | Setup that only depends on values present at creation. It does not run again if a later automation sets the field you care about. |
| When record is updated | Reacting to a change in specific fields. |
| When record is deleted | Cleanup. |
| At a scheduled event | Recurring checks, such as expiration reminders. |
| On Appointment Change | Inspection scheduling, rescheduling, and results. |
| When Process Evaluation Completes | Acting on an AI evaluation result from the Process Library. |
| When webhook received | Events from another system. |
Actions for permit work
| Action | Typical use |
|---|---|
| Update Record | Set Application Status or a review status. |
| Create Records | Create a review task, inspection, or child record. |
| Find Records | Look up related records, for example all review tasks for a permit. |
| IF/ELSE Conditions | Branch, for example residential versus commercial routing. |
| Send Email | Notify the applicant, licensed professional, or reviewer. |
| Generate PDF | Produce the permit, certificate, or letter from a template. |
| Wait Action | Pause for a fixed time or until a date field, for example 30 days before expiration. |
| Formula Builder | Calculate a value such as a fee or due date. |
| Repeating Group | Run actions for each record in a list. |
| Evaluate Record Set | Check whether all or any related records meet a condition (All records match, Any record matches). |
| Autofill With AI, Extract From Document | Fill fields from application content or uploaded documents. |
| Delete Records | Remove records that are no longer needed. |
Generate PDF, On Appointment Change, and When Process Evaluation Completes are available in permitting applications.
The "only run once" guard
When records matches condition runs every time a matching record is saved. Without a guard, each later edit to the permit would create the same review task again. Build every status gate like this:
Condition 1: the routing condition
The record is at the stage you want, for example Application Status is Submitted and Trade Type is Electrical.
Condition 2: the guard field is empty
Pick a field this automation will fill, for example Electrical Review Status, and require it to be empty.
First action: fill the guard field
An Update Record that sets Electrical Review Status to Pending. Because the field is no longer empty, the automation does not match again.
Next actions: do the work
Create Records for the review task, Send Email to the applicant, and so on. Keep the guard update first in the flow.
Common permit patterns
| Pattern | How to build it |
|---|---|
| Status chain | One automation per gate. Each sets the status that starts the next one (Submitted, then Under Review, then Ready for Issuance, then Issued). See Status automations. |
| Fan out reviews | One gate with several Create Records actions, one per department review. See Multi-department review. |
| Join reviews | A gate that runs when all reviews are complete, using Find Records with Evaluate Record Set (All records match), then moves the permit on. |
| Issue the permit | Generate PDF for the permit document, Update Record to Issued, Send Email with the document. |
| Expiration reminder | Wait Action until a set time before the expiration date, then Send Email. See Wait steps and Reminders. |
Steps
Create and name it
In the Automation Builder, click Add Automation and enter an Automation Name and Automation Description that say which gate it is, for example Electrical: Submitted, create review.
Set the trigger and conditions
Choose the trigger and add the routing and guard conditions.
Add the actions
Click Add Action for each step, guard update first.
Save and activate
Click Save, then switch on Activate Automation.
Test with a real record
Submit a test application, then open History and check Run history (filter by Success, Failed, Skipped, Cancelled). Edit the record again and confirm the automation did not run a second time. Version history shows earlier saved versions.
Example
Electrical: Submitted, create review
| Part | Setting |
|---|---|
| Trigger | When records matches condition on Electrical Permit |
| Condition 1 | Application Status is Submitted |
| Condition 2 | Electrical Review Status is empty |
| Action 1 | Update Record: Electrical Review Status = Pending, Application Status = Under Review |
| Action 2 | Create Records: Electrical Review task linked to the permit |
| Action 3 | Send Email: tell the applicant the review has started |
Common mistakes
- No guard condition, so every edit creates another review task.
- Setting the guard field after creating the task instead of before.
- Using When record is created for a step whose field is set by another automation later; it never runs.
- Matching a status that is not exactly an option of Application Status.
- Testing once and stopping. Always edit the test record again to prove the gate does not repeat.