Digital Automation · Focus area 2: Code inside the workflow
DA6: Reliable automations
Goal: make automations that a business can depend on: retries for passing failures, alerts that reach a person, safe handling of repeated events, run logs and health checks, and careful control of credentials and changes.
You'll need: your n8n set-up, the Sharma Textiles order workflow, the error workflow you built in DA2, and the code steps from DA5.
Time: reading about 2 hours · practice (the Try it tasks) about 3 hours · assignment about 3 to 4 hours.
Where this is used: once a business relies on an automation, a silent failure costs more than the manual work it replaced. Clients judge an automation specialist less by how clever a workflow is and more by whether it keeps working, and whether they hear about it quickly when it doesn't.
How it differs: a software team usually has testers, monitoring tools and an on-call rota. An automation builder is often the only technical person involved, so reliability has to be designed into the workflow itself.
Lessons
- 1Retries and passing failuresReading 15–25 minutes, plus practice✓
- 2Error paths and alerts that reach a personReading 15–25 minutes, plus practice✓
- 3Duplicates and safe repeatsReading 15–25 minutes, plus practice✓
- 4Run logs and health checksReading 15–25 minutes, plus practice✓
- 5Credentials, access and safe changesReading 15–25 minutes, plus practice✓
🛠️Assignment: Make the Sharma Textiles workflows dependable
This makes the payment, inbox and CRM tidy-up projects safe to run for a real business.
- List the errors each external call can return, mark them passing or lasting, and set retries with backoff for passing ones.
- Improve the error workflow: workflow, node, error, link, business clue and a named owner; alert only on errors that need a person.
- Make the payment workflow idempotent with an event table (unique event ID, a one-winner claim, "done" recorded last), and prove it by sending one event three times in a row and five times at once.
- Add a run log and an hourly health check during shop hours, plus a weekly summary for the owner.
- Write the credentials list with accounts, access, owners and expiry dates, and a short rule for making changes safely.
Self-check before you finish:
- [ ] A forced 503 is retried and succeeds without an alert.
- [ ] A forced 401 produces one clear alert to a named person.
- [ ] Sending the same payment event three times creates one invoice.
- [ ] Switching off the order trigger makes the health check alert within two hours.
- [ ] Every credential uses a business-owned account with only the access it needs.
✅Module check
Explain in a few sentences, in your own words:
What makes an automation reliable enough for a business to depend on?
Show a good answer
A good answer mentions: telling passing errors from lasting ones, and retrying only passing ones with backoff and attention to rate limits; error paths and alerts that name the workflow, node, error, run link and business record, sent to an owner without alert fatigue; idempotent steps using recorded IDs, upserts and quick webhook replies; run logs and health checks that catch workflows that silently stop; and credentials kept in the store with least access on company accounts, with changes tested on a copy and versions kept.
📚Official references
Official documentation and guidance for this module's topics, chosen on 2 November 2026. Tools, laws and standards change, so check the current version before you rely on a detail. If a link has moved, search the same site.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
