# Apply tracked edits to Word files with the SuperDoc Node.js SDK

Start with a synthetic contract, audit report or credit memo. The example applies fixed proposals as native Word tracked changes. Open the output in Word or the browser demo to review the proposed wording, accept or reject it, and keep an editable DOCX.

Your application supplies the model, instructions, approved facts and review policy. This script starts at the document step with fixed inputs you can reproduce locally. It checks the expected original text, applies each proposal to its intended passage or table cell, and saves a separate copy with the changes pending.

## Run locally

Download [the Node.js source](https://www.superdoc.dev/samples/verticals/propose-agent-edits.mjs) and at least one original DOCX below into one directory. Use a fresh output directory when rerunning a sample.

```sh
npm init -y
npm install --save-exact @superdoc/sdk@2.33.0
node propose-agent-edits.mjs . ./output legal-tech
```

Use `law-firms`, `tax-audit` or `finance-banking` as the final argument to choose another sample. Leave it off to run all four with the four inputs in the same directory.

Tested with Node.js 24.11.1 and `@superdoc/sdk` 2.33.0. See the [Node.js SDK guide](https://docs.superdoc.dev/agents/automation/node-sdk/) and [tracked change review controls](https://docs.superdoc.dev/editor/custom-ui/tracked-changes/).

## Legal software

The contract playbook calls for a cure period. The replacement changes immediate termination for material breach to termination if the breach remains uncured for 30 days after written notice. Check the original notice-address comment.

[Download the original commercial agreement](https://www.superdoc.dev/samples/verticals/legal-tech-agent.docx) · [Download the agreement with the tracked cure period](https://www.superdoc.dev/samples/verticals/legal-tech-agent-proposed.docx) · [Review the cure period in your browser](https://www.superdoc.dev/examples/proof-agent-legal-tech/index.html)

## Law firms

A lawyer wants the client’s liability capped at fees paid in the 12 months before the claim. The proposed edit replaces the existing cap in the firm’s draft. Check the adjacent confidentiality comment.

[Download the original client agreement](https://www.superdoc.dev/samples/verticals/law-firms-agent.docx) · [Download the agreement with the tracked liability cap](https://www.superdoc.dev/samples/verticals/law-firms-agent-proposed.docx) · [Review the liability cap in your browser](https://www.superdoc.dev/examples/proof-agent-law-firms/index.html)

## Tax and audit

An approved adjustment changes operating expenses from $1.24 million to $1.28 million. The proposal targets the Operating expenses row under Recorded result and the narrative sentence that cites it. Check both changes, the workpaper footnote and the repeating table header.

[Download the original audit report](https://www.superdoc.dev/samples/verticals/tax-audit-agent.docx) · [Download the report with the two tracked edits](https://www.superdoc.dev/samples/verticals/tax-audit-agent-proposed.docx) · [Review the table and narrative edits in your browser](https://www.superdoc.dev/examples/proof-agent-tax-audit/index.html)

## Finance and banking

An approved condition requires the borrower to provide a monthly receivables aging report. The proposed edit changes one sentence in the receivables risk paragraph. Check that the $2,400,000 facility amount and 31% concentration figure stay intact.

[Download the original credit committee memo](https://www.superdoc.dev/samples/verticals/finance-banking-agent.docx) · [Download the memo with the tracked reporting condition](https://www.superdoc.dev/samples/verticals/finance-banking-agent-proposed.docx) · [Review the reporting condition in your browser](https://www.superdoc.dev/examples/proof-agent-finance-banking/index.html)
