{
  "name": "Wake up on time using Google Maps traffic, Twilio SMS, and iOS Shortcuts",
  "nodes": [
    {
      "id": "3d24e1b2-f320-4245-9c66-bfcfd90c9aee",
      "name": "Check if date is today",
      "type": "n8n-nodes-base.if",
      "position": [
        64,
        16
      ]
    },
    {
      "id": "5d0b8c6d-9ba2-4bf5-a0bc-dad5986adeb2",
      "name": "Get date & status of alarm",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -160,
        16
      ]
    },
    {
      "id": "340cce90-eece-4a94-b696-010c49b8b122",
      "name": "Update alarm date & status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        288,
        240
      ]
    },
    {
      "id": "44526584-4e1e-4a57-9442-3ece0827e7ac",
      "name": "Get Latitude/Longitude of Origin Address",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        -192
      ]
    },
    {
      "id": "e85c214f-b017-4e6f-93dd-de4b334bed2b",
      "name": "Get Latitude/Longitude of End Address",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        224
      ]
    },
    {
      "id": "45e8ffbe-34f4-4464-9f4a-30dd6d707b27",
      "name": "Merge all trajectories",
      "type": "n8n-nodes-base.merge",
      "position": [
        1024,
        -16
      ]
    },
    {
      "id": "8b7fa748-d09f-4ea7-920f-450dfda9821b",
      "name": "Total duration < 9:00 AM?",
      "type": "n8n-nodes-base.if",
      "position": [
        1680,
        -16
      ]
    },
    {
      "id": "0fef8889-4f9b-441e-b7a0-bcdfb23b1ab2",
      "name": "Get real duration between the two addresses",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        -16
      ]
    },
    {
      "id": "89288705-706c-4741-a577-d9e71ed33711",
      "name": "Check date & status of alarm",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2016,
        -128
      ]
    },
    {
      "id": "9a26afd1-a01e-47ca-9e42-1af16b972be4",
      "name": "Check if status is equal to 'ini'",
      "type": "n8n-nodes-base.if",
      "position": [
        2320,
        -128
      ]
    },
    {
      "id": "bff63481-b15d-4457-b005-cdca42ed27e0",
      "name": "Update alarm status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2960,
        -240
      ]
    },
    {
      "id": "837eab33-1a62-4c65-b373-a8720c5a7edf",
      "name": "Send an SMS/MMS/WhatsApp message",
      "type": "n8n-nodes-base.twilio",
      "position": [
        2688,
        -240
      ]
    },
    {
      "id": "cbb3dcb0-a3c9-4e0b-911e-d13e8acf2d45",
      "name": "Define Origin and Destination addresses",
      "type": "n8n-nodes-base.set",
      "position": [
        528,
        0
      ]
    },
    {
      "id": "bfcf218b-691c-4dbe-a3b4-bc240f3dda65",
      "name": "Get today's date",
      "type": "n8n-nodes-base.set",
      "position": [
        -448,
        16
      ]
    },
    {
      "id": "27a57bba-3950-4e3e-99b7-bc4a860f242c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -432
      ],
      "parameters": {
        "width": 540,
        "height": 1080,
        "content": "# 🚀 Workflow Overview\nThis automation bridges the gap between your schedule and the unpredictable reality of morning traffic.\n\nHow it works:\nSchedule Check: The workflow triggers every morning startin"
      }
    },
    {
      "id": "2889ec4a-b196-44a9-86da-962908013452",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -384
      ],
      "parameters": {
        "width": 688,
        "height": 791,
        "content": "## The origin and destination addresses to be filled based on your preferences\n"
      }
    },
    {
      "id": "f296b955-f5db-44a2-b182-a416c0f88071",
      "name": "Triggers at 7 AM till 8 AM every minute on weekdays ",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -752,
        16
      ]
    },
    {
      "id": "2bcb5c4c-6bb3-4998-9f71-4181d99880eb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        -368
      ],
      "parameters": {
        "width": 336,
        "height": 663,
        "content": "## Time to be at the destination location. To be filled based on your preferences\n"
      }
    }
  ],
  "connections": {
    "Get today's date": {
      "main": [
        [
          {
            "node": "Get date & status of alarm",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if date is today": {
      "main": [
        [
          {
            "node": "Define Origin and Destination addresses",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update alarm date & status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge all trajectories": {
      "main": [
        [
          {
            "node": "Get real duration between the two addresses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Total duration < 9:00 AM?": {
      "main": [
        [
          {
            "node": "Check date & status of alarm",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get date & status of alarm": {
      "main": [
        [
          {
            "node": "Check if date is today",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update alarm date & status": {
      "main": [
        [
          {
            "node": "Define Origin and Destination addresses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check date & status of alarm": {
      "main": [
        [
          {
            "node": "Check if status is equal to 'ini'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send an SMS/MMS/WhatsApp message": {
      "main": [
        [
          {
            "node": "Update alarm status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if status is equal to 'ini'": {
      "main": [
        [
          {
            "node": "Send an SMS/MMS/WhatsApp message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latitude/Longitude of End Address": {
      "main": [
        [
          {
            "node": "Merge all trajectories",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Define Origin and Destination addresses": {
      "main": [
        [
          {
            "node": "Get Latitude/Longitude of End Address",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Latitude/Longitude of Origin Address",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latitude/Longitude of Origin Address": {
      "main": [
        [
          {
            "node": "Merge all trajectories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get real duration between the two addresses": {
      "main": [
        [
          {
            "node": "Total duration < 9:00 AM?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Triggers at 7 AM till 8 AM every minute on weekdays ": {
      "main": [
        [
          {
            "node": "Get today's date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}