HubSpot Document Generation: How to Set Up the Documint App
Josh Mamroud · November 13, 2026

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.

How do you set up the Documint app in HubSpot?
You need a HubSpot account and a Documint account.
- 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
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
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
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:
- Launch Documint from a record of the object you'll use, for example a deal.
- Select your template and open its Properties. You'll see the object's fields and its associated lists.
- Click to download the complete field schema. This is a JSON file of the fields, including associated lists such as line items.
- In the template designer, open Sources, set up the Custom Data Source and upload the JSON file.
- 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:
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?
- Open the record and launch Documint.
- Choose the template and the record.
- 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.

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.
Create a contact, company, deal or ticket workflow and add the Documint action. Pick the template and the properties to send (for example firstname, email, domain). Publish it, and documents are generated in the background and saved to the record's Notes. Use it for documents that should exist the moment a deal reaches a stage. (Workflow guide)
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.
