Most developers have met this request: "can you automate this?" There is a task and a person who does it. Everyone has a vague sense that a script or a workflow tool could take it over. What is usually missing is the spec. Nobody has written down what the task really involves, so the first week of the project becomes an archaeology dig.

This post shows one way to produce that spec in an afternoon or so. You need the people who do the work, and no special tooling. It is a short plain-text template, a worked example and a set of questions for the first client call. The business examples are invented, and the advice works whether you build with n8n, Make, a Python script or a full application.

Why the spec comes from a map

A process map is the input specification for an automation. It answers what starts the process, what each step does, which decisions branch it, which systems it touches and what happens when something fails. Without those answers you may build the version you imagine, and the client may discover the difference at acceptance.

Softomate's published approach starts from the same idea. Its team sits with the people who do the work and maps the process as it runs now, before choosing what to automate. The order matters: observe first, choose second, and build last.

There is a second benefit. A written process gives you something to test against. Each decision becomes a branch to cover, and each failure becomes a test case.

What goes into the spec

Think of the spec as nine blocks. You can keep them in a document, a wiki page or a file in the repository. Whichever you choose, keep it where the client can read and correct it too.

  • Edges: the trigger that starts the process and the condition that ends it
  • Roles: who touches the work, including the customer
  • Steps: each action in order, one verb per step
  • Decisions: each branch as a yes or no question with a written rule
  • Systems and data: where each step happens and which fields move
  • Failures: what happens when a step cannot complete, and who is told
  • Volumes: how often it runs and how long it takes
  • Baseline: the current figures you will compare against later
  • Owners: the people who accept the work

The template

Here is a starter file. It is YAML only because it is easy to read and diff. Use whatever format your team prefers.

process: "" # verb + object, e.g. "Confirm an order" owner: "" # one named person trigger: "" # the event that starts it done_when: "" # the condition that ends it roles: [] # people and outside parties steps: # one verb per step, in today's order  - id: 1 action: "" role: "" where: "" # inbox, spreadsheet, CRM, phone, paper  reads: [] # data fields it needs  writes: [] # data fields it creates or changes decisions: - after_step: 0 question: "" # yes/no  rule: "" # written rule, or "UNKNOWN" until agreed  approver: "" # named person if approval is needed failures: - step: 0 what_goes_wrong: "" who_is_told: "" # a name, not "someone"  next_step: "" waits: - between: [0, 0] typical_duration: "" volumes: runs_per_week: 0 minutes_start_to_finish: 0 minutes_of_work: 0 rework_rate: "" # rough, mark estimates source_of_truth: "" # which system wins when two disagree acceptance: owner: "" checks: [] last_reviewed: "" 

Filling it in, field by field

Fill the file in a group session of about forty-five minutes. One person types, one person asks questions, and the people who do the work answer. Resist tidying. If somebody says a step happens differently on Fridays, write that down.

Steps, reads and writes

For each step, list the fields it reads and writes. This is the raw material for the field mapping that you will formalise later. Softomate's process page lists workflow logic, endpoint mappings and field mapping documents among the items approved before building starts. Your reads and writes are the first draft of those.

Decisions

Every branch needs a written rule. Softomate's process page says the rules for data transformation and error handling are mapped in discovery, before any build. That is the right moment. A decision marked UNKNOWN is not a gap in your code. It is a gap in the business, and the business must close it.

Listen for "it depends". It almost always means a rule exists in one person's head. Ask what it depends on, then write that down as the rule.

Failures

Fill the failures block as carefully as the steps. Softomate's page advises testing the failure case alongside the success case. Its examples are a CRM that is unavailable and a question nobody answers. In practice this is where much of your edge-case work sits.

If a failure ends with "someone deals with it", stop and ask who. A name is required. An automation that raises an error nobody owns will fail silently, which is worse than failing loudly.

Volumes and baseline

Record real figures where you can and mark guesses as guesses. Softomate's About page describes agreeing scope, baseline and review points ahead of the build. The same habit helps you. Without a baseline you cannot show that the automation saved anything.

A worked example

Here is an invented case. A small joinery firm confirms customer orders by hand. A customer emails to accept a quote, the office checks stock and the deposit, then books the job and replies. The team filled in the file in one session.

