n8n
n8n is one of the most powerful workflow automation platforms available today, having risen to fame due to its extensive AI capabilities and agent-building features. With n8n, you can connect apps, build AI agents, and automate complex workflows with ease.
With the DocsAutomator community node, you can create documents, manage automations, and access DocsAutomator features directly from your n8n workflows.
Unlike other integrations, n8n offers full automation management capabilities, allowing you to programmatically create, update, and delete automations in addition to generating documents.
Key Benefits
Self-hosted option: Run n8n on your own infrastructure for complete data control
Generous free tier: n8n cloud offers a free plan for getting started
Full automation management: Create, update, duplicate, and delete automations programmatically
Flexible data transformation: Use n8n's powerful expression system to transform data before document generation
Installation
The DocsAutomator node is available as an n8n community node. Installing it takes just a few clicks.
Install from the Nodes Panel (Recommended)
In your n8n workflow, click the + button to add a new node
Search for "DocsAutomator"
Click on the DocsAutomator node - n8n will prompt you to install it
Click Install to add it to your workspace
Alternative: Install from Settings
Go to Settings > Community Nodes
Click Install a community node
Enter
n8n-nodes-docsautomatorClick Install
Self-hosted n8n
For self-hosted deployments, follow the n8n community nodes installation guide for your specific setup.
Setting Up Credentials
Before using the DocsAutomator node, you need to configure your API credentials.
Step 1: Get Your API Key
Log in to your DocsAutomator account
Navigate to Settings > API Key
Copy your API key
Step 2: Add Credentials in n8n
In n8n, go to Credentials > Add Credential
Search for "DocsAutomator API"
Paste your API key into the API Key field
Click Save
Tip: You can also add credentials directly when configuring a DocsAutomator node by clicking on the credential dropdown and selecting "Create New".
Creating Documents
The primary use case for the DocsAutomator node is generating documents from your automations.
Step-by-Step Guide
1. Add the DocsAutomator Node
In your n8n workflow, click the + button to add a new node and search for "DocsAutomator".
2. Select Your Credentials
Choose your configured DocsAutomator API credentials from the dropdown.
3. Configure the Operation
Resource: Select
DocumentOperation: Select
Create
4. Select an Automation
Choose the automation you want to use from the Automation dropdown.
Note: Only automations with API or n8n as the data source will appear in this list. Make sure your automation is configured with the correct data source in DocsAutomator.
5. Map Placeholder Values
For each placeholder in your template, provide a value. You can:
Enter static text: Type a value directly
Use n8n expressions: Click the expression button to map data from previous nodes
Example expressions:
6. Configure Line Items (Optional)
If your template includes line items, expand the Line Items section. See the Working with Line Items section below for details.
7. Set Processing Options
Preview Mode: Enable to generate a preview document (doesn't count against your credits)
Async Processing: Enable to return immediately with a job ID instead of waiting for the document
8. Test the Workflow
Click Test Step to generate a document and verify your configuration.
Working with Line Items
Line items allow you to include repeating data in your documents, such as invoice line items, product lists, or table rows.
JSON Format
Line items must be provided as a JSON array of objects. Each object represents one row, with keys matching your placeholder names.
Example:
Multiple Line Item Sets
If your template has multiple line item sections (e.g., products and services separately), you can add multiple line item entries:
Click Add Line Item
Select the line item type (e.g., "Line Items 1", "Line Items 2")
Provide the JSON array for that section
Transforming Data for Line Items
If your source data isn't already in the correct format, use n8n's built-in nodes to transform it:
Code node: Write JavaScript to transform complex data structures
Split Out node: Convert arrays into individual items
Aggregate node: Combine multiple items into an array
Example transformation in Code node:
Managing Automations
The n8n node provides full CRUD (Create, Read, Update, Delete) operations for managing your DocsAutomator automations programmatically.
Available Operations
Get Many
List all automations in your workspace
Get
Retrieve a single automation by ID
Create
Create a new automation
Update
Modify an existing automation's settings
Duplicate
Create a copy of an automation
Delete
Remove an automation
Get Many (List Automations)
Retrieve all automations in your workspace. Useful for:
Building dynamic workflows that iterate over automations
Creating dashboards or reports
Syncing automation data with other systems
Get (Single Automation)
Retrieve detailed information about a specific automation by its ID.
Create Automation
Create a new automation programmatically. Required fields:
Title: A name for the automation
Data Source: Choose from Airtable, API, ClickUp, Glide, Google Sheets, n8n, Noloco, SmartSuite, or Zapier
Use case: Automatically set up automations for new clients or projects.
Update Automation
Modify an existing automation's settings:
Locale (language/region)
PDF expiration
Template link
And more
Duplicate Automation
Create a copy of an existing automation. The new automation will have all the same settings and field mappings.
Use case: Create templates that can be quickly duplicated for new use cases.
Delete Automation
Remove an automation from your workspace.
Warning: This action cannot be undone. The automation and all its settings will be permanently deleted.
Discovering Placeholders
Before creating documents, you may want to discover what placeholders are available in an automation's template.
Using the List Placeholders Operation
Set Resource to
PlaceholderSet Operation to
ListSelect the Automation you want to inspect
Understanding the Response
The response includes a structured list of placeholders:
main: Regular placeholders in the document body
line_items_1, line_items_2, etc.: Placeholders within line item sections
Building Dynamic Workflows
Use placeholder discovery to build workflows that automatically adapt to different automations:
Get automation details using Automation > Get
List placeholders using Placeholder > List
Build a form or interface dynamically based on available placeholders
Create documents with the collected data
Template Management
The DocsAutomator node includes a template operation for duplicating Google Doc templates.
Duplicate Google Doc
Create a copy of a Google Doc template. This is useful when you want to:
Create variations of a template for different use cases
Set up new automations with pre-configured templates
Backup templates before making changes
Parameters:
Template URL: The Google Docs URL of the template to copy
New Name (optional): Name for the copied document
Tips & Best Practices
Use Preview Mode for Testing
When developing and testing your workflows, enable Preview Mode to:
Verify placeholder mapping is correct
Check document formatting
Avoid using credits during development
Error Handling
Use n8n's built-in error handling features:
Enable Continue On Fail to prevent the workflow from stopping on errors
Use an Error Trigger workflow to handle failures gracefully
Check the error output for detailed error messages
Async Processing for Large Documents
For documents that take longer to generate:
Enable Async Processing to receive a job ID immediately
Use a Wait node to pause for processing
Check the job status using the DocsAutomator API
Expression Tips
Common n8n expressions for DocsAutomator:
FAQs
Which automations appear in n8n?
Only automations with API or n8n as the data source will appear in the automation dropdown when creating documents. To use an automation with n8n:
Go to DocsAutomator
Open your automation settings
Change the Data Source to "API" or "n8n"
Save the automation
How do I handle errors in my workflow?
There are several ways to handle errors:
Continue On Fail: Enable this option on the DocsAutomator node to prevent workflow failure
Error Trigger: Create a separate workflow that triggers when errors occur
IF node: Check for error conditions and handle them appropriately
Resources
Last updated
