Automate Contract Generation with Dynamic DOCX Templates

DOCX Output

Version Control

Legal & HR

Generate legally binding contracts in seconds. Perfect for HR departments, legal teams, and businesses that need to create consistent, error-free documents at scale.

<!-- Employment Contract Template -->
EMPLOYMENT AGREEMENT

This Employment Agreement ("Agreement") is entered into as of 
{{ contract.date | date: "%B %d, %Y" }} between {{ company.legal_name }} 
("Company") and {{ employee.full_name }} ("Employee").

1. POSITION AND DUTIES
The Company hereby employs the Employee as {{ position.title }}. 
The Employee's duties shall include:
{% for duty in position.responsibilities %}
  • {{ duty }}
{% endfor %}

2. COMPENSATION
{% if salary.type == "annual" %}
The Employee shall receive an annual salary of {{ salary.amount | currency }}, 
payable in {{ salary.frequency }} installments.
{% elsif salary.type == "hourly" %}
The Employee shall receive {{ salary.rate | currency }} per hour for all 
hours worked.
{% endif %}

{% if benefits %}
3. BENEFITS
The Employee shall be entitled to the following benefits:
{% for benefit in benefits %}
  • {{ benefit.name }}: {{ benefit.description }}
{% endfor %}
{% endif %}

4. TERM
{% if contract.type == "permanent" %}
This agreement shall commence on {{ start_date | date: "%B %d, %Y" }} 
and continue until terminated by either party.
{% elsif contract.type == "fixed" %}
This agreement shall be for a fixed term of {{ contract.duration }}, 
commencing on {{ start_date | date: "%B %d, %Y" }} and ending on 
{{ end_date | date: "%B %d, %Y" }}.
{% endif %}

5. CONFIDENTIALITY
The Employee agrees to maintain strict confidentiality regarding all 
proprietary information of the Company.

{% if non_compete %}
6. NON-COMPETE AGREEMENT
For a period of {{ non_compete.duration }} following termination, 
the Employee agrees not to engage in competitive activities within 
{{ non_compete.geographic_area }}.
{% endif %}

SIGNATURES:

_______________________     _______________________
{{ company.signatory_name }}     {{ employee.full_name }}
{{ company.signatory_title }}    Employee
Date: _________________     Date: _________________

Why Automate Contract Generation?

  • Eliminate Errors: No more copy-paste mistakes or forgotten clauses
  • Instant Generation: Create contracts in seconds, not hours
  • Consistent Formatting: Every contract follows your exact standards
  • Easy Updates: Change templates once, apply everywhere

"Lawyers have reported up to 82% time savings when using document automation to generate contracts and other legal documents."

- Thomson Reuters Legal Study

Common Contract Types

Employment Contracts

  • • Full-time agreements
  • • Contractor agreements
  • • Internship contracts
  • • Offer letters

Business Contracts

  • • Service agreements
  • • NDAs
  • • Partnership agreements
  • • Vendor contracts

Integration with your system

// Generate employment contract from HR system
const generateEmploymentContract = async (employeeId, positionId) => {
  // Fetch data from your database
  const employee = await db.employees.findOne({ id: employeeId });
  const position = await db.positions.findOne({ id: positionId });
  const company = await db.company.findOne();
  
  // Generate contract document
  const response = await fetch('https://dash.liquidtemplater.com/items/template_request', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_TOKEN',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      data: {
        contract: {
          date: new Date().toISOString().split('T')[0],
          type: position.contract_type
        },
        company: company,
        employee: employee,
        position: position,
        salary: position.compensation,
        benefits: position.benefits,
        start_date: employee.start_date,
        non_compete: position.has_non_compete ? {
          duration: '12 months',
          geographic_area: '50 miles'
        } : null
      },
      template: `<!DOCTYPE html>
<html>
<head><title>Employment Contract</title></head>
<body>
  <h1>Employment Agreement</h1>
  <p>Date: {{ contract.date }}</p>
  <p>This agreement is between {{ company.name }} and {{ employee.first_name }} {{ employee.last_name }}.</p>
  <p>Position: {{ position.title }}</p>
  <p>Salary: {{ salary.amount }}</p>
  {% if non_compete %}
  <p>Non-compete period: {{ non_compete.duration }}</p>
  {% endif %}
</body>
</html>`,
      type: 'pdf'
    })
  });
  
  const requestData = await response.json();
  const requestId = requestData.data.id;
  
  // Poll for completion
  let document_url = null;
  while (!document_url) {
    await new Promise(resolve => setTimeout(resolve, 2000));
    
    const statusResponse = await fetch(
      `https://dash.liquidtemplater.com/items/template_request/${requestId}`,
      {
        headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' }
      }
    );
    
    const statusData = await statusResponse.json();
    
    if (statusData.data.result) {
      document_url = `https://dash.liquidtemplater.com/assets/${statusData.data.result}?download=true`;
    }
  }
  
  // Save contract record
  await db.contracts.create({
    employee_id: employeeId,
    type: 'employment',
    document_url: document_url,
    status: 'pending_signature',
    created_at: new Date()
  });
  
  return document_url;
};

Generated documents are processed within seconds and stored securely in our German data centers for 7 days, giving you time to download, review, and send for signatures. All data is automatically deleted after 7 days to ensure compliance and privacy.