How to implement version control and change tracking in workflows

Mateusz Jagodziński
Nov 20, 2025
-
2
min read

Workflow Builder is a frontend-first SDK that delivers the editing canvas and the JSON definition of each workflow, while your backend stores and versions that JSON. This article explains what to store, how to diff versions and build audit trails, which features the backend must provide, and how version control works in accounting, MRP, and AI orchestration.

This article describes an earlier version of Workflow Builder. See how Workflow Builder changed in November 2026 →

Is version control a make-or-break feature?

In software development, nobody would dream of writing code without Git. Yet many businesses still run workflows – mission-critical ones – without proper version control or change tracking. That's a problem.

For enterprises, workflows aren't just diagrams on a screen. They define how accounting entries are created, how purchase orders are approved, how AI models are orchestrated. When something goes wrong, you need to know what changed, who changed it, and when. And you need the power to roll back.

Workflow Builder, as a frontend-first SDK, delivers the editing canvas and the JSON definitions. But it deliberately doesn't handle persistence or version history. That responsibility falls to the client's backend. This might sound like a gap, but it's actually a strength: it lets you implement versioning with the same rigor and flexibility you already apply to your data and code.

This article breaks down how to implement robust version control and change tracking with Workflow Builder, why it matters, and what best practices to adopt.

Workflows as JSON: your single source of truth

Every workflow in Workflow Builder is exported as a JSON structure.

That JSON describes:

  • Each node on the canvas
  • Properties attached to the node (labels, input fields, dropdowns, etc.)
  • The connections linking nodes

Think of this JSON as the equivalent of source code for your workflows. Just as a repository of code tells you what the software will do, the workflow JSON tells you exactly how your business process is defined.

This JSON-first design is what makes version control possible. Instead of trying to track changes in visual diagrams, you track versions of the JSON – a format developers already know how to store, diff, and audit.

What every workflow JSON should include for versioning?

  • Complete node definitions
  • All properties (including defaults)
  • All connections
  • Metadata (ID, author, timestamp)
  • Version number or hash

Backend responsibilities: persistence and versioning

Workflow Builder is frontend-only. It doesn't ship with a database, an API, or a file system. That means your backend must take responsibility for storing workflow definitions.

Storing versions properly

When a user clicks "save" in the Workflow Builder frontend, the JSON representation is generated. At that point, your backend should:

  1. Receive the JSON payload.
  2. Store it in a database or storage system.
  3. Record it as a new version rather than overwriting the old one.

You can choose between:

  • Full snapshot storage: keep a complete copy of the JSON every time. Easiest to implement, more storage-heavy.
  • Differential storage: store only the changes (deltas) between versions. More complex, but efficient for large workflows.

Choosing a storage option

  • Document DBs (MongoDB, CouchDB): natural fit for JSON. Easy querying and storage.
  • Relational DBs (PostgreSQL with JSONB columns): structured queries + JSON flexibility. Great for enterprise auditing.
  • Object storage (AWS S3, MinIO): excellent for archiving version snapshots, less useful for querying diffs.

Adding metadata

A raw JSON file isn't enough. Always attach metadata:

  • Who made the change
  • When it was made
  • Optional commit message
  • Version ID or hash

This metadata turns raw JSON into an auditable artifact.

Change tracking: from diffs to audit trails

Saving versions is only step one. The real value comes from tracking changes between them.

How to diff workflow JSONs

  • Use JSON diff libraries (e.g., jsondiffpatch in Node.js).
  • Identify added, modified, or removed nodes.
  • Track changes to properties, not just structure.

This gives you granular insights: not just "workflow changed," but "approval step now requires 2 signatures instead of 1."

Why this matters

  • Audits: regulators can see exactly what logic governed an accounting entry.
  • Debugging: when something breaks, you can pinpoint the change that caused it.
  • Collaboration: teams can review and approve workflow changes like code commits.

Transparency and control: the enterprise payoff

When version control is implemented well, it unlocks powerful features for enterprises.

