← Back to blog

HubSpot Document Generation: How to Set Up the Documint App

Josh Mamroud · November 13, 2026

HubSpot deals flowing into a Documint template that produces a quote PDF

HubSpot document generation is the process of turning a HubSpot record into a finished PDF: a contract, proposal, NDA or invoice, filled with that record's properties. With the Documint app, you open a contact, company, deal or ticket, pick a template and click Generate. The PDF is saved to the record's Notes and Attachments.

This guide walks through the setup from install to first document, then shows how to automate it with a workflow. If you want to build quotes from deal line items, read our HubSpot quote template guide after this one.

How does HubSpot document generation work?

Documint reads the properties of the record you're on and drops them into your template. It works on contacts, companies, deals and tickets. It can also pull in associated lists, such as a deal's line items or a company's contacts.

HubSpot recordContact, company, deal or ticket
Documint templateYour layout with HubSpot fields
PDF generatedFrom the record or a workflow
Saved to the recordNotes and Attachments
From HubSpot record to PDF on the record, without copy and paste.
hubspot app native

How do you set up the Documint app in HubSpot?

You need a HubSpot account and a Documint account.

  1. 1

    Install the app from the HubSpot App Marketplace

    Open the Documint app listing, click Install, choose your HubSpot account, review the permissions and click Connect app.

  2. 2

    Create an API key in Documint

    In Documint, go to Settings > API keys, click New API Key and name it "HubSpot". Copy the key.

  3. 3

    Add the key in HubSpot

    In HubSpot, open Connected Apps > Documint > Settings. In the Authentication section, click Add/Edit API Key, paste the key and save. (Connection guide)

  4. 4

    Launch Documint from a record

    Open any contact, company, deal or ticket and click Launch Documint. This opens the app panel where you pick templates and generate.

How do you build a template from HubSpot properties?

Start from a blueprint in the template gallery (contract, proposal, quote or invoice) or a blank page. Then load the fields from HubSpot instead of typing them:

  1. Launch Documint from a record of the object you'll use, for example a deal.
  2. Select your template and open its Properties. You'll see the object's fields and its associated lists.
  3. Click to download the complete field schema. This is a JSON file of the fields, including associated lists such as line items.
  4. In the template designer, open Sources, set up the Custom Data Source and upload the JSON file.
  5. Save. The HubSpot fields now appear in the Fields panel, ready to drag onto the page.

Here is how the fields of a typical deal contract map to the document:

HubSpot · Deal

Service agreement

1Agreement title
2Client company
3Signer name and email
4Contract value
5Services table
6Enterprise SLA section
7Logo and boilerplate
Hover or tap a field to see where it lands in the service agreement.

To make the document change with the data, use two settings in the element's Edit Logic panel:

  • Repeat/Loop repeats a table row for each item in a list, so 3 line items or 30 fit the same template.
  • Display Rules show or hide a row or section based on a value, such as a clause that only appears for one deal type.

How do you generate a document from a HubSpot record?

  1. Open the record and launch Documint.
  2. Choose the template and the record.
  3. Check the preview, then click Generate Document.

After a moment, the PDF is saved to the record's Notes, and the file also appears under Attachments on the right of the record (generating guide). You can rename the template, set a file name pattern with record data, set it to Active and adjust margins from the app's template settings.

documnt-to-attachments

Should you generate manually, with a workflow or with Zapier?

A rep opens the record, checks the preview and clicks Generate. Use it when someone should review each document before it exists, such as a contract with negotiated terms.

You can generate from an inactive template while you build. Test documents carry Documint branding at the bottom and don't count toward your usage quota. Set the template to Active when it's ready.

What can you generate from HubSpot?

Document

Usually generated from

Typical trigger

Quote or proposal

Deal, with line items

Deal stage "Presentation scheduled" or a rep clicks Generate

Service agreement or MSA

Deal and associated company

Deal stage "Contract sent"

NDA

Contact or company

A rep clicks Generate before a technical call

Invoice

Deal, with line items

Deal stage "Closed won"

Onboarding pack

Company or ticket

A ticket is created for a new customer

To collect signatures, add Documint Sign's e-signature fields (signature, date, initials and text) to the template.

Frequently asked questions

Does the Documint app work with HubSpot custom objects?

The Documint card doesn't appear on custom object records, because HubSpot doesn't let app cards apply to custom objects. The troubleshooting guide explains how to work with custom object data instead.

Where are generated documents saved in HubSpot?

In the record's Notes, as an activity with the PDF attached. The file also shows in the record's Attachments section.

Can I include deal line items in a document?

Yes. Line items are an associated list. Add them as a collection field and set a table row to Repeat/Loop over them. Our HubSpot quote template guide walks through it.

Do I need to know how to code?

No. You build the template with drag and drop, load fields from the schema file, and set loops and rules in a panel. The workflow action is configured in HubSpot's workflow editor.

Is there a free trial?

Yes. Documint has a 14-day free trial and a 14-day money-back guarantee. There is no free plan. See pricing.

Generate your first HubSpot document today

Install the app, build one template from your HubSpot fields, and let your records fill it in. See the HubSpot integration for more.

Real Estate Document Preparation: How to Automate Leases, Contracts and Listings

Next Blog →

CRM property listings feeding a Documint template that produces a lease agreement PDF