{
  "id": "Aj0B0tfHgAYgFAZh",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Daily Mail Scheduler",
  "tags": [],
  "nodes": [
    {
      "id": "3f436ab2-5937-4e74-8ee1-601181655406",
      "name": "When clicking \u2018Execute workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -380,
        -100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a7566e68-2613-4cd8-9307-ecdabb10cb9d",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -120,
        -100
      ],
      "parameters": {
        "options": {},
        "sheetName": "YOUR_SHEET_NAME",
        "documentId": "YOUR_SHEET_ID"
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "e424a6a7-25ac-4258-8ec2-63f25c4ce2cb",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        120,
        -100
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "7e87aee9-3061-4daf-ae3c-0fed5ed1480b",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json['Due Date'] }}",
              "rightValue": "={{ $now.format('yyyy-MM-dd') }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "ba1beadf-7a42-4a50-b0e6-8476528ed4dd",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        340,
        -200
      ],
      "parameters": {
        "sendTo": "={{ $json.Email }}",
        "message": "={{ $json.Body }}",
        "options": {},
        "subject": "={{ $json.Subject }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "48622611-63c6-4ded-baa3-ab8eb91fc2af",
  "connections": {
    "If": [
      [
        {
          "node": "Send a message",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "Get row(s) in sheet": [
      [
        {
          "node": "If",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "When clicking \u2018Execute workflow\u2019": [
      [
        {
          "node": "Get row(s) in sheet",
          "type": "main",
          "index": 0
        }
      ]
    ]
  }
}