{
  "name": "HVACAutomate — Annual Maintenance Reminder (12-month anniversary)",
  "flow": [
    {
      "id": 1,
      "module": "google-sheets:getValues",
      "version": 2,
      "parameters": { "spreadsheetId": "YOUR_SPREADSHEET_ID", "sheetName": "ServiceHistory" },
      "filter": {
        "name": "Due today — exactly 365 days since last service",
        "conditions": [[{ "a": "{{1.due_today}}", "b": "YES", "o": "text:equal" }]]
      },
      "mapper": {},
      "metadata": {
        "designer": { "x": 0, "y": 0 },
        "notes": "Sheet columns: customer_name, phone, system_type, last_service_date, reminder_sent, due_today. Add a formula to due_today column: =IF(DATEDIF(D2,TODAY(),\"D\")=365,\"YES\",\"\"). Schedule this scenario to run daily at 9am."
      }
    },
    {
      "id": 2,
      "module": "twilio:ActionCreateMessage",
      "version": 1,
      "parameters": { "account": 1 },
      "mapper": {
        "to": "{{1.phone}}",
        "from": "YOUR_TWILIO_NUMBER",
        "body": "Hi {{1.customer_name}}, it's YOUR_NAME from YOUR_COMPANY. It's been about a year since we last serviced your {{1.system_type}} — just wanted to check in and see if you're due for maintenance before the season hits. Want me to get a time on the calendar? Reply YES and I'll grab a slot for you."
      },
      "metadata": { "designer": { "x": 300, "y": 0 } }
    },
    {
      "id": 3,
      "module": "google-sheets:updateRow",
      "version": 2,
      "parameters": { "spreadsheetId": "YOUR_SPREADSHEET_ID", "sheetName": "ServiceHistory" },
      "mapper": { "reminder_sent": "{{formatDate(now,'YYYY-MM-DD')}}" },
      "metadata": { "designer": { "x": 600, "y": 0 }, "notes": "Mark reminder_sent to prevent duplicate sends" }
    }
  ],
  "metadata": {
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": { "orphans": [] },
    "zone": "us1.make.com"
  }
}
