{
  "nodes": [
    {
      "id": "f4570aad-db25-4dcd-8589-b1c8335935de",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        20,
        5220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "675243b0-080f-4d5e-a0ca-a0fe0e7c04a9",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        185,
        5140
      ],
      "parameters": {
        "color": 7,
        "width": 426.32566328767217,
        "height": 260.3707944299243,
        "content": "Docx \ud30c\uc77c\uc5d0\uc11c \uc774\ubbf8\uc9c0\ub97c \ucc3e\uc544 \ubc14\uafb8\uae30. \uc0bd\uc785\ud558\uace0 \uc2f6\uc740 \uc774\ubbf8\uc9c0 URL\uc774 \uc788\ub294 \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0 \uc5f0\uacb0\ud558\uc5ec Docx \ud30c\uc77c\uc5d0 \uc0bd\uc785\ud558\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "16bbf5da-5ebc-4e9c-8b3c-80d0077c51b8",
      "name": "Find Image ID in Docx",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        5220
      ],
      "parameters": {
        "url": "=https://docs.googleapis.com/v1/documents/{{$json.documentId}}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDocsOAuth2Api"
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "60325192-4730-4410-ae33-9127ff8cc5f7",
      "name": "Make file shareable publically (optional)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1360,
        5220
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.documentId }}"
        },
        "options": {},
        "operation": "share",
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone"
          }
        }
      },
      "typeVersion": 3
    },
    {
      "id": "6f254810-3ab8-4ec1-b964-8b399472acf3",
      "name": "Image URL",
      "type": "n8n-nodes-base.set",
      "notes": "Define Image URL",
      "position": [
        440,
        5220
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "cc2c6af0-68d3-49eb-85fe-3288d2ed0f6b",
              "name": "url",
              "type": "string",
              "value": "https://picsum.photos/id/400/300/300"
            }
          ]
        },
        "includeOtherFields": true
      },
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "d33a913a-2d98-4922-ba8d-5d325b114572",
      "name": "Find & Copy Docx Template",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        660,
        5220
      ],
      "parameters": {
        "name": "Chosen filename",
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": "1RQAX2CszNqw79gZxeocEZU0-KquTq3RQc2-5Uv1mgd0",
          "cachedResultUrl": "https://docs.google.com/document/d/1RQAX2CszNqw79gZxeocEZU0-KquTq3RQc2-5Uv1mgd0/edit?usp=drivesdk",
          "cachedResultName": "Marketing Plan (template)"
        },
        "options": {},
        "operation": "copy"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "1f43d321-eddf-4008-99e2-9338cc85bad2",
      "name": "Sticky Note42",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        5420
      ],
      "parameters": {
        "color": 3,
        "width": 415.45208033736463,
        "height": 105.04337297263078,
        "content": "\uc774\ubbf8\uc9c0 URL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc5f0\uacb0\ud558\uc5ec \uc785\ub825\ud558\uc138\uc694. \uc5f4 \uc774\ub984\uc744 `Image URL` \ub178\ub4dc\ucc98\ub7fc `url`\ub85c \uc9c0\uc815\ud558\uc138\uc694. \uc774 \ud750\ub984\uc740 \uc774\ubbf8\uc9c0 URL\ub9cc \uc9c0\uc6d0\ud558\uba70, \uc2e4\uc81c \uc774\ubbf8\uc9c0 \ud30c\uc77c\uc740 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "0e1bb319-8429-4bde-88a3-9fd69df7c986",
      "name": "Own datasource",
      "type": "n8n-nodes-base.noOp",
      "position": [
        240,
        5220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d534cc1f-e651-4c06-860b-ce3d3c648964",
      "name": "Sticky Note43",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        5420
      ],
      "parameters": {
        "color": 2,
        "width": 415.45208033736463,
        "height": 222.7191963089109,
        "content": "\uc5ec\ub7ec \ubb38\uc11c\uc5d0 \uc5ec\ub7ec \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud558\ub824\uba74, \uad50\uccb4\ud560 \ud50c\ub808\uc774\uc2a4\ud640\ub354 \uc774\ubbf8\uc9c0\uac00 \uc788\ub294 \ud15c\ud50c\ub9bf\uc744 GDrive \ud3f4\ub354\uc5d0 \uc0dd\uc131\ud558\uc138\uc694. \uc774 \ud15c\ud50c\ub9bf\uc740 \ud50c\ub85c\uc6b0\ub97c \uc2e4\ud589\ud560 \ub54c\ub9c8\ub2e4 \ubcf5\uc0ac\ub418\uba70, \uc0c8 \ubb38\uc11c\uc758 ID\uac00 `find image ID in Docx`\uc5d0 \uc804\ub2ec\ub418\uc5b4 \ud574\ub2f9 \uc774\ubbf8\uc9c0\ub97c \uc774\ubbf8\uc9c0 URL\ub85c \uad50\uccb4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e8\uc77c \ubb38\uc11c\uc5d0\ub9cc \uc801\uc6a9\ud558\ub294 \uacbd\uc6b0 `find and copy docx template` \ub178\ub4dc\ub97c \uc81c\uac70\ud558\uc138\uc694. \uc774 \ub2e8\uacc4\ub97c \uc218\ud589\ud558\ub294 \uacbd\uc6b0, GDrive \uacc4\uc815\uc5d0 \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c [n8n guide](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive/)\ub97c \ub530\ub974\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "b6a22eb4-0b13-4eb5-be40-ed2dfedf99b5",
      "name": "Sticky Note44",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        5120
      ],
      "parameters": {
        "color": 7,
        "width": 169.22824698060023,
        "height": 278.7193163441844,
        "content": "\uc120\ud0dd \uc0ac\ud56d - Google Drive \ud3f4\ub354\uc5d0 \ud15c\ud50c\ub9bf \ubb38\uc11c\ub97c \uc0dd\uc131\ud558\uace0 \ubcf5\uc0ac\ud558\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "25d2a7c0-cef7-4aaf-9bb8-fe9c83d73731",
      "name": "Sticky Note45",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        853,
        5120
      ],
      "parameters": {
        "color": 7,
        "width": 435.22861330045936,
        "height": 278.7193163441844,
        "content": "\ud15c\ud50c\ub9bf \ubb38\uc11c\uc758 \ubb38\uc11c \uc138\ubd80 \uc815\ubcf4(\uc774\ubbf8\uc9c0 ID \ud3ec\ud568)\ub97c \uac80\uc0c9\ud558\uae30 \uc704\ud574 Google API\uc5d0 \uc694\uccad\uc744 \ubcf4\ub0c4"
      },
      "typeVersion": 1
    },
    {
      "id": "f8dcb709-5505-4c63-afe9-83a0dfb608e9",
      "name": "Replace Image in Docx",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1100,
        5220
      ],
      "parameters": {
        "url": "=https://docs.googleapis.com/v1/documents/{{$json.documentId}}:batchUpdate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"requests\": [\n    {\n      \"replaceImage\": {\n        \"imageObjectId\": {{ $json.body.content[1].paragraph.elements[0].inlineObjectElement.inlineObjectId }},\n        \"uri\": \"{{ $('Image URL').item.json.url }}\",\n        \"imageReplaceMethod\": \"CENTER_CROP\"\n      }\n    }\n  ]\n} ",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDocsOAuth2Api"
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "f800131b-e8d3-4741-8e8d-ad208e53ebe7",
      "name": "Sticky Note46",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        5420
      ],
      "parameters": {
        "color": 3,
        "width": 297.15093794343295,
        "height": 373.0766632058715,
        "content": "**\ud544\uc218**\n\n- Google Docs OAuth 2 API \uc790\uaca9 \uc99d\uba85\uc744 [\uc790\uc2e0\uc758 \uac83\uc73c\ub85c](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledocs/) \uc5c5\ub370\uc774\ud2b8\ud558\uc138\uc694\n- \uc774\uc804 \ub2e8\uacc4\ub97c \uc81c\uac70\ud55c \uacbd\uc6b0 Document ID\uac00 `Find Image ID in Docx`\uc5d0 \uc62c\ubc14\ub974\uac8c \uc804\ub2ec\ub418\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694\n- `Replace Image in Docx` \ub178\ub4dc\uc758 `imageObjectId`\uac00 \uc62c\ubc14\ub978\uc9c0 \ud655\uc778\ud558\uc138\uc694. \ubb38\uc11c\uc5d0 \ub2e8\uc77c \uc774\ubbf8\uc9c0\ub9cc \uc788\ub294 \uacbd\uc6b0 \uc774\uc804 \ub178\ub4dc\uc5d0\uc11c \ubc18\ud658\ub41c `\"{{ $json.body.content[1].paragraph.elements[0].inlineObjectElement.inlineObjectId }}\"`\ub97c \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ubbf8\uc9c0\uac00 \ub450 \uac1c \uc774\uc0c1\uc778 \uacbd\uc6b0 id\ub294 \uc774\uc804 \ub178\ub4dc\uc758 `\"body.content[1].paragraph.positionedObjectIds[0]\"` \uac1d\uccb4\uc5d0 \uc911\ucca9\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "0cdad7ae-e407-4c21-b454-8b2824e2b6d4",
      "name": "Sticky Note47",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        5420
      ],
      "parameters": {
        "color": 2,
        "width": 747.7707439712262,
        "height": 222.7191963089109,
        "content": "**\uc120\ud0dd\uc0ac\ud56d**  \n- \ud30c\uc77c\uc744 \uacf5\uac1c\uc801\uc73c\ub85c \uacf5\uc720 \uac00\ub2a5\ud558\uac8c \ud558\uc138\uc694 (\ub204\uad6c\ub098 \ubcfc/\ud3b8\uc9d1\ud560 \uc218 \uc788\uc74c)  \n- \ud30c\uc77c\uc744 Docx\ub85c \ub2e4\uc6b4\ub85c\ub4dc  \n- \ud30c\uc77c\uc744 PDF\ub85c \ub2e4\uc6b4\ub85c\ub4dc  \n\n\uc704\uc758 \ubaa8\ub4e0 \uc791\uc5c5\uc740 \uadc0\ud558\uc758 GDrive \uacc4\uc815\uc73c\ub85c \uc778\uc99d\ud558\ub294 \uac83\uc744 \uc694\uad6c\ud558\uba70, `documentID`\uac00 \uc774\uc804 \ub178\ub4dc\uc5d0\uc11c \uc62c\ubc14\ub974\uac8c \uac00\uc838\uc640\uc9c0\ub3c4\ub85d \ud655\uc778\ud558\uace0, \uad00\ub828\uc774 \uc788\uc73c\uba74 `filename`\uc744 \uc120\ud0dd\ud558\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "fa6a214e-b6c5-403a-884a-d915f5a1362f",
      "name": "Download File - Docx",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1580,
        5220
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.documentId }}"
        },
        "options": {},
        "operation": "download"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "399e08ae-864d-4ffa-bc18-d82e03e30f7c",
      "name": "Download File - PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1800,
        5220
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.documentId }}"
        },
        "options": {
          "fileName": "=filename - PDF",
          "googleFileConversion": {
            "conversion": {
              "docsToFormat": "application/pdf"
            }
          }
        },
        "operation": "download"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "0855b49a-dca3-4da8-8e22-4294523798d7",
      "name": "Sticky Note48",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1320,
        5120
      ],
      "parameters": {
        "color": 7,
        "width": 683.4764182113373,
        "height": 278.7193163441844,
        "content": "\uc120\ud0dd\uc0ac\ud56d - \ud30c\uc77c\uc744 \uacf5\uc720 \uac00\ub2a5\ud558\uac8c \ud558\uba70, docx \ubc0f PDF \ud615\uc2dd\uc73c\ub85c \ub2e4\uc6b4\ub85c\ub4dc"
      },
      "typeVersion": 1
    },
    {
      "id": "d4a2e23d-9c14-4b0c-8fd3-99a981d2f39b",
      "name": "Sticky Note49",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        4960
      ],
      "parameters": {
        "color": 4,
        "width": 773.6179704580734,
        "height": 875.8289847608302,
        "content": "## Google Docs \ubb38\uc11c\uc5d0\uc11c \uc774\ubbf8\uc9c0 \uad50\uccb4 \ubc0f PDF/Docx\ub85c \ub2e4\uc6b4\ub85c\ub4dc\n\n## \uc0ac\uc6a9 \uc0ac\ub840\nGoogle Docs\uc5d0\uc11c \uc774\ubbf8\uc9c0 \uad50\uccb4\ub97c \uc790\ub3d9\ud654\ud569\ub2c8\ub2e4:\n- \ubb38\uc11c \uc774\ubbf8\uc9c0\ub97c \ub3d9\uc801\uc73c\ub85c \uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \ub54c\n- \ub2e4\uc591\ud55c \uc774\ubbf8\uc9c0\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud15c\ud50c\ub9bf\uc758 \uc5ec\ub7ec \ubc84\uc804\uc744 \uc0dd\uc131\ud558\uace0 \uc2f6\uc744 \ub54c\n- URL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c \ubb38\uc11c \uc774\ubbf8\uc9c0\ub97c \uc77c\uad04 \ucc98\ub9ac\ud574\uc57c \ud560 \ub54c\n- \ub9de\ucda4\ud615 \uc774\ubbf8\uc9c0\uac00 \ud3ec\ud568\ub41c \uacf5\uc720 \uac00\ub2a5\ud55c \ubb38\uc11c\ub97c \uc0dd\uc131\ud558\uace0 \uc2f6\uc744 \ub54c\n\n## \uc774 \uc6cc\ud06c\ud50c\ub85c\uac00 \ud558\ub294 \uc77c\n\uc6cc\ud06c\ud50c\ub85c\ub294 Google Docs\uc5d0\uc11c \uc774\ubbf8\uc9c0 \uad50\uccb4\ub97c \uc790\ub3d9\ud654\ud569\ub2c8\ub2e4:\n- \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c \uc774\ubbf8\uc9c0 URL\uc744 \uc218\ub77d\ud569\ub2c8\ub2e4\n- \ud15c\ud50c\ub9bf \ubb38\uc11c\uc5d0\uc11c \uc774\ubbf8\uc9c0\ub97c \ucc3e\uc544 \uad50\uccb4\ud569\ub2c8\ub2e4\n- \uc5c5\ub370\uc774\ud2b8\ub41c \uc774\ubbf8\uc9c0\ub85c \uc0c8 \ubb38\uc11c \uc0ac\ubcf8\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4\n- \uc120\ud0dd\uc801\uc73c\ub85c PDF\ub85c \ubcc0\ud658\ud558\uace0 \ubb38\uc11c\ub97c \uacf5\uc720 \uac00\ub2a5\ud558\uac8c \ub9cc\ub4ed\ub2c8\ub2e4\n\n## \uc124\uc815\n1. \uc774\ubbf8\uc9c0 URL \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 (\uc5f4 \uc774\ub984\uc740 \"url\"\uc774\uc5b4\uc57c \ud568)\n2. [Google Docs OAuth 2 API \uc790\uaca9 \uc99d\uba85 \uc124\uc815](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledocs/)\n3. \uc120\ud0dd \uc0ac\ud56d: Google Drive\uc5d0 \ud50c\ub808\uc774\uc2a4\ud640\ub354 \uc774\ubbf8\uc9c0\uac00 \uc788\ub294 \ud15c\ud50c\ub9bf \ubb38\uc11c \uc0dd\uc131\n4. \uc120\ud0dd \uc0ac\ud56d: \ucd94\uac00 \uae30\ub2a5\uc5d0 [Google Drive \uc778\uc99d \uad6c\uc131](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive/)\n\n## \ud544\uc694\uc5d0 \ub9de\uac8c \uc870\uc815\ud558\ub294 \ubc29\ubc95\n- \ub2e8\uc77c \ubb38\uc11c \ucc98\ub9ac\uc758 \uacbd\uc6b0 \ud15c\ud50c\ub9bf \ubcf5\uc0ac \uc81c\uac70\n- \uc5ec\ub7ec \uc774\ubbf8\uc9c0\uac00 \uc788\ub294 \ubb38\uc11c\uc758 \uacbd\uc6b0 \uc774\ubbf8\uc9c0 ID \uc120\ud0dd \uc870\uc815\n- \uacf5\uc720 \uc124\uc815\uacfc \ub2e4\uc6b4\ub85c\ub4dc \ud615\uc2dd \uad6c\uc131\n- \ud30c\uc77c \uc774\ub984\uacfc \uc800\uc7a5 \uc704\uce58 \uc0ac\uc6a9\uc790 \uc815\uc758\n\nSimon\uc774 \ub9cc\ub4e0 @ [automake.io](https://automake.io)"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Image URL": {
      "main": [
        [
          {
            "node": "Find & Copy Docx Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Own datasource": {
      "main": [
        [
          {
            "node": "Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File - Docx": {
      "main": [
        [
          {
            "node": "Download File - PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Image ID in Docx": {
      "main": [
        [
          {
            "node": "Replace Image in Docx",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Image in Docx": {
      "main": [
        [
          {
            "node": "Make file shareable publically (optional)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find & Copy Docx Template": {
      "main": [
        [
          {
            "node": "Find Image ID in Docx",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Own datasource",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make file shareable publically (optional)": {
      "main": [
        [
          {
            "node": "Download File - Docx",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}