Skip to main content

Replace data in Google Docs from n8n form

Workflow preview

Workflow preview
100%
Replace data in Google Docs from n8n form preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is perfect for anyone looking to automate the process of replacing variables in Google Docs with data from form. ...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.code, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Krzysztof Kuzara.

Original n8n.io source

1.1 Workflow description

Title
Replace data in Google Docs from n8n form
Workflow name
Replace data in Google Docs from n8n form

Who is this for?

This workflow is perfect for anyone looking to automate the process of replacing variables in Google Docs with data from form.

What problem does this workflow solve?

This workflow automates the process of filling Google Docs templates with data coming from n8n forms or other variables. It’s especially useful for generating documents like contracts, invoices, or reports quickly and efficiently without manual intervention.

What does this workflow do?

The workflow receives data from a form in n8n. It uses the form data to replace the corresponding variables (e.g., {{example_variable}}) in a Google Docs template. The document is then generated with the new values, ready for further use, such as sending or archiving.

How to set up this workflow?

  1. Prepare the template: Create a Google Docs template with variables in the {{variable}} format that you want to replace with form data.
  2. Modify the variables in the n8n form: Make sure the form fields correspond to the variables you want to replace in the Google Docs template.
  3. Connect to Google Docs: Set up the connection to Google Docs in n8n using the appropriate authentication credentials.
  4. Test the workflow: Run the workflow to ensure that the form data correctly replaces the variables in the Google Docs template.

How to customize this workflow to your needs?

Change the data source: You can modify the form or other data sources (e.g., API) from which the replacement values will be fetched. Customize the Google Docs template: Adapt the template to include additional fields for replacement as needed. Integrate with other applications: You can expand the workflow to include actions like sending the generated document via email, saving it to Google Drive, or passing it to other systems.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Copy template file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Format form data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Format form data to Google Doc API

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Replace data in Google Doc

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Replace data in Google Docs from n8n form
Complexity intermediate
Nodes 8
Categories Document Extraction
Author Krzysztof Kuzara
Published 12 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3145/3145.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Replace data in Google Docs from n8n form do?

Who is this for? This workflow is perfect for anyone looking to automate the process of replacing variables in Google Docs with data from form. ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.