{
  "name": "Send a weekly Keephub task progress report to Slack",
  "nodes": [
    {
      "id": "0f418647-b9b5-4544-a6a8-caca65e976e6",
      "name": "Every Monday 9am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        544,
        1056
      ]
    },
    {
      "id": "c0db31a3-ec69-4801-b13a-d069fb85b7ab",
      "name": "Last Week Start",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        768,
        1152
      ]
    },
    {
      "id": "dab8e77c-f899-47ae-9b96-4c1109845877",
      "name": "Get Tasks by Orgunit",
      "type": "n8n-nodes-keephub.keephub",
      "position": [
        1216,
        1152
      ]
    },
    {
      "id": "fa6f817a-0783-4fbc-b4c6-30fcf25f1443",
      "name": "Extract Task Template IDs",
      "type": "n8n-nodes-base.code",
      "position": [
        1440,
        1152
      ]
    },
    {
      "id": "6682cd7c-3821-4d9c-8034-a2d67166bcf7",
      "name": "Get Progress",
      "type": "n8n-nodes-keephub.keephub",
      "position": [
        1664,
        1080
      ]
    },
    {
      "id": "a6f4583e-44e1-44b2-8413-9b50de3ab60a",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1888,
        1152
      ]
    },
    {
      "id": "98526c0c-4628-45c0-9625-5e6abc8a82be",
      "name": "Format for Message",
      "type": "n8n-nodes-base.code",
      "position": [
        2112,
        1152
      ]
    },
    {
      "id": "cfe0c410-9be3-4f18-adcb-cce04b312527",
      "name": "Last Week End",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        992,
        1152
      ]
    },
    {
      "id": "fbb78b41-40af-4e8d-b231-375c38212d2e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        1040
      ],
      "parameters": {
        "width": 400,
        "height": 80,
        "content": "Dates can be set per your needs, so you can easily change this into a monthly report.\n"
      }
    },
    {
      "id": "bf3c1a06-47d8-4daf-b8f1-00a93c3aeabd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        1024
      ],
      "parameters": {
        "width": null,
        "height": 96,
        "content": "Formats the message so it can be sent to the communication channel of your choice"
      }
    },
    {
      "id": "fda93213-48f8-4577-a8c8-e3bb1afe782d",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        2336,
        1152
      ]
    },
    {
      "id": "4b5c9566-0aef-40e9-9eb5-95f749449850",
      "name": "Or Manually Run",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        544,
        1248
      ]
    },
    {
      "id": "f564a65a-bacb-48ec-839b-7bf02eaa8252",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        560
      ],
      "parameters": {
        "width": 336,
        "height": 416,
        "content": "## 📊 Keephub Weekly Task Report\n\nFetches all tasks for an org unit from the past week, \ngets their progress, and sends a formatted Slack summary.\n\n**Setup:**\n1. Add your Keephub Login credential\n2. Ad"
      }
    },
    {
      "id": "2d4e741a-6313-46c5-93a0-5d7614341504",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        1040
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "⚙️ Change `orgunitId` to your root org unit ID.\n"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Format for Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Progress": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Last Week End": {
      "main": [
        [
          {
            "node": "Get Tasks by Orgunit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Last Week Start": {
      "main": [
        [
          {
            "node": "Last Week End",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Or Manually Run": {
      "main": [
        [
          {
            "node": "Last Week Start",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every Monday 9am": {
      "main": [
        [
          {
            "node": "Last Week Start",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format for Message": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Tasks by Orgunit": {
      "main": [
        [
          {
            "node": "Extract Task Template IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Task Template IDs": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "Get Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}