Engine · Available
Automation
Event in → match → conditions → actions or step graph.
@keystone/engine-automation
Purpose
The orchestrating brain. Event-driven rules that call Tracker, Workflow, Notification, and AI — without importing application modules. Boots last so peers exist.
In a product
When a tracker record closes, start a workflow and notify the owner — configured as a rule, not a one-off script.
How it works
- Automation subscribes broadly to platform events (ignoring its own echo).
- Matching rules filter by event type, wildcards, scope, and field keys.
- Conditions evaluate; then v1 action lists or v2 step graphs run.
- Runs are logged; success and failure events publish for observability.
Capabilities
- Subscribe-pattern matching across platform events
- Condition evaluation before side effects
- v1 action lists and v2 step graphs
- Platform handlers for Tracker, Workflow, and Notification
- AI handler wired to @keystone/engine-ai in the API runtime
- Run history with matched / executed / failed events
- Dry-run and blocks catalog on the API
- Boots last in the runtime registry
Related
Event · Tracker · Workflow · Trigger · Notification · Billing · Document · AI · Report