Working example: enquiry workflow

How we designed reliable capture, routing and follow-up, with people in control.

This is the enquiry workflow we designed and built for this website. It shows how an enquiry is captured, routed, tracked against a response deadline and followed up to a recorded outcome. It shows integration and workflow engineering: durable records, retries, staff decisions and an operational history.

How it fits together

Visitorcontact formContact APIvalidate · limit · verifyOne database transactionenquiry · history · jobJob runnernotify with retriesEmail to the teamno message contentStaff in Adminrespond · stage · follow-upHealth checkheartbeat · deadlinesMonitor and alertsexternal + emailReportspipeline · originsubmitsavequeuesendnotifyrecordcheckproblems
Nothing is sent until the enquiry, its history entry and its notification job are saved together. Every later step can be retried and is visible to staff.

One enquiry, start to finish

Illustrative timeline with synthetic data. The behaviour is what the workflow does; the company and times are invented.

  1. Fri 16:42

    Enquiry received

    Reference IOV-7Q2K9D3M shown to the visitor. First response due by the end of Monday, assuming no public holiday or configured closure.

  2. Fri 16:42

    Saved in one transaction

    Enquiry, history entry and notification job written together; a duplicate submission returns the same reference.

  3. Fri 16:43

    Notification attempt 1 fails

    The email provider times out. The job is retried with increasing delays.

  4. Fri 16:47

    Notification sent

    To the owner and the team address. The email names the company and topic, not the message.

  5. Mon 09:10

    First response recorded

    The owner replies and marks it responded: within the commitment.

  6. Mon 09:15

    Qualified by a person

    Marked as a sales opportunity, stage “Qualified conversation”; next action “Send assessment scope”, due Wednesday.

  7. Wed after 08:00

    Daily digest

    The owner's morning digest lists the follow-up due today. One email, not one per record.

People stay in control

  • Staff decide ownership, responses, whether an enquiry is a sales opportunity, and its outcome. No AI reads or assesses enquiries today.
  • Sales stage changes cannot be saved without their history entry, so reports rest on a complete record.
  • Notification emails carry no message content; access to enquiries is limited to people who handle them.
  • Deletion stays manual until an administrator turns on automatic retention.

When things go wrong

SituationWhat happens
The visitor presses Send twiceThe same submission returns the original reference; no duplicate enquiry.
The email provider is downRetries with backoff, then marked failed, shown in Admin and emailed as an alert; staff can retry.
Nobody replies in timeFirst response overdue is flagged in Admin, in the health check and by email, whether or not an owner is assigned.
The job runner stopsIts heartbeat goes stale; an independently configured external monitor can alert. Production monitoring is pending.
The database is unavailable at start-upStart-up retries with increasing delays. After repeated failures in production, the process exits so a configured container restart policy can recover it.
The website assistant is unavailableEnquiries, booking requests, follow-up and reporting are unaffected.

Evidence and limitations

  • Automated tests cover duplicate submissions, transaction rollback, retries, deadlines across weekends, public holidays and daylight saving, access control and the complete visitor journey in a browser, including with the website assistant switched off.
  • AI-assisted triage is planned, behind a trial with measured baseline data and human review. It is not part of this workflow today.

Have a workflow like this?

Intake, routing, approvals and follow-up are practical starting points for assessing AI automation and integration.