{
  "name": "Food menu update notifier",
  "nodes": [
    {
      "id": "7e2bce2a-74b1-4f6d-af45-87e4e9b67739",
      "name": "Send WhatsApp Notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -280,
        -160
      ]
    },
    {
      "id": "f7ce15a2-4f0e-4547-ab59-5ea71c9cea16",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1660,
        -620
      ],
      "parameters": {
        "width": 880,
        "height": 220,
        "content": "## Automatically detects changes in the restaurant's special menu from Google Sheets and notifies customers via their preferred channel – WhatsApp, Email, or SMS (Twilio).\n\n## This ensures real-time u"
      }
    },
    {
      "id": "5a177091-496b-46e2-8243-a2aef1d7a877",
      "name": "Daily Menu Update Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2260,
        40
      ]
    },
    {
      "id": "90184fe7-7c85-4e1c-8a50-db72dfbbeab6",
      "name": "Fetch Special Menu Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2040,
        40
      ]
    },
    {
      "id": "4f38bdba-10fb-4664-bd82-0562fb5c1236",
      "name": "Detect Menu Changes",
      "type": "n8n-nodes-base.code",
      "position": [
        -1820,
        40
      ]
    },
    {
      "id": "9453db00-32a5-4077-9e2c-dd581bdcc151",
      "name": "Generate Menu Alert Message",
      "type": "n8n-nodes-base.code",
      "position": [
        -1600,
        40
      ]
    },
    {
      "id": "bc83e5ce-dce8-4873-8d0a-9a7a7180c88c",
      "name": "Fetch Customer Contact List",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1380,
        40
      ]
    },
    {
      "id": "a7f5a4ab-415d-45aa-b83e-c4e000ea06ee",
      "name": "Merge Menu with Customer Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -940,
        40
      ]
    },
    {
      "id": "fcb2d175-6f06-4dae-8db6-5f10aa998f1b",
      "name": "Split by Notification Preference",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -720,
        40
      ]
    },
    {
      "id": "36c04dee-c856-412b-9477-f51bf2f9be7a",
      "name": "Filter WhatsApp Users",
      "type": "n8n-nodes-base.if",
      "position": [
        -500,
        -160
      ]
    },
    {
      "id": "ccada993-edbe-4cd5-8d0e-53b3e1b7454b",
      "name": "Log WhatsApp Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -60,
        -160
      ]
    },
    {
      "id": "8ca7e47b-219a-4be1-8ca1-5aea15b4e0c8",
      "name": "Filter Email Users",
      "type": "n8n-nodes-base.if",
      "position": [
        -500,
        40
      ]
    },
    {
      "id": "1510f575-b745-485f-9eaa-10ec1e7e1896",
      "name": "Send Menu Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -280,
        40
      ]
    },
    {
      "id": "45fa2573-9b05-4f64-976f-e4693d40b7d7",
      "name": "Filter SMS Users",
      "type": "n8n-nodes-base.if",
      "position": [
        -500,
        240
      ]
    },
    {
      "id": "91eca46b-30ca-4e83-8897-cff4ae3d2f1b",
      "name": "Log Email Status1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -60,
        40
      ]
    },
    {
      "id": "e3fe9db7-df90-491a-b471-e1a0eafc4f86",
      "name": "Send Twilio SMS Alert",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -280,
        240
      ]
    },
    {
      "id": "36a469d9-6966-4d14-917d-9d619c4220b7",
      "name": " Log SMS Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -60,
        240
      ]
    },
    {
      "id": "14957f37-83b2-48b6-b61d-0244147f77db",
      "name": "Wait For All data",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1160,
        40
      ]
    },
    {
      "id": "3694a6bc-9a67-4b03-a1ea-cb059e330431",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -240
      ],
      "parameters": {
        "width": 620,
        "height": 660,
        "content": "## Automatically checks the special menu sheet on a schedule (daily/hourly) and detects any updates or changes in menu items."
      }
    },
    {
      "id": "5ece58c5-bec4-4b12-bf45-b75654a032c0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1660,
        -240
      ],
      "parameters": {
        "width": null,
        "height": 660,
        "content": "## Creates a custom message (with updated menu info) to be sent to customers in a readable and attractive format."
      }
    },
    {
      "id": "bf1b3482-a6cb-4015-942d-45277284575e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1380,
        -240
      ],
      "parameters": {
        "width": 780,
        "height": 660,
        "content": "## Reads customer contact info and communication preferences (WhatsApp, Email, or SMS), then prepares data for each user."
      }
    },
    {
      "id": "984c9afc-655e-45e1-a0de-aea5a2fe7bfb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -400
      ],
      "parameters": {
        "width": 680,
        "height": 820,
        "content": "## Sends the menu update to customers via their selected channel and logs the status for confirmation and audit.\n\n"
      }
    }
  ],
  "connections": {
    "Send Menu Email": {
      "main": [
        [
          {
            "node": "Log Email Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter SMS Users": {
      "main": [
        [
          {
            "node": "Send Twilio SMS Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Email Status1": {
      "main": [
        []
      ]
    },
    "Wait For All data": {
      "main": [
        [
          {
            "node": "Merge Menu with Customer Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Email Users": {
      "main": [
        [
          {
            "node": "Send Menu Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Menu Changes": {
      "main": [
        [
          {
            "node": "Generate Menu Alert Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log WhatsApp Status": {
      "main": [
        []
      ]
    },
    "Filter WhatsApp Users": {
      "main": [
        [
          {
            "node": "Send WhatsApp Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Twilio SMS Alert": {
      "main": [
        [
          {
            "node": " Log SMS Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Special Menu Data": {
      "main": [
        [
          {
            "node": "Detect Menu Changes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send WhatsApp Notification": {
      "main": [
        [
          {
            "node": "Log WhatsApp Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Menu Update Scheduler": {
      "main": [
        [
          {
            "node": "Fetch Special Menu Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Customer Contact List": {
      "main": [
        [
          {
            "node": "Wait For All data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Menu Alert Message": {
      "main": [
        [
          {
            "node": "Fetch Customer Contact List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Menu with Customer Data": {
      "main": [
        [
          {
            "node": "Split by Notification Preference",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split by Notification Preference": {
      "main": [
        [
          {
            "node": "Filter WhatsApp Users",
            "type": "main",
            "index": 0
          },
          {
            "node": "Filter SMS Users",
            "type": "main",
            "index": 0
          },
          {
            "node": "Filter Email Users",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}