Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

n8n-nodes-docuseal

serkanhaslak298MIT1.1.1TypeScript support: included

Manage DocuSeal documents, templates, and submissions within n8n workflows.

n8n-community-node-package, n8n, n8n-nodes, docuseal, document-signing, document-management, e-signature, digital-signature, pdf-forms, forms, pdf, workflow, automation, api-integration, typescript

readme

n8n-nodes-docuseal

This package contains n8n nodes for DocuSeal, a document signing solution that makes it easy to create, send, and manage document signing requests.

n8n is a fair-code licensed workflow automation platform.

DocuSeal Nodes for n8n

Installation

Follow these steps to install this package in your n8n instance:

For users on n8n v0.187.0+:

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Select Install
  4. Enter n8n-nodes-docuseal in the "Enter npm package name" field
  5. Select Install
  6. Wait for the installation to complete (this may take a few minutes)
  7. Refresh your browser to see the new nodes

Manual Installation

If you're using a self-hosted n8n instance:

# In your n8n installation directory
npm install n8n-nodes-docuseal

# Restart n8n to load the new nodes
n8n start

Docker Installation

For Docker users, add the package to your Dockerfile or docker-compose.yml:

# In your Dockerfile
RUN npm install -g n8n-nodes-docuseal

Or using environment variables:

# In docker-compose.yml
services:
  n8n:
    image: n8nio/n8n
    environment:
      - N8N_NODES_INCLUDE=n8n-nodes-docuseal

Prerequisites

  • n8n version 0.187.0 or higher
  • Node.js version 16 or higher
  • A DocuSeal account with API access

Verification

After installation, verify the nodes are available:

  1. Create a new workflow
  2. Click the "+" button to add a node
  3. Search for "DocuSeal" - you should see both "DocuSeal" and "DocuSeal Trigger" nodes

Features

The package includes two powerful nodes:

1. DocuSeal

The main API node with comprehensive support for all DocuSeal API operations:

Templates

  • Get: Retrieve a template by ID
  • Get Many: List templates with filtering options
  • Create from PDF: Create templates from PDF files
  • Create from DOCX: Create templates from Word documents
  • Create from HTML: Create templates from HTML content
  • Clone: Duplicate existing templates
  • Merge: Combine multiple templates into one
  • Update: Modify template properties
  • Update Documents: Replace template documents
  • Archive: Remove templates from active use

Submissions

  • Create: Create new document signing requests from templates
  • Create from PDF: Create submissions directly from PDF files
  • Create from HTML: Create submissions from HTML content
  • Get: Retrieve submission details by ID
  • Get Documents: Download completed documents from submissions
  • Get Many: List submissions with advanced filtering
  • Archive: Archive completed submissions

Submitters

  • Get: Retrieve submitter information by ID
  • Get Many: List submitters with filtering options
  • Update: Modify submitter details and field values

Forms

  • Get Started: Track when forms are started
  • Get Viewed: Monitor form view events

AI Tools

  • Generate Document: Create documents using AI with customizable prompts, languages, and styles

2. DocuSeal Trigger

A webhook-based trigger node that:

  • Listens for DocuSeal events like submission completions and creations
  • Provides detailed setup instructions for webhook configuration
  • Supports event filtering and additional data fetching

Credentials

