# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.documentero.com/documentation/integrations/n8n.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