What you can enable

  • Audit trails: every workflow change is traceable to a person, time, and action.
  • Rollback: restore to a previous version when new changes cause issues.
  • Comparison: generate side-by-side views of old vs. new workflows.
  • Approval workflows: require peer review before promoting a workflow version to production.

For ERP or accounting systems, this level of transparency is gold. Instead of workflows acting like black boxes, every adjustment is documented and reversible.

Transparency goals for workflow versioning

  • Can you trace who changed what?
  • Can you roll back to any version?
  • Can you see differences clearly?
  • Can you enforce approvals for sensitive workflows?

If you can answer "yes" to all 4, your version control setup is enterprise-ready.

Workflow management features: what the backend must provide

Workflow Builder is not a workflow management system. It doesn't include:

  • Lists of workflows
  • Execution histories
  • Authentication or permissions

Those are backend responsibilities.

Examples of backend features to build

  • Workflow overview: query your database to show all saved workflows, sorted by version or owner.
  • Execution history: log every workflow run, linking it to the exact version of the workflow JSON that was used.
  • Auth/permissions: enforce role-based access so not every user can edit production workflows.

Missing "overview" and "execution history" features are not bugs – they're backend gaps that need to be filled to make Workflow Builder a complete enterprise solution.

Runtime transparency: seeing workflows in motion

Versioning covers workflow definitions. But enterprises also want visibility into workflow execution.

Workflow Builder's roadmap includes runtime transparency features – for example, showing which nodes are active during a run, or highlighting the current step. This doesn't replace versioning, but it complements it.

Imagine being able to:

  • See that a workflow is paused at "await approval."
  • Track execution times per step.
  • Debug where a workflow failed, visually.

To achieve this, your backend must log execution data and feed it back to the frontend for display. Version control tells you what the workflow was supposed to do; runtime transparency shows you what it actually did.

Use cases: version control in action

1. Accounting and audit compliance

A finance team uses Workflow Builder to manage accounting workflows. Every journal entry adjustment flows through a workflow. With version control:

  • Every change to accounting logic is tied to a timestamp and user.
  • Auditors can review the workflow version that produced a given entry.
  • Rollback is possible if a new logic rule produces errors.

Without versioning, these changes would be buried in opaque system logic.

2. Manufacturing resource planning (MRP)

A manufacturer defines MRP workflows that calculate purchasing needs.

  • Version A: stock below 500 → reorder 1,000 units.
  • Version B: updated to reorder 1,500 units instead.

With change tracking, managers can see exactly when and why the reorder quantity changed, and who approved it.

3. AI orchestration

An AI team orchestrates "hundreds of agents" with Workflow Builder. Each workflow defines how agents interact.

  • Versioning lets them safely iterate on complex agent logic.
  • Diffs reveal which APIs or prompts were modified.
  • Rollbacks restore the last working configuration after a failed experiment.

Without version control, the team would lose trust in their own automation.

Backend-agnostic flexibility: your stack, your rules

Workflow Builder doesn't dictate how you store or execute workflows. That's by design.

Integration options

  • Custom APIs: implement endpoints that consume workflow JSON.
  • Node.js/TypeScript: natural fit for JSON-heavy workloads.
  • Prefect: orchestration engine for Python-based pipelines.
  • Yjs, Windmill, Langflow: used for real-time collaboration or AI orchestration.

This flexibility means you can integrate version control into your existing architecture and compliance workflows. Whether you're bound by SOX, HIPAA, or GDPR, you decide how JSON versions are stored, audited, and retrieved.

3 pitfalls in workflow versioning

  1. Overwriting workflows without history
    → Leaves you blind. No rollback, no audit trail.

  2. Relying on local storage
    → Fine for demos, useless in enterprise. Persistence must be backend-driven.

  3. Skipping metadata
    → Without timestamps and user IDs, your version history is meaningless.

Conclusion: treat workflows like code

Workflows define how your business runs. They deserve the same discipline as software.

