{
  "name": "SFC Calendar to Discord Notifications Template",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "3037f12e-2e4a-4323-b424-a1884f20d5a7",
        "options": {}
      },
      "id": "def7299f-6df6-4904-b423-043fd74a31ea",
      "name": "Notion status change",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        576
      ],
      "webhookId": "611a90de-9a30-4153-901c-f918fa00c39b"
    },
    {
      "parameters": {
        "jsCode": "// ============================================================\n// CLIENT SETUP — ONLY EDIT THIS NODE\n// Replace each value in quotes with yours.\n// Do NOT edit any other node in this workflow.\n// ============================================================\n\nconst CONFIG = {\n  notionDatabaseId:  \"PASTE_YOUR_NOTION_DATABASE_ID\",\n  discordGuildId:    \"PASTE_YOUR_DISCORD_SERVER_ID\",\n  ideasChannelId:    \"PASTE_YOUR_CONTENT_IDEAS_CHANNEL_ID\",\n  calendarChannelId: \"PASTE_YOUR_CALENDAR_UPDATE_CHANNEL_ID\",\n  reviewerUserId:    \"PASTE_YOUR_REVIEWER_DISCORD_USER_ID\",\n  notionCalendarUrl: \"PASTE_YOUR_NOTION_CALENDAR_VIEW_URL\",\n};\n\n// DO NOT EDIT BELOW THIS LINE\nconst incoming = $input.first().json;\nreturn [{ json: { ...incoming, ...CONFIG } }];"
      },
      "id": "53fc01b0-517a-4f53-8f60-9b6cd76441b4",
      "name": "Config",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        224,
        576
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 3
          },
          "conditions": [
            {
              "id": "cb390f75-bdf3-44f9-b9d5-2e3e58bc182b",
              "leftValue": "={{ (new Date($json.body.data.last_edited_time) - new Date($json.body.data.created_time)) }}",
              "rightValue": 30000,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "id": "f3001657-50a6-4100-a8c5-a9831a6eed65",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        448,
        576
      ]
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "id": "2e002d53-13ed-4a7a-bf05-25e61e0789a9",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        672,
        512
      ],
      "webhookId": "dfa91958-97e7-4754-b0ee-0cb6c15344ff"
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "get",
        "pageId": {
          "__rl": true,
          "value": "={{ $('Notion status change').item.json.body.data.id }}",
          "mode": "id"
        },
        "simple": false
      },
      "id": "f46934c2-3a52-4200-bb7a-8dfeec12cd7b",
      "name": "Notion: Get Fresh Page Data",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        896,
        512
      ],
      "credentials": {
        "notionApi": {
          "id": "h6B4aYDP3e5LmL7E",
          "name": "Notion account Dwayne"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "Idea",
                    "id": "e595e627-7801-4e1a-a816-a5f553c3a70d"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Idea"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "Raw Videos/Ready for editing",
                    "id": "c40759ff-8059-4145-bd75-332bb4ec07b1"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Raw Videos"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "In progress",
                    "id": "dfca63d9-b19a-4219-a18d-1697464359e9"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "In Progress"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "Ready for reviewing",
                    "id": "610ec895-2c0c-4633-ac61-ce5f0c6bf31c"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Ready for Reviewing"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "New Revisions",
                    "id": "ca3c6bb5-5c64-421f-831d-54c3e2aeb3a6"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "New Revisions"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "Approved",
                    "id": "85d19971-83ca-4085-b8ee-a5faec9e0bf9"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Approved"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Notion status change').item.json.body.data.properties.Status.status.name }}",
                    "rightValue": "Scheduled",
                    "id": "6722238b-fca2-4a6d-b0d0-fa750ab45a62"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Scheduled"
            }
          ]
        },
        "options": {
          "fallbackOutput": "none",
          "ignoreCase": true,
          "allMatchingOutputs": false
        }
      },
      "id": "bbe74982-9c72-4b01-bad0-067546715311",
      "name": "Route by Status",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        1120,
        496
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.ideasChannelId }}",
          "mode": "id"
        },
        "content": "=A new SFV idea has been **added to the content calendar** @everyone\n\n**Title:**  [{{ $(\"Notion: Get Fresh Page Data\").isExecuted ? ($(\"Notion: Get Fresh Page Data\").item.json.properties?.Name?.title?.[0]?.plain_text || \"Untitled\") : ($(\"Notion status change\").item.json.body.data.properties?.Name?.title?.[0]?.text?.content || \"Untitled\") }}]({{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.url : $(\"Notion status change\").item.json.body.data.url }})\n\nRemember to look at the **reference videos** below in the Notion page!",
        "options": {}
      },
      "id": "e5d1e0b9-76d0-4651-a28b-90e70e72fbda",
      "name": "Send a message7",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1344,
        0
      ],
      "webhookId": "c7214b97-204a-4a3b-9599-f3a7c9929318",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This short-form video idea is **ready for editing!** @everyone\n\n**Title:** [{{ $(\"Notion: Get Fresh Page Data\").isExecuted ? ($(\"Notion: Get Fresh Page Data\").item.json.properties?.Name?.title?.[0]?.plain_text || \"Untitled\") : ($(\"Notion status change\").item.json.body.data.properties?.Name?.title?.[0]?.text?.content || \"Untitled\") }}]({{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.url : $(\"Notion status change\").item.json.body.data.url }})\n**Due date:** {{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.properties?.[\"Due date\"]?.date?.start : $(\"Notion status change\").item.json.body.data.properties?.[\"Due date\"]?.date?.start }}\n\nRemember to look at the **reference videos** below in the Notion page!",
        "options": {}
      },
      "id": "ac6ce0c8-96db-478d-abc1-e78fafa07287",
      "name": "Send a message6",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1344,
        192
      ],
      "webhookId": "3cbe0db9-bb6d-4857-b331-aa2aedffc32e",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This short-form video idea is **being edited!** @everyone\n\n**Title:** [{{ $(\"Notion: Get Fresh Page Data\").isExecuted ? ($(\"Notion: Get Fresh Page Data\").item.json.properties?.Name?.title?.[0]?.plain_text || \"Untitled\") : ($(\"Notion status change\").item.json.body.data.properties?.Name?.title?.[0]?.text?.content || \"Untitled\") }}]({{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.url : $(\"Notion status change\").item.json.body.data.url }})\n**Due date:** {{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.properties?.[\"Due date\"]?.date?.start : $(\"Notion status change\").item.json.body.data.properties?.[\"Due date\"]?.date?.start }}\n\nRemember to look at the **reference videos** below in the Notion page!",
        "options": {}
      },
      "id": "5c85963e-c5d9-4e37-8299-2a7059af2df7",
      "name": "Send a message8",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1344,
        384
      ],
      "webhookId": "47abd6aa-8b37-4c7b-a40b-00812d0ce86d",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.notionDatabaseId }}",
          "mode": "id"
        },
        "returnAll": true,
        "simple": false,
        "filterType": "manual",
        "filters": {
          "conditions": [
            {
              "key": "Status|status",
              "condition": "equals",
              "statusValue": "Ready for reviewing"
            }
          ]
        },
        "options": {}
      },
      "id": "6f0f7177-eac6-4a6f-a045-cb0e3813a3fb",
      "name": "Notion: Search Ready for Reviewing",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        1344,
        576
      ],
      "credentials": {
        "notionApi": {
          "id": "h6B4aYDP3e5LmL7E",
          "name": "Notion account Dwayne"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\nconst list = items.map((item, i) => {\n  const titleArr = item.json.properties?.Name?.title;\n  const title = (titleArr && titleArr[0]?.plain_text) || 'Untitled';\n  const frameLink = item.json.properties?.['Frame Link 1']?.url || '';\n  const linkUrl = frameLink || item.json.url || '';\n  return `${i + 1}. [${title}](${linkUrl})`;\n}).join('\\n');\nreturn [{ json: { formattedList: list, totalCount: items.length } }];"
      },
      "id": "204f1b73-a2da-4789-b378-0bf60c88bb46",
      "name": "Code: Format Review List",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1568,
        576
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This short-form video is **[ready for review!]({{ $(\"Config\").item.json.notionCalendarUrl }})** <@{{ $(\"Config\").item.json.reviewerUserId }}>\n\nVideos currently in **ready for reviewing:** {{ $json.totalCount }}\n\n{{ $json.formattedList }}",
        "options": {}
      },
      "id": "359dc4f5-633f-46fa-ae51-013dced4315d",
      "name": "Send a message",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1792,
        576
      ],
      "webhookId": "765d9117-30b6-4bff-82a0-b14b238c2c5a",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This short-form video has **not been approved.** Please check the comments on frame.io! @everyone\n\n**Title:** [{{ $(\"Notion: Get Fresh Page Data\").isExecuted ? ($(\"Notion: Get Fresh Page Data\").item.json.properties?.Name?.title?.[0]?.plain_text || \"Untitled\") : ($(\"Notion status change\").item.json.body.data.properties?.Name?.title?.[0]?.text?.content || \"Untitled\") }}]({{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.url : $(\"Notion status change\").item.json.body.data.url }})\n**Due date:** {{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.properties?.[\"Due date\"]?.date?.start : $(\"Notion status change\").item.json.body.data.properties?.[\"Due date\"]?.date?.start }}\n**[Frame.io link]({{ $(\"Notion: Get Fresh Page Data\").isExecuted ? $(\"Notion: Get Fresh Page Data\").item.json.properties?.[\"Frame Link 1\"]?.url : $(\"Notion status change\").item.json.body.data.properties?.[\"Frame Link 1\"]?.url }})**",
        "options": {}
      },
      "id": "6c546976-801c-44cc-bb0b-f7f70743681d",
      "name": "Send a message9",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1344,
        768
      ],
      "webhookId": "44c56cb4-a8a6-4fb6-b371-363ae9756e52",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.notionDatabaseId }}",
          "mode": "id"
        },
        "returnAll": true,
        "simple": false,
        "filterType": "manual",
        "filters": {
          "conditions": [
            {
              "key": "Status|status",
              "condition": "equals",
              "statusValue": "Approved"
            }
          ]
        },
        "options": {}
      },
      "id": "d5d40e2e-22cf-49eb-8aa3-ed1e0283bd23",
      "name": "Notion: Search Approved",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        1344,
        960
      ],
      "credentials": {
        "notionApi": {
          "id": "h6B4aYDP3e5LmL7E",
          "name": "Notion account Dwayne"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\nconst list = items.map((item, i) => {\n  const titleArr = item.json.properties?.Name?.title;\n  const title = (titleArr && titleArr[0]?.plain_text) || 'Untitled';\n  const frameLink = item.json.properties?.['Frame Link 1']?.url || '';\n  const linkUrl = frameLink || item.json.url || '';\n  const mediaFile = item.json.properties?.['Media file']?.files || [];\n  const hasMedia = Array.isArray(mediaFile) ? mediaFile.length > 0 : !!mediaFile;\n  return `${i + 1}. [${title}](${linkUrl}) ${hasMedia ? '✅' : '❌'}`;\n}).join('\\n');\nreturn [{ json: { formattedList: list, totalCount: items.length } }];"
      },
      "id": "3dd043b6-32a2-41b8-b9e0-00d09e19aad9",
      "name": "Code: Format Approved List",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1568,
        960
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This **[short-form video]({{ $(\"Config\").item.json.notionCalendarUrl }})** has been **fully approved!** @everyone\n\n✅ Videos currently in the **approved queue:** {{ $json.totalCount }}\n\n{{ $json.formattedList }}",
        "options": {}
      },
      "id": "e6877ad0-aa93-4e40-a194-9728236aec9b",
      "name": "Send a message2",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1792,
        960
      ],
      "webhookId": "ff6598da-84e3-4364-b964-c99eb43c55c0",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.notionDatabaseId }}",
          "mode": "id"
        },
        "returnAll": true,
        "simple": false,
        "filterType": "manual",
        "filters": {
          "conditions": [
            {
              "key": "Status|status",
              "condition": "equals",
              "statusValue": "Scheduled"
            }
          ]
        },
        "options": {}
      },
      "id": "a25455d0-c4a3-439f-9afe-06b4b3834343",
      "name": "Notion: Search Scheduled",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        1344,
        1152
      ],
      "credentials": {
        "notionApi": {
          "id": "h6B4aYDP3e5LmL7E",
          "name": "Notion account Dwayne"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\nconst processed = items.map(item => {\n  const titleArr = item.json.properties?.Name?.title;\n  const title = (titleArr && titleArr[0]?.plain_text) || 'Untitled';\n  const url = item.json.url || '';\n  const queue = item.json.properties?.Queue?.number || 999;\n  const mediaFile = item.json.properties?.['Media file']?.files || [];\n  const hasMedia = Array.isArray(mediaFile) ? mediaFile.length > 0 : !!mediaFile;\n  return { title, url, queue, mediaStatus: hasMedia ? '✅' : '❌' };\n});\nprocessed.sort((a, b) => a.queue - b.queue);\nconst list = processed.map((item, i) => `${i + 1}. [${item.title}](${item.url}) ${item.mediaStatus}`).join('\\n');\nreturn [{ json: { formattedList: list, totalCount: processed.length, nextVideo: processed[0]?.title || 'No video found' } }];"
      },
      "id": "6432cb07-7615-4e87-9732-c473bc850a5f",
      "name": "Code: Format Scheduled Queue",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1568,
        1152
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.discordGuildId }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $('Config').item.json.calendarChannelId }}",
          "mode": "id"
        },
        "content": "=This **[short-form video]({{ $(\"Config\").item.json.notionCalendarUrl }})** has been **scheduled!** @everyone\n\n**Post time:** 18:30 PM London GMT\n\n📅 Videos currently in the **Scheduled queue:** {{ $json.totalCount }}\n\n▶️ **Next up today:** {{ $json.formattedList }}",
        "options": {}
      },
      "id": "a0035006-485e-40aa-b006-c52e56b0a9e1",
      "name": "Send a message3",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1792,
        1152
      ],
      "webhookId": "c9fb5982-49ab-4dfb-b3d1-931513b15aea",
      "credentials": {
        "discordBotApi": {
          "id": "LL1NGpwu4o3MZkdY",
          "name": "ECGroup Sales"
        }
      }
    },
    {
      "parameters": {
        "content": "## CLIENT SETUP\n\nOpen the **Config** node and replace the 6 placeholder values with yours:\n\n1. **notionDatabaseId** — Your SFC Calendar DB ID (from the Notion DB URL)\n2. **discordGuildId** — Your Discord Server ID\n3. **ideasChannelId** — Your #content-ideas channel ID\n4. **calendarChannelId** — Your #content-calendar-update channel ID\n5. **reviewerUserId** — Your reviewer Discord User ID\n6. **notionCalendarUrl** — Your Notion calendar view URL (Share > Copy link)\n\n**To get Discord IDs:** Enable Developer Mode in Discord settings, then right-click any server/channel > Copy ID.\n\nDo not touch any other node.",
        "height": 264,
        "width": 892,
        "color": 3
      },
      "id": "e8909152-a2b4-4690-861d-4f0959593dff",
      "name": "Sticky Note 7f8e227b",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        208
      ]
    }
  ],
  "pinData": {},
  "connections": {
    "Notion status change": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Route by Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Notion: Get Fresh Page Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion: Get Fresh Page Data": {
      "main": [
        [
          {
            "node": "Route by Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Status": {
      "main": [
        [
          {
            "node": "Send a message7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notion: Search Ready for Reviewing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notion: Search Approved",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notion: Search Scheduled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion: Search Ready for Reviewing": {
      "main": [
        [
          {
            "node": "Code: Format Review List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Format Review List": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion: Search Approved": {
      "main": [
        [
          {
            "node": "Code: Format Approved List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Format Approved List": {
      "main": [
        [
          {
            "node": "Send a message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion: Search Scheduled": {
      "main": [
        [
          {
            "node": "Code: Format Scheduled Queue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Format Scheduled Queue": {
      "main": [
        [
          {
            "node": "Send a message3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "timezone": "Europe/London",
    "saveDataErrorExecution": "all",
    "saveDataSuccessExecution": "all",
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": true
  },
  "versionId": "f7d03ed6-f129-4037-87f3-87d66957c09e",
  "meta": {
    "aiBuilderAssisted": true,
    "builderVariant": "mcp",
    "instanceId": "5185a83f97534d4adc925ed1672fee925d013547b712fbeada89bb6c418f7edc"
  },
  "id": "y3cOkBH8SLmi75XO",
  "tags": [
    {
      "updatedAt": "2025-09-04T13:14:26.735Z",
      "createdAt": "2025-09-04T13:14:26.735Z",
      "id": "DWbGCR01Eld9zt1C",
      "name": "Notion"
    },
    {
      "updatedAt": "2026-05-15T17:51:43.012Z",
      "createdAt": "2026-05-15T17:51:43.012Z",
      "id": "RLOTbQOkvMUGeIjn",
      "name": "Discord"
    },
    {
      "updatedAt": "2025-08-28T07:39:51.686Z",
      "createdAt": "2025-08-28T07:39:51.686Z",
      "id": "dNkoYCY1RuMcxDkF",
      "name": "Content"
    },
    {
      "updatedAt": "2026-05-15T17:51:36.837Z",
      "createdAt": "2026-05-15T17:51:36.837Z",
      "id": "j21tiBy6ag0iHLC3",
      "name": "Template"
    },
    {
      "updatedAt": "2026-05-15T17:51:30.705Z",
      "createdAt": "2026-05-15T17:51:30.705Z",
      "id": "mFq5cZvuXfcFybbk",
      "name": "SFC"
    }
  ]
}