Template Creator

$5.00Version 1.0.0Instant download

Upload any contract, invoice, NDA, or proposal and get back a clean, reusable fill-in-the-blank template as a PDF — automatically identified, templatized, and delivered with a shareable link.

> ⚠️ Self-hosted only: This workflow uses the n8n-nodes-word2text community node for DOCX text extraction, plus a self-hosted Gotenberg instance for PDF rendering. A workflow image is included above since previews don't render for community nodes.

Who's it for

Law firms, HR teams, consultants, and anyone who repeatedly recreates the same document types and wants a template library built directly from their existing files.

How it works

  • A webhook receives an uploaded document (PDF or DOCX) — pair it with a simple HTML upload form for a client-facing intake page
  • A Switch node routes by file type: DOCX goes through the word2text community node, PDF through the native Extract From File node
  • GPT-4o reads the text and identifies the document type (e.g., Employment Contract, Lease Agreement, Invoice) and the variable fields that type typically contains
  • A second GPT-4o pass replaces all variable content with clearly labeled [BRACKET] placeholders while preserving the static boilerplate and structure verbatim
  • The template is rendered to PDF via Gotenberg, uploaded to Google Drive, set to public sharing, and a JSON response with the file URLs is returned to the caller

How to set up

  1. Install the n8n-nodes-word2text community node (Settings → Community Nodes)
  2. Add credentials: OpenAI (both LLM nodes), Google Drive OAuth2, and HTTP Basic Auth for your Gotenberg instance
  3. Update the Gotenberg URL in the HTML to PDF node to your own instance
  4. Set your target Google Drive folder ID in the upload node
  5. Point your upload form or client app at the webhook URL

Requirements

  • Self-hosted n8n (community node)
  • OpenAI API key with GPT-4o access
  • Self-hosted Gotenberg instance
  • Google Drive account

How to customize the workflow

  • Swap GPT-4o for GPT-4.1-mini on the identification step to cut cost on the lighter classification task
  • Add a Switch after classification to route document types to type-specific templatizing prompts
  • Sort output into Drive subfolders by document type
  • Replace Google Drive with SharePoint, Dropbox, or S3 for delivery

What you get

  • The complete n8n workflow (.json) — import-ready, with a full setup guide in the workflow's sticky notes
  • Written documentation (DESCRIPTION.md)
  • Extra: template_creator_info.html
  • Extra: template_creator_form.html
  • README with import instructions and license

Delivered as a ZIP (22 KB) · SHA-256 43ef8c19a95beba5…

Requirements

  • A working n8n instance (self-hosted only — see below)
  • Credentials for the services the workflow connects to (listed in the setup sticky note inside the workflow)
Self-hosted n8n required. This template uses community nodes, which are only available on self-hosted n8n instances (not n8n Cloud).

How delivery works

Checkout is handled securely by Stripe — we never see your card details. The moment your payment completes, your download is available on the confirmation page, and a backup link is emailed to you. Links stay valid for 72 hours and up to 5 downloads; if yours expires, we'll re-issue it free — see support below.

Support

Every template includes email support for installation and setup questions: support@legalgpts.com. We typically reply within one business day.

Need this workflow customized for your business, or want it installed and configured for you? That's what we do — ask about our implementation services.

Get Template Creator

One-time purchase · instant download · free link re-issue

Buy Now — $5.00