{
  "name": "Exporting Tawk.to help center articles to Google Drive as markdown files",
  "nodes": [
    {
      "id": "9770c9f4-d4f1-43fe-8387-f38139f31324",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -384,
        0
      ]
    },
    {
      "id": "33a657d2-0a87-4d82-8fb0-1b6326442cd8",
      "name": "set-website",
      "type": "n8n-nodes-base.set",
      "position": [
        -96,
        0
      ]
    },
    {
      "id": "ec165cd0-5314-4219-9578-2ede97ce0715",
      "name": "flat-categories",
      "type": "n8n-nodes-base.code",
      "position": [
        576,
        0
      ]
    },
    {
      "id": "182e4ae5-96ac-4131-9cc8-eb7088e9827b",
      "name": "website-category",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        0
      ]
    },
    {
      "id": "00d061cd-a7e2-4d4c-a3dd-c1933db66d06",
      "name": "find-categories",
      "type": "n8n-nodes-base.html",
      "position": [
        368,
        0
      ]
    },
    {
      "id": "60dff3dc-3bd6-4b3a-ba75-1517c2d3c32f",
      "name": "find-category-articles",
      "type": "n8n-nodes-base.html",
      "position": [
        1040,
        0
      ]
    },
    {
      "id": "a4584b98-16fd-4e9a-a1f8-cbde40534c09",
      "name": "flat-articles",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        0
      ]
    },
    {
      "id": "e50f7dd2-f49d-41a1-9417-23c3249de3c4",
      "name": "website-article",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2432,
        48
      ]
    },
    {
      "id": "13b9fce6-14b3-4cec-a422-bd39ae48b8c9",
      "name": "extract-article-content",
      "type": "n8n-nodes-base.html",
      "position": [
        2656,
        48
      ]
    },
    {
      "id": "9b783e77-8acb-4464-8b9f-80fa12a2b030",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1616,
        0
      ]
    },
    {
      "id": "dde825bd-056d-40d2-911b-95a08f47c495",
      "name": "Create file from text",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3136,
        48
      ]
    },
    {
      "id": "7218b9c2-1ed3-4fba-ab3c-32b2b7f82029",
      "name": "Search files and folders",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1872,
        16
      ]
    },
    {
      "id": "8d1d59fe-cf7a-4ac3-8197-38eafdfcea22",
      "name": "is-duplicated",
      "type": "n8n-nodes-base.if",
      "position": [
        2112,
        16
      ]
    },
    {
      "id": "a272f41d-2857-4a65-8377-5763020a81a2",
      "name": "Config",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -160
      ],
      "parameters": {
        "width": 288,
        "height": 480,
        "content": "# Config\nPut your website to extract here"
      }
    },
    {
      "id": "b184ceb0-8987-4614-b5d5-b2e22df0e19c",
      "name": "Search",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -160
      ],
      "parameters": {
        "width": 1328,
        "height": 480,
        "content": "# Search Process\n1) Here we'll find all articles on your website\n2) Extract all urls"
      }
    },
    {
      "id": "cb1ef077-b03e-4933-812d-b399b3d1c473",
      "name": "Extraction",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -160
      ],
      "parameters": {
        "width": 1984,
        "height": 480,
        "content": "# Extraction\n1) For this you have to configure your Google Drive Access\n2) We'll extract all HTMl content\n3) Conversion for Markdown\n4) Upload to Google Drive"
      }
    },
    {
      "id": "b8830bcc-6cd8-4628-a1ee-3b876da291fb",
      "name": "Workflow Information",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        -208
      ],
      "parameters": {
        "width": 528,
        "height": 560,
        "content": "# ⚙️ How the Workflow Works\n\nThe Tawk Help Export workflow in n8n automates the export of all articles from the Tawk.to Help Center to Google Drive, converting each page into a Markdown (.md) file.\n\nS"
      }
    },
    {
      "id": "ae2caf7b-64bc-41f1-8af7-045b6eac6759",
      "name": "get-website-home",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        144,
        0
      ]
    },
    {
      "id": "35a3545d-d8b9-41fe-8aa1-cca237e920a6",
      "name": "convert-to-markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        2896,
        48
      ]
    }
  ],
  "connections": {
    "set-website": {
      "main": [
        [
          {
            "node": "get-website-home",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "flat-articles": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "is-duplicated": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "website-article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Search files and folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "find-categories": {
      "main": [
        [
          {
            "node": "flat-categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "flat-categories": {
      "main": [
        [
          {
            "node": "website-category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "website-article": {
      "main": [
        [
          {
            "node": "extract-article-content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-website-home": {
      "main": [
        [
          {
            "node": "find-categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "website-category": {
      "main": [
        [
          {
            "node": "find-category-articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "convert-to-markdown": {
      "main": [
        [
          {
            "node": "Create file from text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create file from text": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "find-category-articles": {
      "main": [
        [
          {
            "node": "flat-articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "extract-article-content": {
      "main": [
        [
          {
            "node": "convert-to-markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search files and folders": {
      "main": [
        [
          {
            "node": "is-duplicated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "set-website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}