Skip to main content

Generate & email custom NDA documents from web form submissions

Workflow preview

Workflow preview
100%
Generate & email custom NDA documents from web form submissions preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

️ Notice: This workflow uses the HTML to Docx node from customjs.space, which requires a self hosted n8n instance and a CustomJS API key. Landingpage → NDA ...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailsend, n8n-nodes-base.webhook, n8n-nodes-base.html, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.set, @custom-js/n8n-nodes-pdf-toolkit.html2docx

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by CustomJS.

Original n8n.io source

1.1 Workflow description

Title
Generate & email custom NDA documents from web form submissions
Workflow name
Generate & email custom NDA documents from web form submissions

> ⚠️ Notice:
> This workflow uses the HTML to Docx node from customjs.space, which requires a self-hosted n8n instance and a CustomJS API key.


Landingpage → NDA Word Document (Docx) → Email Workflow

This workflow demonstrates how to:

  1. Serve a landing page for requesting an NDA.
  2. Receive form submissions from users.
  3. Generate a Word Document (Docx) version of the NDA populated with the submitted data.
  4. Send the completed NDA via email to a recipient.

Workflow Overview

1. Landingpage Endpoint

  • Node: Landingpage Endpoint (Webhook)
  • Hosts the landing page and passes the URL dynamically to the HTML node.

2. Set Form Endpoint

  • Node: Set Form Endpoint
  • Stores the landing page webhook URL into a variable FormEndpoint for the HTML form to submit to.

3. HTML for Landingpage

  • Node: HTML for Landingpage

  • Renders a user-friendly landing page with a form for users to fill in their personal details:

    • First Name
    • Last Name
    • Address
    • House No.
    • Postal Code
    • City
    • Country
  • Includes success and error messages after submission.

  • Submits data as JSON to the FormData Endpoint.

4. Respond to Webhook

  • Node: Respond to Webhook
  • Returns the landing page HTML to the visitor when accessing the landing page URL.

5. FormData Endpoint

  • Node: FormData Endpoint (Webhook)
  • Receives the submitted form data from the landing page.
  • Passes data to the NDA (HTML Version) node.

6. NDA (HTML Version)

  • Node: NDA (HTML Version)

  • Generates a personalized NDA document in HTML using the submitted form data:

    • Populates recipient details (name, address, city, country, etc.)
    • NDA clauses include:
      1. Definition of Confidential Information
      2. Obligations of the Recipient
      3. Exclusions
      4. Duration
      5. Return or Destruction of information
      6. Governing Law (England & Wales)

7. HTML to Docx

  • Node: HTML to Docx
  • Converts the HTML NDA to a Word Document (Docx) using the CustomJS PDF/Docx Toolkit.
  • Requires a CustomJS API key (Coding Service credential).

8. Send Email

  • Node: Send email

  • Sends the generated NDA Docx as an email attachment.

  • Email configuration:

  • Uses SMTP credentials for sending emails.


Notes

  • Sticky Notes provide internal documentation and guidance for the workflow:

    • Sticky Note1 – Landingpage server info
    • Sticky Note – FormData endpoint info
  • Dynamic Form Submission: The form posts JSON to the FormData Endpoint.

  • Automation Flow: Landingpage → Form Submission → NDA HTML → Docx → Email


Requirements

  • Self-hosted n8n instance
  • CustomJS API key
  • SMTP credentials
  • Optional: Tailwind CSS CDN for landing page styling

Customization Tips

  • Landing Page Styling: Adjust the HTML for Landingpage node for branding, colors, or additional fields.
  • NDA Content: Edit the NDA (HTML Version) node to change NDA clauses or layout.
  • Email Settings: Change Send email node to modify sender, recipient, or message content.
  • Field Mapping: Ensure all form input names match the NDA template placeholders.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Send email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 2 - FormData Endpoint

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 3 - HTML for Landingpage

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 4 - Landingpage Endpoint

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 5 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Set Form Endpoint

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - HTML to Docx

Type / Role
@custom-js/n8n-nodes-pdf-toolkit.Html2Docx - Html2Docx
Config choices
Version 1

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - NDA (HTML Version)

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

3. Summary Table

Workflow Generate & email custom NDA documents from web form submissions
Complexity intermediate
Nodes 10
Categories Document Extraction
Author CustomJS
Published 09 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9406/9406.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate & email custom NDA documents from web form submissions do?

️ Notice: This workflow uses the HTML to Docx node from customjs.space, which requires a self hosted n8n instance and a CustomJS API key. Landingpage → NDA ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.