# Auto Contract Generator: Webhook to PDF & Email with Gmail: n8n workflow

> Started by another system calling it, and works across Email and Gmail. 6 steps: small enough to read in one sitting and change without fear.

Source: https://millionrounds.com/workflow/auto-contract-generator-webhook-to-pdf-and-email-with-gmail (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Auto Contract Generator: Webhook to PDF & Email with Gmail

Started by another system calling it, and works across Email and Gmail. 6 steps: small enough to read in one sitting and change without fear.

Small

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-contract-generator-webhook-to-pdf-and-email-with-gmail)

**6 steps** Small: readable in one sitting

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 2 Service 3

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **Edit Fields** Set *Logic*
- 3 **Code** Code *Logic*
- 4 **HTML to PDF** Html2Pdf *Service*
- 5 **Send email** Email Send *Service*
- 6 **Send a message** Gmail *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 6
- **Size:** Small: readable in one sitting
- **Connects to:** Email, Gmail
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Email and Gmail accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Not long. At 6 steps it can be read in one sitting and changed without fear.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 6 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-contract-generator-webhook-to-pdf-and-email-with-gmail)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Bulk emails** 6 steps · Email](https://millionrounds.com/workflow/bulk-emails)
- [**Convert email attachments to PDF with ConvertAPI** 6 steps · Dropbox, Gmail](https://millionrounds.com/workflow/convert-email-attachments-to-pdf-with-convertapi)
- [**Deliver digital purchase files by email with Stripe and SMTP** 6 steps · Email](https://millionrounds.com/workflow/deliver-digital-purchase-files-by-email-with-stripe-and-smtp)
- [**Generate Submission-Ready Assignment Front Pages with PDF** 6 steps · Gmail, Google Docs](https://millionrounds.com/workflow/generate-submission-ready-assignment-front-pages-with-pdf)
- [**Gmail attachments to Google Drive** 6 steps · Gmail, Google Drive](https://millionrounds.com/workflow/gmail-attachments-to-google-drive)
- [**Job Description Parser: Gmail PDF to Airtable** 6 steps · Airtable, Gmail](https://millionrounds.com/workflow/job-description-parser-gmail-pdf-to-airtable)
