Define triggers and a data contract
Every automation starts with an event: a form submission, an added row, or a completed approval. Specify required fields, their format, and who is authorized to submit them. This “contract” prevents the rest of the workflow from silently receiving incomplete data.
- Describe the event in one observable sentence.
- List required, optional, and prohibited fields.
- Define how to detect duplicates and repeated submissions.
Separate deterministic rules from judgment
Validation, calculations, and routing based on known rules should remain explicit. AI can help with ambiguous classification or drafts, but requires suitable thresholds and checks. Do not use it to hide a poorly defined rule: if you cannot explain the criterion, clarify it first with examples and edge cases.
- Use visible conditions for certain steps.
- Define a “needs review” category.
- Do not turn a model estimate into a fact.
Design errors and a manual path
A reliable system is not one that never fails, but one that makes failure visible and recoverable. Plan what happens if a service does not respond, a field is missing, or output fails checks. Keep the data needed to resume work and send a clear notification to the responsible person.
- Use retries only when they are safe.
- Prevent duplicate actions with unique identifiers.
- State who intervenes, where, and with what information.
Test and document before expanding
Prepare a small suite of cases: normal, incomplete, duplicate, ambiguous, and unauthorized input. Record expected and actual outcomes, including effects on connected systems. Document dependencies, access, startup, shutdown, and recovery; add integrations only when the core is understandable to its maintainer.
- Use fictional or properly protected data in tests.
- Keep useful logs without collecting unnecessary data.
- Periodically verify that documentation matches the workflow.