{
  "name": "Daily checkin",
  "nodes": [
    {
      "parameters": {
        "docId": "L66B7SW8ok",
        "tableId": "grid-M_wTyWObJS",
        "options": {}
      },
      "name": "Coda",
      "type": "n8n-nodes-base.coda",
      "typeVersion": 1,
      "position": [
        1300,
        280
      ],
      "id": "615c96a0-6910-4358-85fc-d4dc37e132ea",
      "credentials": {
        "codaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "mode": "custom",
              "cronExpression": "0 9 * * 1-5"
            }
          ]
        }
      },
      "name": "Cron",
      "type": "n8n-nodes-base.cron",
      "typeVersion": 1,
      "position": [
        300,
        300
      ],
      "id": "525d1e17-9892-44b6-89b2-6b388b1aca2b"
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://hooks.slack.com/workflows/<obfuscated for privacy reasons>",
        "options": {},
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "=greeting",
              "value": "={{$json[\"Greetings\"]}}"
            }
          ]
        }
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        1700,
        500
      ],
      "id": "5beb4526-27d2-4b92-9c48-a521f376e4bb"
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json[\"Date\"] }}",
              "operation": "isNotEmpty"
            }
          ]
        },
        "combineOperation": "any"
      },
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "notesInFlow": true,
      "id": "823c499b-4b87-4375-b038-8d31edc355bb",
      "notes": "Todays date not found in vacation list"
    },
    {
      "parameters": {
        "sheetId": "<obfuscated for privacy reasons>",
        "range": "Greetings!A:A",
        "options": {}
      },
      "name": "Google Sheets - Greetings",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        1300,
        500
      ],
      "id": "b2806c78-37d4-45cb-bef3-33c6f69d98d0",
      "alwaysOutputData": false,
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "var epoch = new Date(\"01/01/1900\");\nvar now = new Date();\nitems[0].json.epoch_date = Math.floor((now.getTime() - epoch.getTime()) / (1000 * 3600 * 24)) + 2;\nreturn items;"
      },
      "id": "41336d75-786e-4061-a6f1-7984495193f9",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "operation": "lookup",
        "sheetId": "<obfuscated for privacy reasons>",
        "range": "A:A",
        "lookupColumn": "Date",
        "lookupValue": "={{$json[\"epoch_date\"]}}",
        "options": {
          "continue": true
        }
      },
      "name": "Google Sheets - holidays",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        700,
        300
      ],
      "alwaysOutputData": true,
      "id": "ddbb2c10-7476-42b8-bdad-7dd5902a53c4",
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "return items[Math.floor(Math.random() * items.length)];"
      },
      "id": "e739f088-d4e8-46a4-9832-5b8f37d92add",
      "name": "Get random greeting",
      "type": "n8n-nodes-base.code",
      "typeVersion": 1,
      "position": [
        1500,
        500
      ]
    }
  ],
  "connections": {
    "Cron": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [],
        [
          {
            "node": "Coda",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Sheets - Greetings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets - Greetings": {
      "main": [
        [
          {
            "node": "Get random greeting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Google Sheets - holidays",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets - holidays": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get random greeting": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "timezone": "Europe/Madrid"
  },
  "versionId": "30281899-0814-4151-a7ae-29b170dc5abd",
  "id": "1",
  "tags": []
}