← Prompt library

Automation design

Write an event-driven workflow specification

Turns a business workflow into an implementation-ready event model with triggers, states, retries, and observability.

  • event modeling
  • workflow automation
  • state machine
  • implementation brief

Prompt

Convert this workflow into an event-driven automation specification.

Include:
1. Event names and payload fields.
2. State transitions in plain language.
3. Idempotency keys and duplicate handling.
4. Retry policy and dead-letter conditions.
5. Human review states and notification rules.
6. Data retention, access, and audit notes.
7. A compact test plan that proves the workflow handles happy path, missing data, duplicate events, and partial failure.

Write for a product engineer and an operations lead who need to agree before implementation starts.