03 / THE DECISION
Name the reason each message is sent
Designing how templates link to workflows surfaced a missing layer. A template fills in details such as a producer’s name or licence date, and those details come from the workflow that sends it. Linked straight to workflows, the system had no dependable way to know which details applied, so an email could reach a producer with empty fields.
Two alternatives were drawn first: linking templates directly to workflows, and a stricter rule of one template per workflow. Both treated the link as a simple picker. It is really a decision about whether the data in the email will be right.
The answer was the trigger: the event that explains why a message is sent, such as a licence nearing expiry. The trigger decides which workflow runs, and the workflow decides which details the template can use. Chestnut’s data model already kept triggers and workflows apart. Drawing the screen gave that separation a purpose.
THE PRODUCT DECISION
The trigger became the intent behind every message, and the right details followed from it.
We shaped it as information, not as a lock. The editor shows which workflow context a template belongs to, and its variable picker groups details by source and category, such as producer or policy data. When no workflow is selected, it says so plainly instead of offering details that would come out blank.