Sub topic 12
From manual to automated: what to build first
This chapter assumes you have already run a concierge or Wizard of Oz test and seen real demand. It also assumes you can read a simple Python script and know what a customer segment is. The question now is what to automate first, and what to leave manual.
Why not automate everything
Manual delivery has validated demand. It has not validated your architecture. If you build a full automated product now, you spend weeks on parts that may not matter. Automate in small steps, and let the manual work tell you which step comes next.
The rule for the order is simple: automate the step that hurts most, and only when the pain is measured.
Measure the manual work
For one to two weeks, log every task you do by hand. For each task, record how long it takes, how often it happens, and whether it can go wrong. The Wizard of Oz stub from the earlier chapter already gives you a start, because it writes each request to a queue file.
import csv
from collections import defaultdict
def minutes_by_task(log_path="manual_log.csv"):
totals = defaultdict(float)
counts = defaultdict(int)
with open(log_path, newline="") as f:
for row in csv.DictReader(f):
totals[row["task"]] += float(row["minutes"])
counts[row["task"]] += 1
ranked = sorted(totals.items(), key=lambda item: item[1], reverse=True)
for task, total in ranked:
avg = total / counts[task]
print(f"{task}: {total:.0f} min total, {counts[task]} times, {avg:.1f} min each")
if __name__ == "__main__":
minutes_by_task()The script expects a CSV file with the header task,minutes. Each row is one piece of manual work you did. The output ranks tasks by total time spent.
Pick by cost and risk
Total time is not the only input. Use three questions for each task:
- Time cost: how many hours per week does it take now, and how will that grow if customers double?
- Quality risk: does a human mistake here lose a customer or cause harm?
- Learning value: is the task still changing? If you are still discovering how it should work, automating it freezes a guess.
A task that is slow, error-prone, and stable is the best candidate. A task that is quick but still changing should stay manual.
| Task | Hours per week | Error risk | Stable? | Decision |
|---|---|---|---|---|
| Sending confirmation emails | 3 | Low | Yes | Automate now |
| Matching customers to suppliers | 6 | High | No | Keep manual, keep learning |
| Producing the weekly report | 4 | Medium | Yes | Automate next |
Automate one step at a time
Replace the human with software one step at a time, behind the same interface. The customer should not notice. Here is the earlier request handler, with one step automated: instant acknowledgement is now software, but a human still writes the answer.
import csv
import time
def send_email(to, subject, body):
print(f"To: {to}\nSubject: {subject}\n{body}\n")
def handle_request(user_email, question, queue_path="requests.csv"):
with open(queue_path, "a", newline="") as f:
csv.writer(f).writerow([int(time.time()), user_email, question, "pending"])
send_email(user_email, "We got your question", "A person will reply within 2 hours.")
return "Thanks, we will reply within 2 hours."
handle_request("[email protected]", "Can you compare these two quotes?")The send_email function here only prints. In a real system you would call an email provider. The point is the shape: each manual step becomes a function you can swap later.
A typical sequence
After each automated step, compare the same measures you used before: response time, error rate, and whether customers keep coming back. If quality drops or usage falls, you have learned that the manual step carried value you did not see.
Common mistakes
- Automating the interesting part first. Engineers tend to pick the technically exciting task. Pick the painful one instead.
- Automating before the process is stable. If you change how you deliver every week, code written now will be thrown away.
- Removing the human too early. Customers sometimes valued the personal contact. Check retention after each change.
- Skipping the log. Without numbers, the loudest complaint wins, not the biggest cost.
Exercise
You run a concierge service. Matching customers to suppliers takes 6 hours a week, errors are costly, and you change the matching rules every few days. Sending invoices takes 2 hours a week, errors are rare, and the format has not changed in two months. Which do you automate first, and why?
Show answer
Automate invoices first. The task is stable, so the code will not be thrown away, and the risk of freezing a wrong rule is low. Matching takes more time, but you are still learning how it should work, so automating it now would lock in a guess. Keep matching manual until the rules settle.