process: "Confirm an order" owner: "Office manager" trigger: "Customer emails to accept a quote" done_when: "Job is booked and the customer has a confirmation" roles: [office manager, workshop lead, customer] steps: - id: 1 action: "Read the acceptance email" role: "office manager" where: "shared inbox" reads: [customer_name, quote_ref] - id: 2 action: "Find the quote" role: "office manager" where: "spreadsheet" reads: [quote_ref] writes: [] - id: 3 action: "Check the deposit has arrived" role: "office manager" where: "bank portal" - id: 4 action: "Book the job" role: "workshop lead" where: "wall planner" decisions: - after_step: 3 question: "Has the deposit arrived?" rule: "No job is booked without the deposit" approver: "owner (exceptions)" failures: - step: 2 what_goes_wrong: "Quote reference not found" who_is_told: "office manager, same day" - step: 3 what_goes_wrong: "Deposit missing after 3 days" who_is_told: "office manager chases, owner informed on day 5" source_of_truth: "spreadsheet for quotes, planner for dates" acceptance: owner: "office manager" checks: [deposit rule, unknown quote, confirmation sent] 

Reading it back, the team noticed three things. The wall planner and a calendar both held dates. The deposit rule had exceptions nobody had written down. Quotes were retyped into the planner. Only the retyping needed software, and the other two were decisions.

From the spec to test cases

Each failure and each decision gives you a test. For the joinery example:

Scenario: deposit has arrived Given a quote Q123 is accepted by email And the deposit for Q123 is in the bank portal When the order is processed Then the job is booked and a confirmation is sent Scenario: deposit missing after three days Given a quote Q123 is accepted by email And no deposit is found after three days Then the office manager is chased And the owner is informed on day five Scenario: acceptance email names an unknown quote Given an email quotes reference Q999 When the order is processed Then it is routed to the office manager with a clear message 

Agree who accepts the tests before you build. Softomate's About page has the responsible owners reviewing the agreed acceptance checks before release. The acceptance block in the file is where those names live.

Mapping the spec onto a workflow tool

Once the file is agreed, the mapping to a tool is mostly mechanical. The trigger becomes the trigger node or the entry point. Each step becomes an action, and each decision becomes a conditional branch with the written rule as its condition.

Each failure becomes an error branch that notifies the named person, with the message text agreed in advance so the recipient knows what to do. Each wait becomes a scheduled check or a delay with a timeout. The source of truth tells you which system to read from and which to write to, and the acceptance block becomes your test plan.

If you cannot map a part of the file, that is useful information. It means the spec still has a gap. That is usually an UNKNOWN rule or a failure with no owner. Close the gap with the client before you build, because it will only get more expensive later.

Three questions to settle early

What happens if the process runs twice for the same input? A trigger can fire again after a retry or a duplicate email. Decide whether the second run should be ignored, merged or flagged, and write the rule in the file.

What happens when a downstream system is slow or down? Decide how long to retry, where the item waits meanwhile and who is told if it does not recover. These are the same questions as the failure block, asked at the technical level.

Who sees an error? Logs nobody reads are not a plan. Decide the channel and the person, and test that the message really arrives.

A smaller second example

Here is a shorter invented file, for routing enquiries from a website form.

process: "Route a website enquiry" owner: "Sales lead" trigger: "Form submitted on the website" done_when: "Enquiry is assigned and the sender has an acknowledgement" decisions: - question: "Is the enquiry about an existing customer?" rule: "Match on email address in the CRM" failures: - what_goes_wrong: "Form email is blank or malformed" who_is_told: "Sales lead, same day" source_of_truth: "CRM" 

Even this short file raises useful questions. What if the email matches two contacts? What if the CRM is down when the form is sent? Each question is a rule or a failure branch waiting to be written.

Questions for the first client call

  • Which single process are we automating, and what starts and ends it?
  • Who does it today, and can I watch one real run?
  • Which decisions have unwritten rules?
  • Which systems are involved, and do I have access?
  • Which fields move between them, and where do they disagree?
  • What happens when it fails, and who is told?
  • How often does it run, and how long does it take now?
  • Who signs off the result?

Traps worth avoiding

Automating the handbook. If you build from the documented process, you will miss every workaround. Watch a real run before you write a line.

Skipping the unknown rules. Leave UNKNOWN visible in the spec. A rule you invent to keep moving will become the client's complaint later.

Letting the failure block stay empty. An empty block usually means nobody has asked, not that nothing fails.

Forgetting ownership after launch. Decide who changes a rule in six months and how that change is recorded.

What to hand over

Plan the handover from the start. On its About page, Softomate says it settles training, documentation, ownership and support before launch, so the client's team can run what it receives. A spec file kept up to date is a good part of that documentation.

When the spec says do not automate

Sometimes the filled-in file shows a process that is too irregular, too judgement-heavy or too rare to automate. Sometimes it shows that two systems should simply share a lookup, or that a step should be removed. Those are good outcomes, and they are cheaper than a failed build.

What fits depends on the systems, the people and the volumes involved. Softomate scopes projects with the client first, and nothing here guarantees a particular result.

Softomate Solutions is a London-area company, based in Stanmore, that works on AI automation and software for UK businesses. Read about its process automation work at https://www.softomatesolutions.com/business-process-automation-london/?utm_source=DEV