AutomationFlowsGeneral › Webhook to Google Docs Creator

Webhook to Google Docs Creator

Original n8n title: Google Docs

Google Docs. Uses googleDrive. Webhook trigger; 3 nodes.

Webhook trigger★★★★☆ complexity3 nodesGoogle Drive
General Trigger: Webhook Nodes: 3 Complexity: ★★★★☆ Added:

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
{
  "name": "Google Docs",
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": true
  },
  "nodes": [
    {
      "id": "webhook-docs",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        250,
        300
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "docs",
        "responseMode": "lastNode",
        "options": {}
      }
    },
    {
      "id": "create-doc",
      "name": "Create Google Doc",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        500,
        300
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "parameters": {
        "resource": "file",
        "operation": "createFromText",
        "name": "={{ $json.body.title || 'Untitled' }}",
        "content": "={{ $json.body.content || '' }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.body.folderId || 'root' }}"
        },
        "options": {
          "convertToGoogleDocument": true
        }
      }
    },
    {
      "id": "format-response",
      "name": "Response",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        750,
        300
      ],
      "parameters": {
        "jsCode": "const item = $input.first().json;\nreturn [{ json: {\n  ok: true,\n  docId: item.id,\n  docUrl: 'https://docs.google.com/document/d/' + item.id + '/edit',\n  name: item.name\n} }];"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Create Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Google Doc": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "id": "b0ca6220ea5140b7"
}

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

Google Docs. Uses googleDrive. Webhook trigger; 3 nodes.

Source: https://github.com/Phoenixrr2113/edith/blob/a7e4ac92fa5406d96973854f6790989ce6864207/n8n/docs-workflow.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

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

General

seo-auditor. Uses executeCommand, googleDrive, readBinaryFile. Webhook trigger; 15 nodes.

Execute Command, Google Drive, Read Binary File
General

CIBC PDF to Google Drive. Uses googleDrive. Webhook trigger; 6 nodes.

Google Drive
General

Tool: Create Google Doc. Uses googleDrive. Webhook trigger; 3 nodes.

Google Drive
General

Create Student Folder. Uses googleDrive. Webhook trigger; 3 nodes.

Google Drive
General

List-User-Files. Uses googleDrive. Webhook trigger; 3 nodes.

Google Drive