How to generate lease agreements automatically from your CRM

Learn how to generate PDF lease agreements from Word templates, automatically send them for e-signature, and save signed copies back to your CRM.

To generate lease agreements automatically, turn your lease into a Word template with placeholders like {{ TenantName }} and {{ MonthlyRent }}, keep the lease details in your CRM, and use a document automation platform that creates a PDF lease agreement from each deal. With TemplateDocs you can select a deal from HubSpot, Attio and many other CRMs to fill in the lease, or generate it automatically when the deal reaches a specific stage. The tenant and the landlord then get the PDF to e-sign, and the signed copy is saved back to the deal.

This guide uses HubSpot as an example. The same flow works with Airtable, Attio, Google Sheets, monday.com and many other apps and CRMs.

How to generate lease agreements automatically from your CRM

In this article:

What to look for when generating lease agreements from your CRM

Many tools can fill in a template. To generate lease agreements from your CRM without copying data by hand, check that the tool you use can:

TemplateDocs covers all of these. The steps below show how.

Step 1: Turn your lease agreement into a template

Start from your own lease agreement in Word, or download the sample lease below. Replace every detail that changes per lease with a tag in double curly braces:

In the leaseTag
Property address{{ PropertyAddress }}
Landlord and tenant names{{ LandlordName }}, {{ TenantName }}
Lease start and end dates{{ StartDate }}, {{ EndDate }}
Rent and deposit{{ MonthlyRent }}, {{ SecurityDeposit }}
Signatures{{ TenantSignature }}, {{ LandlordSignature }}
Signing dates{{ TenantDateSigned }}, {{ LandlordDateSigned }}
Residential lease agreement template with tags for the property, the parties, the lease terms and the signatures

Click the lease to download it as a Word template.

A few tips for preparing your template:

Step 2: Choose how to generate

There are two ways to generate lease agreements from your CRM. Both create a PDF, send it to the tenant and the landlord to e-sign, and can save the signed copy to the deal.

Option A: Deal you selectOption B: Deal stage
How it startsAn agent selects a deal through an online formA deal moves to a specific stage in your CRM
Review before sendingYes, any value can be changed in the formOptional, the workflow starts automatically and you can choose to review before sending
Best forLeases with negotiated terms, such as custom rent or datesStandard leases and high volume

Option A: Generate a lease agreement from a deal you select

An agent opens a form, selects the deal from your CRM, and the form fills itself in with the property, the lease terms and the tenant's details. They check the values, change anything they need, and submit. The lease agreement is then generated as a PDF and sent to the tenant and the landlord to sign.

1. Create the workflow from the template

  1. Open the lease template. On the Overview tab, choose Collect with a form.
  2. Choose Start from a record and click Continue.
  3. Choose HubSpot and click Continue.
  4. Keep Collect signatures on. It's suggested because the template has signature tags.
  5. Keep Send an email on, and enter your office's address as the Recipient to get a copy of every signed lease. Name the workflow and click Create workflow.
The Finish your workflow dialog, with Collect signatures suggested because 4 signature fields were found in the template, and Send an email turned on

TemplateDocs creates a workflow with a form that has a field for every tag, a Document step that generates the lease as a PDF, a Sign step with the signature fields already placed, and an Email step that sends the signed lease. The form designer opens with the Data Sources panel, ready to connect HubSpot.

2. Connect your HubSpot deals

  1. In the Data Sources panel, click the edit button of the HubSpot source.
  2. Name it Deal, so it is easy to find later.
  3. Click Sign in under Account and approve the access in HubSpot.
  4. Choose Deals as the Object.
  5. Under Fields, add the deal properties that hold the lease terms, such as Property Address, Monthly Rent and Lease Start Date.
  6. Under Associated Records, check Contacts. The form can then read the tenant's name and email along with the deal.
  7. Click Save.
The Edit Data Source dialog for HubSpot deals, with the lease properties selected as fields and the associated contacts' first name, last name and email

3. Auto-populate the form fields

