# N8N

You can integrate Documentero with N8N to generate Word, Excel or PDF documents in your workflows.

### Installation

* Open N8N instance
* Go to settings
* Open Community Nodes
* Click Install
* Provide community node name: "**n8n-nodes-documentero**"
* You can use&#x20;

### Integration Page

Link: <https://www.npmjs.com/package/n8n-nodes-documentero>

### Tutorial Video

{% embed url="<https://www.youtube.com/watch?v=SHwmKYHk2Fs>" %}

### Usage

* Create or upload template(s) (.docx/.xlsx) in your Documentero account: [https://app.documentero.com](https://app.documentero.com/)

  [![Documentero Sample Template](https://raw.githubusercontent.com/documentero/n8n-nodes-documentero/HEAD/assets/documenterosample.png)](https://github.com/documentero/n8n-nodes-documentero/blob/HEAD/assets/documenterosample.png)
* Optional: After adding the template, set the output format and default filename on the template overview page in Documentero.
* Add a Documentero node to your workflow.

  [![Documentero Workflow](https://raw.githubusercontent.com/documentero/n8n-nodes-documentero/HEAD/assets/n8nflow.png)](https://github.com/documentero/n8n-nodes-documentero/blob/HEAD/assets/n8nflow.png)
* Choose an operation:
  * Generate Document — pass the generated file to downstream nodes (e.g., OneDrive, Google Drive, Outlook).
  * Generate and Email Document — let Documentero email the generated file for you.
* Select the template to use from the “Document Template” dropdown.
* In Documentero (Template Overview → API/JSON), copy the JSON structure and paste it into the node’s Data (JSON) field, then fill in values.

  [![Documentero Template Overview](https://raw.githubusercontent.com/documentero/n8n-nodes-documentero/HEAD/assets/documenterodef.png)](https://github.com/documentero/n8n-nodes-documentero/blob/HEAD/assets/documenterodef.png)
* Run the workflow.
* The node outputs the generated file under binary > data for further processing (.docx / .pdf / .xlsx).

  [![Documentero Flow](https://raw.githubusercontent.com/documentero/n8n-nodes-documentero/HEAD/assets/n8nnodesample.png)](https://github.com/documentero/n8n-nodes-documentero/blob/HEAD/assets/n8nnodesample.png)
