{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Contract upload — Google Drive",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Signed contract",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "name": "contract-acme.txt",
          "content": "signed contract body"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "up",
      "type": "storage.google-drive",
      "label": "Upload to Drive",
      "category": "io",
      "config": {
        "credentialId": "",
        "accessToken": "${credential.google.accessToken}",
        "operation": "upload",
        "fileName": "{{ $json.name }}",
        "contentMode": "text",
        "contentField": "content",
        "folderId": "",
        "mimeType": "text/plain",
        "fileId": "",
        "query": "",
        "limit": 10,
        "baseUrl": "",
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Filed",
      "category": "utility",
      "config": {
        "message": "uploaded {{ $json.name }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "up",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "up",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "SETUP: add a “google-oauth2” credential in Admin → Credentials, then Test sends for real — the node is pre-wired with ${credential.…} references. Until then this demo saves and verifies but the send will report the missing credential. Uploads the signed contract PDF into the Contracts folder."
  }
}