Digital Automation · Focus area 1: Workflow platforms
DA2: n8n in depth
Goal: run n8n confidently: choose cloud or self-hosted, build with nodes, credentials and expressions, branch and merge data, loop over many items, and read the executions log to fix a failed run.
You'll need: Docker (core Module 69) or an n8n Cloud trial, a Google account with a test spreadsheet, and the Sharma Textiles order map from DA1.
Time: reading about 2 hours · practice (the Try it tasks) about 3 hours · assignment about 3 to 4 hours.
Where this is used: n8n is popular with small businesses, agencies and in-house operations teams that want visual workflows they can host themselves. Freelance automation builders often deliver client work as n8n workflows.
How it differs: in core Module 88 you met n8n as one example of automation. Here you go deeper into how it handles items, branches, merges and failures, which is what separates a demo from a workflow a business can rely on.
Lessons
- 1Cloud or self-hostedReading 15–25 minutes, plus practice✓
- 2Nodes, credentials and expressionsReading 15–25 minutes, plus practice✓
- 3Branching with IF and SwitchReading 15–25 minutes, plus practice✓
- 4Merging and looping over itemsReading 15–25 minutes, plus practice✓
- 5Reading executions and fixing failed runsReading 15–25 minutes, plus practice✓
🛠️Assignment: The Sharma Textiles order workflow in n8n
This builds the base that the path's projects reuse: the same patterns appear in the inbox router and the payment workflow.
- Run n8n (Cloud trial or Docker) with the time zone set to Asia/Kolkata.
- Build a webhook-triggered order workflow that writes each order to a sheet using expressions, with a credential named for its purpose.
- Add an IF for cash orders over ₹5,000 and a Switch for order type with a fallback to the manager.
- Add a daily 8 am workflow that merges yesterday's orders with CRM contacts by phone and checks the item count.
- Add an error workflow that alerts you with the failed workflow, node and execution link.
- Export both workflows as JSON and write a half-page note on how to run and fix them.
Self-check before you finish:
- [ ] Test data is pinned, and every branch, including the fallback, has been tested.
- [ ] Merges match on a unique field, and the item count is checked.
- [ ] A deliberate failure produced an alert and was fixed by retrying.
- [ ] The exported JSON contains no passwords or API keys.
- [ ] Your note explains one design choice, such as why you match on phone.
✅Module check
Explain in a few sentences, in your own words:
How do you build an n8n workflow that a business can rely on?
Show a good answer
A good answer mentions: choosing Cloud or self-hosting by weighing control, data location, cost and upkeep, with HTTPS, backups, a safe encryption key and the right time zone when self-hosting; nodes passing items, credentials kept separate and expressions mapping fields; IF and Switch nodes with named decisions, correct data types and a fallback; merges on a unique field with item counts checked, and batches for large lists; and executions plus an error workflow to find failures quickly, fix them and retry.
📚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 ·
