{
  "name": "Sync markdown files from Google Drive to Confluence pages automatically",
  "nodes": [
    {
      "id": "534a4954-1ab4-4a9e-a9b1-5a9b202221a4",
      "name": "File Created",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "b46bc406-fc97-48f2-b111-1bafabcd6f75",
      "name": "File Updated",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        0,
        176
      ]
    },
    {
      "id": "5638f976-16b6-4f3a-aa90-393aa435e0a8",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        416,
        -16
      ]
    },
    {
      "id": "56c2281c-b455-4860-85bf-984dea51356c",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        784,
        -16
      ]
    },
    {
      "id": "033bf57f-2369-4e0e-8a93-7e04376a34f5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -560
      ],
      "parameters": {
        "width": 1088,
        "height": 480,
        "content": "# Markdown to Confluence Auto Loader\nThis workflow monitors a folder in a Google Drive for changes every hour. If an .md file is uploaded or edited, the workflow will take the file and create a Conflu"
      }
    },
    {
      "id": "904b64b0-9e59-49e6-bbf9-30f28e3a3d08",
      "name": "If file ends in .md",
      "type": "n8n-nodes-base.if",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "bade8969-6098-4aa6-9a3e-2d3238ab50f5",
      "name": "Convert file to markdown string",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        608,
        -16
      ]
    },
    {
      "id": "448f9908-f20c-4932-b248-3b5b60785ed8",
      "name": "If Trigger was File Created",
      "type": "n8n-nodes-base.if",
      "position": [
        992,
        -16
      ]
    },
    {
      "id": "d3b4b515-fc4e-41b0-946e-8c8dbaa659da",
      "name": "Create Confluence Page",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        -32
      ]
    },
    {
      "id": "eeb14b03-e534-4526-bb26-6a57b16458d8",
      "name": "Update Confluence Page",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        176
      ]
    },
    {
      "id": "c1537cc7-8b92-4bf5-ae07-a02c2e5fbc9e",
      "name": "Get Page ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        176
      ]
    }
  ],
  "connections": {
    "Markdown": {
      "main": [
        [
          {
            "node": "If Trigger was File Created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Page ID": {
      "main": [
        [
          {
            "node": "Update Confluence Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Created": {
      "main": [
        [
          {
            "node": "If file ends in .md",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Updated": {
      "main": [
        [
          {
            "node": "If file ends in .md",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Convert file to markdown string",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If file ends in .md": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Trigger was File Created": {
      "main": [
        [
          {
            "node": "Create Confluence Page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Page ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert file to markdown string": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}