← Back to NorthLab

Changed Files

A walkthrough for the Workflow Automation Repair & Build Package. It explains what was broken, what changed in the repair, why it matters, and how each change maps to a real Zapier / Make / n8n / webhook / API repair.

Overview of files

FileRole
before/index.html, before/script.jsThe broken workflow (intentional failures, marked BUG:)
after/index.html, after/script.jsThe repaired workflow (fixes marked FIX:)
build-demo/index.html, build-demo/script.jsNew one-process automation built from scratch
index.htmlComparison / landing page linking all three
*/styles.cssShared dashboard styling
proof/diff.patchCode diff of the before → after repair

The most meaningful repair is in before/script.jsafter/script.js. Details below.

What was broken → what changed → why it matters

1. No validation

2. No duplicate check

3. Unreliable webhook / API handling

4. Notification failed silently

5. Missing confirmation email

6. Vague errors, no log (logging / error visibility)

7. Manual admin still required

Build example (new automation)

build-demo/script.js implements the same reliable pattern as a clean build (not a repair):

lead form → validation → CRM/table → internal notification → email confirmation → workflow log

It includes a "Run sample lead" button that performs a guaranteed successful end-to-end run for demonstration and screenshots.

See the code diff for the line-level before → after repair, and the workflow map for the visual flow and real-tool mapping.