n8n-nodes-docx-filler 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -7
- package/dist/{DocxFiller/DocxFiller.node.d.ts → DocxFillerAI/DocxFillerAI.node.d.ts} +1 -1
- package/dist/DocxFillerAI/DocxFillerAI.node.js +858 -0
- package/package.json +8 -4
- package/dist/DocxFiller/DocxFiller.node.js +0 -467
- /package/dist/{DocxFiller → DocxFillerAI}/docx.svg +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ n8n community node to automatically fill DOCX documents (French DC1, DC2, AE adm
|
|
|
14
14
|
- Automatic field detection (SIRET, TVA, email, address, etc.)
|
|
15
15
|
- Checkbox state copying
|
|
16
16
|
- Compatible with n8n AI Agents (`usableAsTool: true`)
|
|
17
|
+
- **Multiple input formats**: file path, binary property, or base64
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
19
20
|
|
|
@@ -46,8 +47,8 @@ Fills a template document with data extracted from a source document.
|
|
|
46
47
|
|
|
47
48
|
| Parameter | Description |
|
|
48
49
|
|-----------|-------------|
|
|
49
|
-
| `sourceDocument` | Document containing company data
|
|
50
|
-
| `templateDocument` | Empty template to fill
|
|
50
|
+
| `sourceDocument` | Document containing company data |
|
|
51
|
+
| `templateDocument` | Empty template to fill |
|
|
51
52
|
| `outputProperty` | Binary property name for output (default: "data") |
|
|
52
53
|
|
|
53
54
|
### Extract Data
|
|
@@ -56,7 +57,7 @@ Extracts company data from a filled document.
|
|
|
56
57
|
|
|
57
58
|
| Parameter | Description |
|
|
58
59
|
|-----------|-------------|
|
|
59
|
-
| `document` | Document to analyze
|
|
60
|
+
| `document` | Document to analyze |
|
|
60
61
|
|
|
61
62
|
### Analyze
|
|
62
63
|
|
|
@@ -66,6 +67,16 @@ Analyzes document structure for debugging.
|
|
|
66
67
|
|-----------|-------------|
|
|
67
68
|
| `document` | Document to analyze |
|
|
68
69
|
|
|
70
|
+
### Input Formats
|
|
71
|
+
|
|
72
|
+
All document parameters accept **3 input formats** (auto-detected):
|
|
73
|
+
|
|
74
|
+
| Format | Example | Use Case |
|
|
75
|
+
|--------|---------|----------|
|
|
76
|
+
| **File path** | `/home/node/shared_docs/doc.docx` | AI Agents, direct file access |
|
|
77
|
+
| **Binary property** | `data` | Standard n8n workflow |
|
|
78
|
+
| **Base64** | `UEsDBBQAAAAI...` | Inline data |
|
|
79
|
+
|
|
69
80
|
## Supported Fields
|
|
70
81
|
|
|
71
82
|
The node automatically recognizes these fields in French administrative documents:
|
|
@@ -82,19 +93,21 @@ The node automatically recognizes these fields in French administrative document
|
|
|
82
93
|
|
|
83
94
|
## Usage with AI Agent
|
|
84
95
|
|
|
85
|
-
This node is compatible with n8n AI Agents.
|
|
96
|
+
This node is compatible with n8n AI Agents. You can pass **file paths directly** - no need for binary data handling.
|
|
86
97
|
|
|
87
98
|
**Example agent prompt:**
|
|
88
99
|
```
|
|
89
100
|
You have access to the DOCX Filler tool to fill documents.
|
|
90
101
|
|
|
91
102
|
Use the "fill" operation with:
|
|
92
|
-
- sourceDocument:
|
|
93
|
-
- templateDocument:
|
|
103
|
+
- sourceDocument: /home/node/shared_docs/company_data.docx
|
|
104
|
+
- templateDocument: /home/node/shared_docs/template_DC2.docx
|
|
94
105
|
|
|
95
106
|
Execute directly without asking for confirmation.
|
|
96
107
|
```
|
|
97
108
|
|
|
109
|
+
> **Note**: When using file paths in Docker, ensure the directory is mounted and accessible from the container.
|
|
110
|
+
|
|
98
111
|
## Example Workflow
|
|
99
112
|
|
|
100
113
|
```
|
|
@@ -115,7 +128,7 @@ cd n8n-nodes-docx-filler
|
|
|
115
128
|
# Install dependencies
|
|
116
129
|
npm install
|
|
117
130
|
|
|
118
|
-
# Build
|
|
131
|
+
# Build & | package.json Version 1.0.0 → 1.1.0
|
|
119
132
|
npm run build
|
|
120
133
|
|
|
121
134
|
# Watch mode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class DocxFillerAI implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
4
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
5
|
}
|