Workflow Builder gives you the canvas and the JSON. Your backend gives you persistence, history, and accountability. Together, they create a system where workflows are not just editable diagrams but versioned artifacts with full transparency.

Best practices recap:

  • Always save workflow JSONs with version IDs.
  • Store historical versions instead of overwriting.
  • Attach metadata for traceability.
  • Provide rollback, diffs, and audit trails.
  • Build backend features like workflow overviews, execution histories, and role-based permissions.

Final thought? Don't let workflows live as black boxes.

Treat them like Git-managed code. Because when accounting entries, AI pipelines, or manufacturing schedules are on the line, "we don't know what changed" is never an acceptable answer.

‍

FAQ
  • Does Workflow Builder include version control?

    No. Workflow Builder is a frontend-first SDK that delivers the editing canvas and the JSON definitions, but the SDK does not handle persistence or version history. Your backend stores each version with metadata, which enables audit trails, rollback to any version, side-by-side comparison, and approval steps before a version reaches production.

  • What should a workflow JSON include for versioning?

    A versioned workflow JSON should include complete node definitions, all properties (including defaults), all connections, metadata (ID, author, and timestamp), and a version number or hash. The JSON works like source code for a business process, so each stored version shows exactly how the process is defined at that point.

  • Should I store full workflow snapshots or only the changes?

    Both options work, with different trade-offs. Full snapshot storage keeps a complete copy of the JSON every time, which is easiest to implement but uses more storage. Differential storage keeps only the deltas between versions, which is more complex but efficient for large workflows. For storage, document databases suit JSON, PostgreSQL with JSONB columns suits enterprise auditing, and object storage such as AWS S3 suits archiving snapshots.

  • How do you track changes between workflow versions?

    Compare JSON versions with a JSON diff library, such as jsondiffpatch in Node.js, and identify added, modified, or removed nodes. Track changes to properties as well as structure. A good diff shows that an approval step requires 2 signatures instead of 1, not just that the workflow changed. Property-level diffs support audits, debugging, and team reviews of changes.

  • What workflow management features does the backend need to provide?

    The backend needs to provide an overview of saved definitions sorted by version or owner, an execution history that links each run to the exact JSON version used, and role-based access so not every user can edit production workflows. Workflow Builder is not a workflow management system, so missing overview and execution history features are backend gaps, not bugs.

  • Why does workflow version control matter for accounting, MRP, and AI teams?

    Version control makes business logic traceable and reversible. In accounting, every change is tied to a timestamp and user, and auditors can review the version that produced an entry. In manufacturing resource planning (MRP), managers see when a reorder quantity changed and who approved the change. AI teams use diffs and rollbacks to iterate on agent logic safely.

Mateusz Jagodziński
Principal Developer and Solutions Engineer

Mateusz is a Principal Developer and Solutions Engineer at Synergy Codes, where he works on Workflow Builder. With 7+ years of building interactive diagramming tools and data-heavy web applications, he joins client projects from the earliest conversations, shaping requirements into technical roadmaps and estimates, and stays hands-on through development.

Get more from me on:
Share:

Articles you might be interested in

How Workflow Builder changed in 2026 – from embeddable editor to AI workflow orchestration

Workflow Builder grew from an embeddable editor into an open-source AI workflow orchestration framework during 2026. See why the product changed, what is new for your team, and what stays the same.

Ida Ożarowska
Nov 23, 2026

Workflow versioning: how to update customer workflows 

How to publish new versions of customer-defined workflows while hundreds of runs are still active: graph versioning, execution snapshots, Temporal Worker Versioning, patching, and node contracts that keep older runs compatible. 

Ida Ożarowska
Nov 23, 2026

Temporal workflow retries, failures, and execution history: an operations guide 

An operations guide to failed workflows on Temporal: Retry Policy settings, node-level retry profiles and error policies in Workflow Builder, incomplete runs, execution history, and an investigation checklist. 

Weronika Pietrucha
Nov 23, 2026