Select each form field and set its Prefill value. Type @ and select the deal property under Source Records > Deal.

Form designer with @Fir typed in the Tenant Name field's Prefill setting, and the menu filtered to the First Name of the deal's associated contacts

Then add an Email field for the tenant's address, and prefill it with Associated Contacts > Email. The Sign step sends the lease to it.

Leave Lease Date and Landlord Name without a prefill. The agent fills them in, or you can give Landlord Name a Default Value.

4. Send the lease agreement for e-signature

The wizard has already set up most of the Sign step. Now, tell it who signs:

  1. Under Signers, set the first signer's name to the Tenant Name form field and the email to the Email form field. Type @ to insert them.
  2. Click Add Signer and enter the landlord's or property manager's name and email.
  3. To have the tenant sign first, turn on the signing order. See Sign step for all the settings.
  4. Click the document's mapping preview to open Signature Fields. On the Fields tab, assign the fields on the LandlordSignature and LandlordDateSigned tags to the landlord.
  5. Set a Title and optionally add a Message.
  6. If needed, change Expires After. Signers have 7 days to sign by default.
Sign step with the Tenant Name and Email form fields as the first signer, the landlord as the second signer, a Lease agreement for Property Address title, a message and a 14-day expiry

5. Save the signed lease agreement back to the deal (optional)

The workflow continues once everyone has signed. To save the signed lease back to the deal, add a HubSpot - Add activity step after the Sign step:

  1. Choose Deals and the Note activity.
  2. Under Record, set a condition so the right deal gets the note:
    Select "Record ID is", then type @ and select the deal's Record ID from the form's Source Records.
  3. Under Attachments, add the signed lease. The note appears on the deal's timeline, with the lease attached.

To move the deal forward too, add a HubSpot - Write record step that updates the same deal, and set its Deal Stage to the desired stage, such as "Lease signed".

HubSpot - Add activity step that adds a note with the signed lease attached to the deal whose Record ID matches the selected deal

6. Generate your first lease agreement

  1. Click Test in the workflow editor to open the form.
  2. Click the Deal button next to Prefill from, select a deal and click Apply. The fields fill in with the deal's details.
  3. Check the values, fill in anything that's missing, and submit.
Lease form with the Select a deal panel open: the 12 Oak Avenue deal is selected and the property, tenant, email, dates, rent, deposit and pets fields are highlighted with its details

The tenant and the landlord get an email with a link to review and sign the lease. When both have signed, each gets the signed PDF by email, and the signed copy is saved to the deal.

Signing page of the generated lease for 12 Oak Avenue, with the tenant's Sign here and Date signed fields, and the landlord's fields waiting for Morgan Reed

Once you've tested the workflow and are happy with the results, click Publish. Members of your TemplateDocs organization can then use the form to create lease agreements.

Back to top

Option B: Generate a lease agreement when a deal reaches a stage

Instead of opening a form for every deal, let a workflow watch your pipeline. When an agent moves a deal to a stage such as Lease approved, the workflow generates the lease agreement and sends it to the tenant and the landlord to sign.

1. Create the workflow from the template

  1. Open the lease template. On the Overview tab, choose Trigger from an event.
  2. Choose HubSpot and click Continue.
  3. Keep Collect signatures and Send an email on, name the workflow, and click Create workflow.
What should start the workflow dialog with HubSpot selected among the integrations

The workflow opens with the trigger selected.

2. Choose the deal stage and the tenant

  1. Click Sign in under Account and choose the Deals object.
  2. Under Properties to return, click Add property and add the lease properties, such as Property Address, Monthly Rent and Lease Start Date.
  3. Under Associated Records, check Contacts. The trigger then reads the tenant's First Name, Last Name and Email along with the deal.
  4. Under Start when, choose Property changed and the Deal Stage property.
  5. Under Records must match, add a condition: Deal Stage is the stage that should send a lease, such as "Lease approved".
