{
  "name": "2-way-sync assignments/completion between Canvas LMS and Notion",
  "nodes": [
    {
      "id": "6499272f-d3ba-42ad-a81b-2545588c233d",
      "name": "Compare Datasets",
      "type": "n8n-nodes-base.compareDatasets",
      "position": [
        960,
        720
      ]
    },
    {
      "id": "f9116861-991b-4706-a085-692ca224db35",
      "name": "Get Item Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1380,
        800
      ]
    },
    {
      "id": "150f7823-2cd5-4d8b-b7ff-3599931d3eef",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1560,
        800
      ]
    },
    {
      "id": "37c9f59a-b719-4581-a655-ca29bc5bf0c2",
      "name": "Isn't locked",
      "type": "n8n-nodes-base.filter",
      "position": [
        1860,
        700
      ]
    },
    {
      "id": "d358bbc9-be68-4854-a502-7f9b46ffd72f",
      "name": "Is Canvas Complete?",
      "type": "n8n-nodes-base.if",
      "position": [
        1260,
        1040
      ]
    },
    {
      "id": "6d47f934-b8f2-49be-bfa8-9d20fbce89ef",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        720,
        780
      ]
    },
    {
      "id": "3df9cbdb-7741-43eb-8269-62286692362f",
      "name": "Planner",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        620
      ]
    },
    {
      "id": "1651eb13-e7d9-439e-b15f-af76034a735e",
      "name": "Notion is complete",
      "type": "n8n-nodes-base.filter",
      "position": [
        1460,
        1320
      ]
    },
    {
      "id": "c077c145-e378-47b0-a54d-a975688a26bc",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        500,
        780
      ]
    },
    {
      "id": "cf68e21c-e4b6-4cdb-a4d0-26765644a66b",
      "name": "Not an event",
      "type": "n8n-nodes-base.filter",
      "position": [
        1220,
        680
      ]
    },
    {
      "id": "7f62a67a-caec-427b-9538-cb32d796e30a",
      "name": "Update Override",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1840,
        1240
      ]
    },
    {
      "id": "a80b4902-f6f0-49d1-a51a-ab31d8eab566",
      "name": "Override Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        1640,
        1320
      ]
    },
    {
      "id": "c8cb72a7-b4c5-40a3-9a46-202bcbafef02",
      "name": "New Override",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1840,
        1400
      ]
    },
    {
      "id": "8ede1bdb-2e7d-4555-be1c-d89ded239908",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        500
      ],
      "parameters": {
        "width": 518.839856887148,
        "height": 80,
        "content": "## Add new Canvas assignments to Notion"
      }
    },
    {
      "id": "97698dc4-f8ce-44a1-bf78-87ff21bc8768",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        940
      ],
      "parameters": {
        "width": 518.839856887148,
        "height": 80,
        "content": "### If an assignment is submitted on Canvas, complete it on Notion"
      }
    },
    {
      "id": "5aef8e5f-249d-4b83-bf52-94b9f7079fc0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        1200
      ],
      "parameters": {
        "width": 518.839856887148,
        "height": 80,
        "content": "### If I mark an assignment as submitted on Notion, complete it on Canvas"
      }
    },
    {
      "id": "f95585f4-2672-45b6-9a5b-a3351dabb375",
      "name": "Merge Item Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1700,
        700
      ]
    },
    {
      "id": "d406a907-8190-429e-939a-12f004e8a6e5",
      "name": "Merge OpenAI Ranking",
      "type": "n8n-nodes-base.merge",
      "position": [
        2160,
        720
      ]
    },
    {
      "id": "eaed6285-89c1-4862-82ce-45eb1cfd71f2",
      "name": "Add to Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        2340,
        720
      ]
    },
    {
      "id": "404388e4-0a67-4004-9fc4-e76608a186a6",
      "name": "Mark Notion as complete",
      "type": "n8n-nodes-base.notion",
      "position": [
        1660,
        1040
      ]
    },
    {
      "id": "ef20ff89-3624-44e8-8042-3c2e685f7234",
      "name": "Notion isn't started",
      "type": "n8n-nodes-base.filter",
      "position": [
        1460,
        1040
      ]
    },
    {
      "id": "624d5053-ab37-4799-872b-340c9cce0d1f",
      "name": "Update Due Date",
      "type": "n8n-nodes-base.notion",
      "position": [
        720,
        1280
      ]
    },
    {
      "id": "a5465ca0-e46c-4516-b65a-c78d47f4f5ec",
      "name": "OpenAI Categorization",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        820
      ]
    },
    {
      "id": "d47acd27-fefe-4934-b4f9-ba8bfbd84396",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        500,
        620
      ]
    },
    {
      "id": "1fc4134f-9fb3-4790-8c97-56e5de022bb0",
      "name": "Different Due Dates",
      "type": "n8n-nodes-base.filter",
      "position": [
        520,
        1280
      ]
    },
    {
      "id": "ac774b29-ae67-48d3-a309-019e622eb60d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        1160
      ],
      "parameters": {
        "width": 518.839856887148,
        "height": 80,
        "content": "### Update due date in Notion if it changed"
      }
    }
  ],
  "connections": {
    "Notion": {
      "main": [
        [
          {
            "node": "Compare Datasets",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Planner": {
      "main": [
        [
          {
            "node": "Compare Datasets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Planner",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Merge Item Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Isn't locked": {
      "main": [
        [
          {
            "node": "Merge OpenAI Ranking",
            "type": "main",
            "index": 0
          },
          {
            "node": "OpenAI Categorization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Not an event": {
      "main": [
        [
          {
            "node": "Get Item Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Item Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Item Data": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Item Data": {
      "main": [
        [
          {
            "node": "Isn't locked",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Override Exists": {
      "main": [
        [
          {
            "node": "Update Override",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "New Override",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare Datasets": {
      "main": [
        [
          {
            "node": "Not an event",
            "type": "main",
            "index": 0
          }
        ],
        [],
        [
          {
            "node": "Is Canvas Complete?",
            "type": "main",
            "index": 0
          },
          {
            "node": "Different Due Dates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Planner",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion is complete": {
      "main": [
        [
          {
            "node": "Override Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Different Due Dates": {
      "main": [
        [
          {
            "node": "Update Due Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Canvas Complete?": {
      "main": [
        [
          {
            "node": "Notion isn't started",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notion is complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge OpenAI Ranking": {
      "main": [
        [
          {
            "node": "Add to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion isn't started": {
      "main": [
        [
          {
            "node": "Mark Notion as complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Categorization": {
      "main": [
        [
          {
            "node": "Merge OpenAI Ranking",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}