---
title: "Save Document"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/docx/savedocument
markdown: https://docs.nodetool.ai/nodes/lib/docx/savedocument.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/docx/savedocument.md
---

# Save Document

**Type:** `lib.docx.SaveDocument`

**Namespace:** `lib.docx`

## Description

Writes the document to a file
    document, docx, file, save, output

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| document | `document` | The document to write | `{"type":"document","uri":"","asset_id":null,"da...` |
| path | `file_path` | The folder to write the document to. | `{"type":"file_path","path":""}` |
| filename | `str` |          The filename to write the document to.         You can use time and date variables to create unique names:         %Y - Year         %m - Month         %d - Day         %H - Hour         %M - Minute         %S - Second          | `` |

## Outputs

_(none)_

## Related Nodes

Browse other nodes in the [lib.docx](./) namespace.
