Automated Contract Generation and Delivery System - n8n Workflow

Use this powerful n8n workflow to automatically generate personalized contracts using Typeform submissions, fill Google Docs templates, export as PDF, and send via Gmail.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Consultants or agencies needing rapid, automated contract dispatch.
Businesses utilizing Typeform for client intake or project scoping.
Users looking for advanced document automation capabilities within an n8n workflow.
Anyone interested in leveraging n8n templates to streamline administrative tasks and improve response times.

Overview

This robust n8n workflow solves the tedious problem of manual contract creation and distribution. By connecting a Typeform submission to Google Docs and Gmail, the entire process—from data collection to final email delivery—is automated. This n8n workflow is a powerful tool for scaling operations. It ensures documents are generated accurately using defined n8n templates, converted securely to PDF via the Google Drive n8n node, and immediately sent to the client. Utilizing a sophisticated n8n trigger, the workflow starts instantly upon client submission, providing an immediate and professional response. This automation drastically reduces administrative overhead and ensures clients receive their paperwork promptly.

How it Works


  1. Start with the n8n Trigger: The n8n workflow is initiated immediately by the Typeform Trigger n8n node when a user completes and submits a specified form. This serves as the critical starting point.

  2. Data Mapping: The workflow proceeds to the Set Variables n8n node, which extracts specific answers (Client Name, Project Scope, Deadline, Email) from the Typeform response and maps them to easily usable variables within the rest of the n8n workflow structure.

  3. Template Filling: The Google Docs n8n node uses these mapped variables to automatically populate placeholders within a designated contract template document, making the contract personalized and ready. This step demonstrates effective use of n8n templates for high-volume document generation.

  4. Format Conversion: The Google Drive n8n node then takes the newly created document ID and exports the file, converting it seamlessly into a high-quality PDF format, which is essential for final document sending.

  5. Final Delivery: Finally, the Gmail n8n node attaches the generated PDF document and sends a personalized introductory email to the client's address, completing the automated contract delivery cycle of this sophisticated n8n workflow.

Installation Guide


  1. Import the n8n workflow: Copy the provided n8n workflow JSON and import it into your n8n instance.

  2. Typeform Setup: Configure the Typeform Trigger n8n node by setting up your Typeform API credentials and specifying the formId of the intake questionnaire. This node functions as the primary n8n trigger.

  3. Google Credentials: Set up your Google API credentials for both the Google Docs and Google Drive n8n nodes. Ensure the service account has permission to access and modify the necessary template document.

  4. Template ID: In the Fill Contract Template n8n node, replace "your-template-id" with the actual ID of your Google Docs contract template. Ensure the template placeholders ({{client_name}}, etc.) match the variables set earlier in the n8n workflow.

  5. Gmail Configuration: Configure the Gmail n8n node using your Gmail OAuth2 credentials, replacing "[email protected]" with the desired sender address.

  6. Activate: Save and activate the n8n workflow to deploy this powerful automation.

Node Details

Typeform Trigger (n8n node): Function: Serves as the primary n8n trigger, initiating the n8n workflow upon submission of the linked Typeform. Key Configuration: Requires formId to specify which form triggers the automation.
Set Variables (n8n node): Function: Maps raw Typeform output to clean, reusable variables (clientname, email, etc.). This is critical for data integrity within the subsequent steps of the n8n workflow. Key Configuration: Defines four key string variables using expressions referencing the incoming Typeform data.
Fill Contract Template (Google Docs n8n node): Function: Automatically fills a specified Google Docs template using the mapped client variables. This leverages n8n templates for efficient document creation. Key Configuration: Uses a static documentId for the template and maps input fields like {{clientname}}.
Export as PDF (Google Drive n8n node): Function: Converts the newly generated Google Doc file into a PDF attachment, preparing the document for secure delivery. Key Configuration: Operation is set to export, with the mimeType set explicitly to application/pdf. It pulls the fileId dynamically from the previous n8n node.


  • Send via Email (Gmail n8n node): Function: Sends the final contract PDF to the client via a personalized email. Key Configuration: Dynamically sets toEmail using the variable data and attaches the binary output (data) generated by the Export n8n node.

Related n8n Workflows

Free

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by

Automation Engineer passionate about building smart, scalable workflows with n8n. I specialize in API integrations, webhook handling, and streamlining business tasks using low-code tools. From AI-powered bots to real-time data pipelines, I love solving problems with automation. Let’s turn manual processes into efficient systems!

Featured*