Packages
A package is the unit of automation in the automator. It contains a script, written in AutomatorScript, together with the settings that determine when it runs, which libraries it uses, who to notify about errors, and more.
When a trigger fires, the automator runs the matching package's script to process the event.
Where the AutomatorScript section covers the language, this section covers everything about the packages you write in it:
- Package configuration - how to create and configure a package.
- Trigger events - the triggers that start a package, such as a webhook or inbound email.
- Standard variables - the data a package receives about the event that triggered it.
- Libraries - sharing code across packages.
- Testing - manually running a package, writing tests, mocking, and measuring coverage.
- Orchestration - running packages from other packages to build multi-step workflows.