AutomationFlowsEmail & Gmail › Generate and Send Contract Documents with Typeform, Google Docs and Gmail

Generate and Send Contract Documents with Typeform, Google Docs and Gmail

ByAbbas Ali @abbas12142 on n8n.io

This workflow is designed for teams or freelancers who want to auto-generate and send contracts based on information gathered from a Typeform (e.g., client name, project scope, deadlines). Perfect for HR onboarding, client agreements, or legal operations. To use this workflow,…

Event trigger★★★★☆ complexity5 nodesTypeform TriggerGoogle DocsGoogle DriveGmail
Email & Gmail Trigger: Event Nodes: 5 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #6817 — we link there as the canonical source.

This workflow follows the Gmail → Google Docs recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "Typeform Trigger",
      "type": "n8n-nodes-base.typeformTrigger",
      "position": [
        100,
        300
      ],
      "parameters": {
        "formId": "your-form-id"
      },
      "credentials": {
        "typeformApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        300
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "client_name",
              "value": "={{$json[\"answers\"][0].text}}"
            },
            {
              "name": "project_scope",
              "value": "={{$json[\"answers\"][1].text}}"
            },
            {
              "name": "deadline",
              "value": "={{$json[\"answers\"][2].text}}"
            },
            {
              "name": "email",
              "value": "={{$json[\"answers\"][3].email}}"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Fill Contract Template",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        500,
        300
      ],
      "parameters": {
        "mode": "template",
        "fields": [
          {
            "name": "{{client_name}}",
            "value": "={{$json[\"client_name\"]}}"
          },
          {
            "name": "{{project_scope}}",
            "value": "={{$json[\"project_scope\"]}}"
          },
          {
            "name": "{{deadline}}",
            "value": "={{$json[\"deadline\"]}}"
          }
        ],
        "documentId": "your-template-id"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Export as PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        700,
        300
      ],
      "parameters": {
        "fileId": "={{$node[\"Fill Contract Template\"].json[\"documentId\"]}}",
        "mimeType": "application/pdf",
        "operation": "export"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Send via Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        900,
        300
      ],
      "parameters": {
        "text": "Hi {{$json[\"client_name\"]}},\n\nPlease find attached your contract.\n\nRegards,\nYour Company",
        "subject": "Your Contract",
        "toEmail": "={{$json[\"email\"]}}",
        "fromEmail": "user@example.com",
        "attachments": [
          {
            "binaryPropertyName": "data"
          }
        ]
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Export as PDF": {
      "main": [
        [
          {
            "node": "Send via Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Variables": {
      "main": [
        [
          {
            "node": "Fill Contract Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Typeform Trigger": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fill Contract Template": {
      "main": [
        [
          {
            "node": "Export as PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow is designed for teams or freelancers who want to auto-generate and send contracts based on information gathered from a Typeform (e.g., client name, project scope, deadlines). Perfect for HR onboarding, client agreements, or legal operations. To use this workflow,…

Source: https://n8n.io/workflows/6817/ — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

Recruiting agency. Uses typeformTrigger, airtable, httpRequest, googleDrive. Event-driven trigger; 36 nodes.

Typeform Trigger, Airtable, HTTP Request +4
Email & Gmail

Client Form → Draft → Approve → Sign → Deliver, fully automated

Jot Form Trigger, Gmail, Google Drive +4
Email & Gmail

This workflow automates the full offer letter lifecycle, from generation to final candidate response tracking. When a new row with a Pending status is added to Google Sheets, it creates a personalized

Google Sheets Trigger, Google Drive, Google Docs +2
Email & Gmail

[Geston locative] Génération quittance - Statut Payé. Uses googleDocs, httpRequest, googleDrive, notion. Event-driven trigger; 13 nodes.

Google Docs, HTTP Request, Google Drive +2
Email & Gmail

This n8n template demonstrates automating an appointment letter creation process using a template and then having the HR approve before emailing the appointment letter to the candidate.

Form Trigger, Google Drive, Google Docs +1