> For the complete documentation index, see [llms.txt](https://docs.documint.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documint.me/introduction/use-case-library/quotes.md).

# Quotes

Learn how to automate quote generation with Documint using Airtable, HubSpot, Make, or Zapier. Connect your data and generate professional quote PDFs automatically.

## Connect to your datasource:

<table data-view="cards"><thead><tr><th data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><a href="/introduction/use-case-library/quotes.md#generating-quotes-with-airtable">Quotes</a></td><td><a href="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FTcd8hJMAmIqtWMn8o8IX%2Fairtable.png?alt=media&amp;token=dfebce45-334a-4e2a-809e-8d1f179688dd">airtable.png</a></td></tr><tr><td></td><td><a href="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FdRA2ariYdPNjVkrlDQST%2Fhubspot.png?alt=media&amp;token=f158586c-1940-437a-b8a9-06321ed86ab7">hubspot.png</a></td></tr><tr><td></td><td><a href="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FaEWuSn6NHsEJd0nxXHsi%2Fmake.png?alt=media&amp;token=7b3893b6-eb43-41df-a7d7-95576835a1e2">make.png</a></td></tr><tr><td></td><td><a href="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FYONe6qQuBJNoW0oSnPeL%2Fzapier.png?alt=media&amp;token=85c47fa2-89dc-4859-be66-c184290d8db4">zapier.png</a></td></tr></tbody></table>

## Generating Quotes with Airtable

{% stepper %}
{% step %}

### Connect your Airtable Account to Documint

To connect your Airtable account with Documint, go to **Settings > Integrations**. You'll pick the Airtable option. In OAuth accounts, you'll click `Add Account`.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Few35bkN8vaWvNdCph43U%2FAirtable%20UC%20step%201.gif?alt=media&amp;token=c87b0f4e-414e-406b-8787-03f31f0d6e79" alt=""><figcaption></figcaption></figure>

A page will show up for you to grant access to your bases. Feel free to add all current and future bases, or select the ones you want to work with.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FiPaloCjEFfHQ2ctdXlAZ%2FGrant%20Access%20-%20Airtable.png?alt=media&amp;token=d79f0fcb-8a4b-49f8-8c5e-bbb9953921bb" alt=""><figcaption></figcaption></figure>

And you're all connected! Now, let's work on an Invoice Template :tada:

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FeAI91eXjhPTr9KEi6SFR%2FAirtable%20Connected.png?alt=media&amp;token=101b80b6-fb53-4819-8e19-d4f0749ecbfd" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Connect a Quote Template to your Base

Open the template gallery and select the Quote Blueprint you want to work with.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FzJKARfuHhm47NwNS6Ttj%2FAT%20Quote%20UC%20step%202.1.gif?alt=media&amp;token=47a8835e-69bc-4aef-9b1f-743ca0bf828e" alt=""><figcaption></figcaption></figure>

Under **Sources**, you'll see that there's a **Custom Data Source**. It's holding the fields that are currently in the template. To connect to Airtable, just click `Connect` in the Airtable option below it.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FF920cKzA7lhAFWL8K9aH%2FAT%20Quote%20UC%20step%202.2.gif?alt=media&amp;token=572cbcb1-0df2-4a11-8b9c-ab322f05d306" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Map the Fields

After connecting to Airtable, select the base and table you want to connect with Documint.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FcKdQN2PwKUYAV0EoILhx%2FAT%20Quote%20UC%20step%203.1.gif?alt=media&amp;token=643f59e2-4d92-441d-96f1-07338d2b914a" alt=""><figcaption></figcaption></figure>

In the field selector, pick the fields that will be used in the template.

To use fields coming from a Linked Record, you can click the + to expand it and select the fields coming from it.

Click Finish setup, and the Fields mapped will show up in the Fields panel!

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Ff1PJyjIiEgn5Ev9qjYeD%2FAT%20Quote%20UC%20step%203.2.gif?alt=media&amp;token=a0763af9-fe17-4f71-9530-f635e131a01a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Place the Fields in the Template

Now, with the fields mapped, you can just drag them from the Fields panel and drop them into the canvas.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Ftf6dyOUmjj16DeDFAyiB%2FAT%20Quote%20UC%20step%204.gif?alt=media&amp;token=0049085f-20d4-4a5b-a926-6c5e2d38eec2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Format the Fields

With the fields placed, you might need to adjust the formatting of some content. It's pretty simple. Just double-click the token and the formatting options will show up.&#x20;

* **Number**

For numerical fields, you can display them as currency or percentage. Feel free to specify your country's currency and the required decimal places.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FBxnaziOCYi8JSTZLuYr6%2FAT%20Quote%20UC%20step%205.1.gif?alt=media&amp;token=8865d791-a76f-4ee4-b62c-c5a59e79bc5d" alt=""><figcaption></figcaption></figure>

* **Date**

It's possible to format the date just as you need. There are the standard formats, but you can also change it to the one you need.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FduMDMjwvuEHBtmW9NXJy%2FAT%20Quote%20UC%20step%205.2.gif?alt=media&amp;token=b3580792-c9aa-4db1-a41e-02634a8b3587" alt=""><figcaption></figcaption></figure>

* **Rich Text**

If you have rich text content, you can make it display just as it is in your database. For that, you just need to set `Markdown` as the text type in the token settings.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FotFUEkmHQNZRxWCuGp7f%2FAT%20Quote%20UC%20step%205.3.gif?alt=media&amp;token=7c11d258-89ac-4e0d-af0a-4eea5688f60a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Displaying a List of Items

If you're working with Line Items, Documint can display them dynamically. For that, you'll need to set up a loop. Just select the element you want to be repeated for each item (in this case, it will be the row). Click Edit Logic in its properties panel.

In the popup, go to the Repeat/Loop tab and select the list field. Don't forget to save.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fy2O9k9ypQENhUrCSCM8l%2FAT%20Quote%20UC%20step%206.gif?alt=media&amp;token=bf14beb7-d6c1-40d7-a1e2-adae98c758c6" alt=""><figcaption></figcaption></figure>

And that's it! Now a row will be repeated for each item in that list, and the template will display the table dynamically :tada:
{% endstep %}

{% step %}

### Preview the Template with Real Data

Go to the Preview tab and select a record to preview the final document with data from your base

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FffgJvOjyotIPQXQjunvc%2FAT%20Quote%20UC%20step%207.gif?alt=media&amp;token=399339b9-aecb-4ff1-acbb-acfd132aef8d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Generate the Final Document&#x20;

Now, back to the table connected with Documint, you will need to create an attachment field. This field will store the PDF generated from each record.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FKHe9qAHOn9gGZBOPUOXM%2FAT%20Quote%20UC%20step%208.1.gif?alt=media&amp;token=7ffa155c-9343-473d-be09-38e7dee8751f" alt=""><figcaption></figcaption></figure>

Now, under Sources, click `Add Formula` in the Airtable connection. Then select the `Generation Link` option.&#x20;

Select the Attachment field that will store the generated PDF.&#x20;

{% hint style="info" %}
**Override past attachments** will ensure the attachment field only stores the most recently generated document for that record.
{% endhint %}

Then click Generate Link and a URL will be available for you to copy. Copy it and switch back to Airtable.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FDjXmxQGzjgWhXQPioviA%2FAT%20Quote%20UC%20step%208.2.gif?alt=media&amp;token=0e1fad09-d5b8-4321-8efc-36208aea6165" alt=""><figcaption></figcaption></figure>

In the table we have the attachment field, create a **Button** field. This button will store the URL to generate the PDF from each record in that table.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FPaeyve3yVFRf8Rs7TOn9%2FAT%20Quote%20UC%20step%208.3.gif?alt=media&amp;token=1aa953e2-2771-428b-8595-87dcb49bfdd4" alt=""><figcaption></figcaption></figure>

Click the button to test it out!&#x20;
{% endstep %}

{% step %}

### Activate the Template

Once everything is displaying properly and all the adjustments were made, it's time to activate the template to generate unbranded documents.&#x20;

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FFMwhxbKutc1eWEESlgb6%2FAT%20Quote%20UC%20step%209.gif?alt=media&amp;token=ecb761ee-2b7b-47d2-b126-1ec999dc1bf5" alt=""><figcaption></figcaption></figure>

And that's it! Get ready to save countless hours spent manually editing documents with variable information :tada:
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.documint.me/introduction/use-case-library/quotes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
