{
  "name": "Auto-convert OneDrive Word documents to PDF with Foxit and send via Gmail",
  "nodes": [
    {
      "id": "d4319891-723a-4492-ad66-effc03dc642d",
      "name": "Microsoft OneDrive Trigger",
      "type": "n8n-nodes-base.microsoftOneDriveTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "beec5178-3de1-44a0-9f53-6d40deae295e",
      "name": "Get File",
      "type": "n8n-nodes-base.microsoftOneDrive",
      "position": [
        480,
        0
      ]
    },
    {
      "id": "39a5e363-80fd-49d3-98f7-6c868fa6189e",
      "name": "Set File Field",
      "type": "n8n-nodes-base.set",
      "position": [
        700,
        0
      ]
    },
    {
      "id": "58633032-2696-4f47-8b78-e5550c108fe4",
      "name": "Convert to PDF",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1160,
        0
      ]
    },
    {
      "id": "0d452501-d57c-48b0-96e3-1e553580db98",
      "name": "Filter to Word",
      "type": "n8n-nodes-base.filter",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "5ad3be23-cbda-4710-bb24-e522981e6b75",
      "name": "Upload to Foxit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        920,
        0
      ]
    },
    {
      "id": "e1874368-beb4-43ef-83d0-9e203fdee282",
      "name": "Check Task",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1380,
        0
      ]
    },
    {
      "id": "d28c9c29-8c3a-4bae-890d-72998bc87f1f",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1980,
        100
      ]
    },
    {
      "id": "8e42d320-6c61-4669-9ed0-a957fa802e18",
      "name": "Is the job done?",
      "type": "n8n-nodes-base.if",
      "position": [
        1600,
        0
      ]
    },
    {
      "id": "62b6aee1-6dea-4511-97f8-0604377ef29c",
      "name": "Download",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        -80
      ]
    },
    {
      "id": "a89ed3e9-0fb1-4fb4-a3f9-627399602783",
      "name": "Email PDF",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2400,
        -60
      ]
    },
    {
      "id": "7454b3fc-cce6-4ea7-a0c1-a3a17f86cbc4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        -220
      ],
      "parameters": {
        "width": 1460,
        "height": 640,
        "content": "## Foxit PDF Services\n\nThis block handles the integration with [Foxit PDF Services](https://developer-api.foxit.com/pdf-services/). You will need to get your own credentials to let this work."
      }
    },
    {
      "id": "6ca1406b-ee37-4df7-b1df-628cc9d55f40",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -560
      ],
      "parameters": {
        "width": 700,
        "height": 360,
        "content": "## Requirements\n\nThis flow makes use of three things that you'll need to setup. First, is an active OneDrive account with a specific folder ID. That be a bit tricky and you *could* modify it to just u"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Is the job done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download": {
      "main": [
        [
          {
            "node": "Email PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File": {
      "main": [
        [
          {
            "node": "Set File Field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Task": {
      "main": [
        [
          {
            "node": "Is the job done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to PDF": {
      "main": [
        [
          {
            "node": "Check Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter to Word": {
      "main": [
        [
          {
            "node": "Get File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set File Field": {
      "main": [
        [
          {
            "node": "Upload to Foxit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Foxit": {
      "main": [
        [
          {
            "node": "Convert to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is the job done?": {
      "main": [
        [
          {
            "node": "Download",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Microsoft OneDrive Trigger": {
      "main": [
        [
          {
            "node": "Filter to Word",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}