{
  "openruna_format": "flow-graph-v1",
  "title": "Archive empty pages in Notion Database",
  "slug": "archive-empty-pages-in-notion-database",
  "source_filename": "0070_Splitinbatches_Notion_Export_Scheduled.json",
  "nodes": [
    {
      "id": "Get All Databases",
      "name": "Get All Databases",
      "integration": "notion",
      "kind": "action"
    },
    {
      "id": "Get All Database Pages",
      "name": "Get All Database Pages",
      "integration": "notion",
      "kind": "action"
    },
    {
      "id": "Get Page Blocks",
      "name": "Get Page Blocks",
      "integration": "notion",
      "kind": "action"
    },
    {
      "id": "Process Blocks",
      "name": "Process Blocks",
      "integration": "function",
      "kind": "action"
    },
    {
      "id": "SplitInBatches",
      "name": "SplitInBatches",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Check for empty properties",
      "name": "Check for empty properties",
      "integration": "function",
      "kind": "action"
    },
    {
      "id": "Archive Page",
      "name": "Archive Page",
      "integration": "notion",
      "kind": "action"
    },
    {
      "id": "If toDelete",
      "name": "If toDelete",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "If Empty Properties",
      "name": "If Empty Properties",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Every day @ 2am",
      "name": "Every day @ 2am",
      "integration": "cron",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If toDelete",
      "to": "Archive Page"
    },
    {
      "from": "Process Blocks",
      "to": "If toDelete"
    },
    {
      "from": "Process Blocks",
      "to": "SplitInBatches"
    },
    {
      "from": "SplitInBatches",
      "to": "Get Page Blocks"
    },
    {
      "from": "Every day @ 2am",
      "to": "Get All Databases"
    },
    {
      "from": "Get Page Blocks",
      "to": "Process Blocks"
    },
    {
      "from": "Get All Databases",
      "to": "Get All Database Pages"
    },
    {
      "from": "If Empty Properties",
      "to": "SplitInBatches"
    },
    {
      "from": "Get All Database Pages",
      "to": "Check for empty properties"
    },
    {
      "from": "Check for empty properties",
      "to": "If Empty Properties"
    }
  ]
}