{
  "name": "Automated task generation from blueprints with Baserow & weekend-aware scheduling",
  "nodes": [
    {
      "id": "0a933c3b-9f6b-4f45-97ec-e3cc4d343a97",
      "name": "Generate tasks in batch",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1312,
        544
      ]
    },
    {
      "id": "95e2115f-702f-42dc-8320-605727f05017",
      "name": "Aggregate tasks for insert",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1088,
        544
      ]
    },
    {
      "id": "ada410ae-504e-418b-9a5c-cdeec042e68c",
      "name": "Error response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1536,
        640
      ]
    },
    {
      "id": "d980e86e-b261-4ddf-b73d-45dd3b9fbf56",
      "name": "Get all template steps",
      "type": "n8n-nodes-base.baserow",
      "position": [
        416,
        544
      ]
    },
    {
      "id": "12f6eb7e-1dd5-4d67-995f-493d58197d46",
      "name": "Trigger task creation",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -32,
        544
      ]
    },
    {
      "id": "e188e6da-2de1-4dfb-a203-0319ff720a80",
      "name": "Avoid scheduling during the weekend",
      "type": "n8n-nodes-base.code",
      "position": [
        864,
        544
      ]
    },
    {
      "id": "907e6348-ec6f-434b-b7b2-4568d2a27e7d",
      "name": "Calculate deadlines for each step",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        544
      ]
    },
    {
      "id": "2514909f-2cba-41b2-9a7f-0a7c4b41a61a",
      "name": "Configure settings and ids",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        544
      ]
    },
    {
      "id": "8f2b7922-2f35-427e-8b65-5c1220122000",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -112
      ],
      "parameters": {
        "width": 928,
        "height": 1920,
        "content": "This n8n template demonstrates how to automatically **create** **tasks** (or in general, records) in Baserow based on template or blueprint tables. The first blueprint table is the **master table** th"
      }
    },
    {
      "id": "df72abe3-8919-4854-ace5-0a35ed2a25c9",
      "name": "Success response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1536,
        448
      ]
    },
    {
      "id": "3ec01ca3-cbb1-4932-8a26-63609021fb43",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        736
      ],
      "parameters": {
        "width": 688,
        "height": 944,
        "content": "## Trigger task creation\n\nThe following information must be passed in the body of the request\n```json\n        {\n            \"assignee_id\": integer,\n            \"template_id\": integer,\n            \"sch"
      }
    },
    {
      "id": "4e516ff5-099a-4c9f-a881-846b6d1d25b6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        160
      ],
      "parameters": {
        "width": 512,
        "height": 352,
        "content": "## Configure settings and ids\n\n* API host: the path to the API of your instance. This is https://api.baserow.io when using the cloud instance.\n* Token: a token you need to generate for the database. C"
      }
    }
  ],
  "connections": {
    "Trigger task creation": {
      "main": [
        [
          {
            "node": "Configure settings and ids",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all template steps": {
      "main": [
        [
          {
            "node": "Calculate deadlines for each step",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate tasks in batch": {
      "main": [
        [
          {
            "node": "Success response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate tasks for insert": {
      "main": [
        [
          {
            "node": "Generate tasks in batch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure settings and ids": {
      "main": [
        [
          {
            "node": "Get all template steps",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate deadlines for each step": {
      "main": [
        [
          {
            "node": "Avoid scheduling during the weekend",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Avoid scheduling during the weekend": {
      "main": [
        [
          {
            "node": "Aggregate tasks for insert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}