HubSpot trigger on deals that returns the lease properties, reads the associated contacts' first name, last name and email, and starts when the Deal Stage changes to Lease approved

3. Review before sending (optional)

To check each lease before it goes out, add a review form. The workflow emails the form to a teammate and waits. The lease is created only after they submit it.

  1. Click the + below the trigger and add a Form step.
  2. Under Send To, enter the reviewer's email address.
  3. Optionally, add a Message, for example with the deal's Deal Name.
  4. Click Edit form and add the fields to review, such as a Monthly Rent number field and a Start Date date field. You can add read-only fields too, to provide more context to the reviewer. Here, the Deal name is read-only.
  5. Prefill the fields with the deal's properties, so the reviewer only changes them when needed.
  6. Use the form values in the Document step (next section).
Review lease terms form as the reviewer sees it, with the deal name in a read-only Deal field, the deal's monthly rent, security deposit, start date and end date prefilled, and an Approve Lease button

4. Map the tags

In the Document step, open the Tag Mapping and map each tag. Drag and drop variables from the menu on the left, or click Get suggestions to let TemplateDocs map the tags for you.

Document Mapping dialog with the lease tags mapped to the HubSpot trigger's deal properties, TenantName mapped to the associated contact's First Name and Last Name, LeaseDate to today and LandlordName to a typed name

5. Configure the other steps

Follow the same steps as in Option A to configure the rest of the workflow:

6. Test and publish

Back to top

Other CRMs and data sources

HubSpot is only one of the CRMs that can fill in your lease agreements. The same template and workflow work with:

For more ways to automate tenancy paperwork, see document automation for real estate.

Back to top

Frequently asked questions

Which CRMs can I generate lease agreements from?

TemplateDocs reads deals and records directly from HubSpot, Airtable, Google Sheets, monday.com, Attio, Notion and more. Other systems can start a workflow with a webhook, directly or through Zapier or Make.

Can tenants and landlords sign the lease agreement online?

Yes. A Sign step emails each signer a link to sign the PDF lease agreement in the browser, on a computer, a tablet or a phone, without a TemplateDocs account. When everyone has signed, each signer gets a copy of the signed lease.

Are the e-signatures legally binding?

Electronic signatures are legally recognized under the US ESIGN Act and UETA, and the EU's eIDAS regulation, subject to applicable legal requirements. Every signed lease includes a signature certificate and an audit trail. See E-Signature Compliance.

Can I send the lease agreement as a PDF without e-signature?

Yes. Turn off Collect signatures when you create the workflow, and set the Email step's To Address to the tenant's email. The tenant gets the lease as a PDF or DOCX attachment, as you choose it.

Can I save the signed lease agreement back to my CRM?

Yes. Add a step after the Sign step that saves the signed lease agreement to the deal, and updates the deal's stage. In HubSpot, use a HubSpot - Add activity step to add a note with the signed lease attached, and a HubSpot - Write record step to move the deal to the next stage. Other CRMs, such as Attio, have similar steps.

Can one lease agreement template cover different terms?

Yes. Put optional clauses, such as a pet clause, between condition tags like {{>> PetsAllowed }} and {{<< }}. The clause appears only when the value is true, for example when a Pets Allowed checkbox is checked on the deal. See Conditions and Loops.

Will the generated lease agreement look exactly like my Word document?

Yes. Only the tags change. Fonts, headings, numbering, tables and layout are kept as they are in your Word lease agreement, and it is generated as a PDF file.

Can I generate lease agreements without a CRM?

Yes. Use a simple form that agents or applicants fill in, or keep your tenancies in Google Sheets, Airtable or Notion and generate a lease agreement for every new row.

What does it cost?

Each generated lease agreement uses credits, like any other document. Sending a lease for signature costs 10 credits, and each CRM action step, such as saving the signed lease to the deal, costs 1 credit. CRM triggers are free. See Credits and the pricing page for details.

Automate Your Document Workflows

Collect data with forms, apply your business logic, and deliver polished Word and PDF documents automatically.