The nodes use a custom credential type with the following fields:

  • Production API Key: Your main DocuSeal API key
  • Test API Key: Optional API key for your test environment
  • Base URL: API endpoint (defaults to https://api.docuseal.com)

Usage Examples

Creating a Document Signing Request

  1. Add the DocuSeal node to your workflow
  2. Select the Submission resource and Create operation
  3. Choose a template from the dropdown or specify an ID
  4. Add submitters using the intuitive UI (no JSON required!)
  5. Optionally pre-fill field values and set preferences

Creating Templates from Documents

  1. Add the DocuSeal node to your workflow
  2. Select the Template resource
  3. Choose Create from PDF/DOCX/HTML operation
  4. Upload your document or provide a URL
  5. Configure field settings and folder organization

Generating Documents with AI

  1. Add the DocuSeal node to your workflow
  2. Select the AI Tool resource and Generate Document operation
  3. Specify:
    • Document Type: "Non-disclosure agreement"
    • Description: "Standard NDA for a contractor relationship between Acme Inc. and John Doe"
    • Language: Choose from 12 supported languages
    • Style: Formal, Friendly, or Simple

Listening for Document Completions

  1. Add the DocuSeal Trigger node as the start of your workflow
  2. Select Submission Completed as the event type
  3. Configure the webhook in your DocuSeal dashboard as instructed

Troubleshooting

Common Issues

Node Not Appearing After Installation

  1. Clear browser cache: Hard refresh your browser (Ctrl+F5 or Cmd+Shift+R)
  2. Restart n8n: If self-hosted, restart your n8n instance
  3. Check version compatibility: Ensure you're running n8n v0.187.0+
  4. Verify installation: Check if the package appears in your node_modules

API Authentication Errors

Error: "Invalid API key format"

  • Ensure your API key is at least 20 characters long
  • Check for leading/trailing whitespace
  • Verify the key contains only alphanumeric characters, hyphens, and underscores

Error: "Unauthorized (401)"

  • Verify your API key is correct and active
  • Check if you're using the right environment (production vs test)
  • Ensure your DocuSeal account has API access enabled

File Upload Issues

Error: "File size exceeds maximum"

  • Maximum file size is 50MB
  • Compress large files before uploading
  • Consider splitting large documents

Error: "Unsupported file type"

  • Supported formats: PDF, DOCX, DOC, JPEG, PNG, GIF, TXT
  • Ensure the file has the correct MIME type

Webhook/Trigger Issues

Webhook not receiving events

  1. Verify the webhook URL is correctly configured in DocuSeal
  2. Check that your n8n instance is accessible from the internet
  3. Ensure the webhook endpoint is active and listening
  4. Test with a simple HTTP request tool first

Performance Tips

  • Batch operations: Use "Get Many" operations instead of multiple "Get" calls
  • Pagination: For large datasets, implement proper pagination
  • Caching: Cache template data when processing multiple submissions
  • Error handling: Implement retry logic for network-related failures

Debug Mode

Enable debug logging to troubleshoot issues:

  1. Set environment variable: N8N_LOG_LEVEL=debug
  2. Check n8n logs for detailed error messages
  3. Look for DocuSeal API response details

Advanced Examples

Bulk Document Processing

// Process multiple documents with error handling
const results = [];
const errors = [];

for (const document of $input.all()) {
  try {
    const result = await $node['DocuSeal'].json({
      resource: 'submission',
      operation: 'create',
      templateId: document.templateId,
      submitters: document.submitters,
    });
    results.push(result);
  } catch (error) {
    errors.push({ document: document.id, error: error.message });
  }
}

return [{ results, errors }];

Dynamic Template Selection

// Select template based on document type
const documentType = $json.documentType;
const templateMap = {
  contract: 'template_123',
  nda: 'template_456',
  invoice: 'template_789',
};

const templateId = templateMap[documentType] || 'template_default';

return {
  templateId,
  submitters: $json.submitters,
  message: `Using template for ${documentType}`,
};

Conditional Workflow Based on Status

// Route workflow based on submission status
const status = $json.status;

switch (status) {
  case 'completed':
    return { route: 'process_completed', data: $json };
  case 'pending':
    return { route: 'send_reminder', data: $json };
  case 'declined':
    return { route: 'handle_rejection', data: $json };
  default:
    return { route: 'log_unknown', data: $json };
}

Resources

Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Setting up the development environment
  • Running tests
  • Submitting pull requests
  • Code style guidelines

Changelog

See CHANGELOG.md for a detailed history of changes and updates.

Support

If you need assistance or want to report issues:

Community Support

Commercial Support

  • For enterprise support, contact DocuSeal
  • For n8n enterprise features, visit n8n.io

Before Reporting Issues

  1. Check the troubleshooting section above
  2. Search existing issues for similar problems
  3. Include your n8n version, node version, and error details
  4. Provide steps to reproduce the issue

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Added

  • Comprehensive documentation improvements
  • JSDoc comments for all public methods
  • Advanced troubleshooting guide
  • Contributing guidelines
  • Performance optimization tips

[1.2.0] - 2024-01-15

Added

  • 🔒 Security Enhancements
    • API key validation with strict format requirements
    • Input sanitization to prevent injection attacks
    • File upload security with type, size, and signature validation
    • URL validation with HTTPS-only and SSRF protection
    • Enhanced error handling with secure error messages

Changed

  • Improved error messages for better debugging
  • Enhanced API key validation logic
  • Strengthened file upload validation

Security

  • Added protection against SSRF attacks
  • Implemented secure file type validation
  • Enhanced input sanitization across all operations
  • Improved API key security validation

[1.1.0] - 2024-01-10

Added

  • Performance Optimizations
    • Enhanced pagination support for large datasets
    • Improved memory management for file operations
    • Request batching for bulk operations
    • Progress logging for long-running operations
    • Optimized API request handling

Changed

  • Improved pagination logic for better performance
  • Enhanced memory usage for large file processing
  • Optimized batch processing operations

Fixed

  • Memory leaks in large dataset operations
  • Pagination issues with large result sets
  • Performance bottlenecks in bulk operations

[1.0.0] - 2024-01-05

Added

  • 🎯 Enhanced User Experience
    • Intuitive submitter management UI
    • Smart template selection with search and filtering
    • Improved field value management
    • Better error messages and validation
    • Enhanced form handling

Changed

  • Redesigned submitter input interface
  • Improved template selection workflow
  • Enhanced field value input handling
  • Better validation and error reporting

Fixed

  • UI responsiveness issues
  • Form validation edge cases
  • Template loading performance

[0.9.0] - 2024-01-01

Added

  • 🤖 AI Integration
    • AI-powered document generation
    • Support for 12 languages
    • Multiple document styles (Formal, Friendly, Simple)
    • Customizable AI prompts
    • Smart document type detection

Changed

  • Enhanced AI tool resource with better options
  • Improved language support for generated documents
  • Better AI prompt handling

[0.8.0] - 2023-12-20

Added

  • 🔧 Code Quality Improvements
    • Comprehensive test suite with 43 test cases
    • TypeScript strict mode compliance
    • ESLint and Prettier configuration
    • Automated testing pipeline
    • Code coverage reporting

Changed

  • Migrated to TypeScript strict mode
  • Improved code organization and structure
  • Enhanced error handling throughout the codebase

Fixed

  • TypeScript compilation errors
  • Code style inconsistencies
  • Test reliability issues

[0.7.0] - 2023-12-15

Added

  • 📋 Template Management
    • Create templates from PDF, DOCX, and HTML
    • Template cloning and merging capabilities
    • Advanced template filtering and search
    • Template archiving and organization
    • Bulk template operations

Changed

  • Enhanced template creation workflow
  • Improved template management UI
  • Better template organization features

[0.6.0] - 2023-12-10

Added

  • 📄 Submission Management
    • Create submissions from templates
    • Direct PDF and HTML submission creation
    • Advanced submission filtering
    • Document download capabilities
    • Submission archiving

Changed

  • Improved submission creation process
  • Enhanced document handling
  • Better submission status tracking

[0.5.0] - 2023-12-05

Added

  • 👥 Submitter Management
    • Comprehensive submitter operations
    • Field value management
    • Submitter filtering and search
    • Bulk submitter operations

Changed

  • Enhanced submitter workflow
  • Improved field value handling
  • Better submitter organization

[0.4.0] - 2023-12-01

Added

  • 📊 Form Analytics
    • Form start tracking
    • Form view monitoring
    • Analytics data collection
    • Event-based insights

Changed

  • Enhanced form tracking capabilities
  • Improved analytics data structure

[0.3.0] - 2023-11-25

Added

  • 🔔 Webhook Trigger
    • Real-time event notifications
    • Submission completion triggers
    • Form interaction triggers
    • Configurable webhook endpoints
    • Event filtering capabilities

Changed

  • Enhanced trigger node functionality
  • Improved webhook configuration
  • Better event handling

[0.2.0] - 2023-11-20

Added

  • 🔐 Authentication System
    • Production and test API key support
    • Environment-based configuration
    • Secure credential management
    • API endpoint customization

Changed

  • Enhanced security for API communications
  • Improved credential validation
  • Better environment handling

[0.1.0] - 2023-11-15

Added

  • 🚀 Initial Release
    • Basic DocuSeal API integration
    • Core template operations
    • Basic submission handling
    • n8n community node structure
    • Initial documentation

Features

  • Template CRUD operations
  • Submission creation and management
  • Basic API authentication
  • n8n workflow integration

Legend

  • 🚀 Major Features: Significant new functionality
  • Performance: Speed and efficiency improvements
  • 🔒 Security: Security enhancements and fixes
  • 🎯 UX: User experience improvements
  • 🤖 AI: Artificial intelligence features
  • 🔧 Quality: Code quality and testing improvements
  • 📋 Templates: Template-related features
  • 📄 Submissions: Submission-related features
  • 👥 Submitters: Submitter management features
  • 📊 Analytics: Analytics and tracking features
  • 🔔 Triggers: Webhook and trigger features
  • 🔐 Auth: Authentication and security features

Migration Guides

Upgrading to v1.2.0

Security Enhancements

  • API keys now require minimum 20 characters
  • File uploads are validated for type and size
  • URLs must use HTTPS protocol
  • Input sanitization may affect special characters

Action Required:

  • Verify your API keys meet the new format requirements
  • Update any workflows using HTTP URLs to HTTPS
  • Review file upload operations for size limits (50MB max)

Upgrading to v1.1.0

Performance Improvements

  • Pagination is now automatically handled for large datasets
  • Memory usage is optimized for file operations
  • Batch operations are more efficient

No Breaking Changes

  • All existing workflows will continue to work
  • Performance improvements are automatic

Upgrading to v1.0.0

UI Enhancements

  • Submitter management has a new interface
  • Template selection includes search functionality
  • Field value management is simplified

Migration Steps:

  1. Review workflows using submitter arrays
  2. Update any custom field value configurations
  3. Test template selection in existing workflows

Support

For questions about specific versions or migration help: