{
  "id": "coach-onboarding-automation",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Coach Onboarding & Training Automation",
  "tags": [],
  "nodes": [
    {
      "id": "sticky-001",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-002",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-003",
      "name": "Sticky Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-004",
      "name": "Sticky Note 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-005",
      "name": "Sticky Note 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        1340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-006",
      "name": "Sticky Note 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        1740
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-007",
      "name": "Sticky Note 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky-008",
      "name": "Sticky Note 8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2260,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "config-001",
      "name": "Configuration Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        340
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "webhook-001",
      "name": "Coach Registration Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        480,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "code-001",
      "name": "Process Coach Registration",
      "type": "n8n-nodes-base.code",
      "position": [
        700,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "sheets-001",
      "name": "Save Coach to Database",
      "type": "n8n-nodes-base.googleSheets",
      "maxTries": 3,
      "position": [
        920,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.4,
      "continueOnFail": true
    },
    {
      "id": "sheets-002",
      "name": "Get Day 1 Training Content",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        920,
        460
      ],
      "parameters": {},
      "typeVersion": 4.4,
      "continueOnFail": true
    },
    {
      "id": "code-002",
      "name": "Combine Registration Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1140,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "twilio-001",
      "name": "Send Day 1 Training SMS",
      "type": "n8n-nodes-base.twilio",
      "maxTries": 3,
      "position": [
        1360,
        340
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2,
      "continueOnFail": true
    },
    {
      "id": "wait-001",
      "name": "Wait 2 Minutes",
      "type": "n8n-nodes-base.wait",
      "position": [
        1580,
        340
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "if-001",
      "name": "Check Audio Available",
      "type": "n8n-nodes-base.if",
      "position": [
        1800,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "twilio-002",
      "name": "Send Audio SMS",
      "type": "n8n-nodes-base.twilio",
      "maxTries": 3,
      "position": [
        2020,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2,
      "continueOnFail": true
    },
    {
      "id": "sheets-003",
      "name": "Update to Day 2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2240,
        340
      ],
      "parameters": {},
      "typeVersion": 4.4,
      "continueOnFail": true
    },
    {
      "id": "respond-001",
      "name": "Registration Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2460,
        340
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "schedule-001",
      "name": "Daily 9AM Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        240,
        740
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "sheets-004",
      "name": "Get Active Coaches",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        460,
        620
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "sheets-005",
      "name": "Get All Training Content",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        460,
        860
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "code-003",
      "name": "Process Daily Training",
      "type": "n8n-nodes-base.code",
      "position": [
        680,
        740
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "twilio-003",
      "name": "Send Daily Training SMS",
      "type": "n8n-nodes-base.twilio",
      "maxTries": 3,
      "position": [
        900,
        740
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2,
      "continueOnFail": true
    },
    {
      "id": "sheets-006",
      "name": "Update Coach Progress",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1120,
        740
      ],
      "parameters": {},
      "typeVersion": 4.4,
      "continueOnFail": true
    },
    {
      "id": "webhook-002",
      "name": "Coach Response Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        240,
        1140
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "code-004",
      "name": "Process Coach Response",
      "type": "n8n-nodes-base.code",
      "position": [
        460,
        1140
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "twilio-004",
      "name": "Send Auto-Reply SMS",
      "type": "n8n-nodes-base.twilio",
      "maxTries": 3,
      "position": [
        680,
        1020
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2,
      "continueOnFail": true
    },
    {
      "id": "if-002",
      "name": "Check If Opt-Out",
      "type": "n8n-nodes-base.if",
      "position": [
        680,
        1260
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "sheets-007",
      "name": "Mark As Opted Out",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        900,
        1260
      ],
      "parameters": {},
      "typeVersion": 4.4,
      "continueOnFail": true
    },
    {
      "id": "respond-002",
      "name": "Response Webhook Reply",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1120,
        1140
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "schedule-002",
      "name": "Weekly Motivation Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        240,
        1540
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "sheets-008",
      "name": "Get All Coaches",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        460,
        1540
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "code-005",
      "name": "Generate Weekly Messages",
      "type": "n8n-nodes-base.code",
      "position": [
        680,
        1540
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "twilio-005",
      "name": "Send Weekly Motivation SMS",
      "type": "n8n-nodes-base.twilio",
      "maxTries": 3,
      "position": [
        900,
        1540
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2,
      "continueOnFail": true
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "connections": {
    "Send Audio SMS": {
      "main": [
        [
          {
            "node": "Update to Day 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 2 Minutes": {
      "main": [
        [
          {
            "node": "Check Audio Available",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Coaches": {
      "main": [
        [
          {
            "node": "Generate Weekly Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update to Day 2": {
      "main": [
        [
          {
            "node": "Registration Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Opt-Out": {
      "main": [
        [
          {
            "node": "Mark As Opted Out",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Response Webhook Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark As Opted Out": {
      "main": [
        [
          {
            "node": "Response Webhook Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Active Coaches": {
      "main": [
        [
          {
            "node": "Process Daily Training",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily 9AM Scheduler": {
      "main": [
        [
          {
            "node": "Get Active Coaches",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get All Training Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Auto-Reply SMS": {
      "main": [
        [
          {
            "node": "Response Webhook Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Audio Available": {
      "main": [
        [
          {
            "node": "Send Audio SMS",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update to Day 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Coach Response Webhook": {
      "main": [
        [
          {
            "node": "Process Coach Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Coach Response": {
      "main": [
        [
          {
            "node": "Send Auto-Reply SMS",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check If Opt-Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Daily Training": {
      "main": [
        [
          {
            "node": "Send Daily Training SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Coach to Database": {
      "main": [
        [
          {
            "node": "Combine Registration Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Daily Training SMS": {
      "main": [
        [
          {
            "node": "Update Coach Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Day 1 Training SMS": {
      "main": [
        [
          {
            "node": "Wait 2 Minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Weekly Messages": {
      "main": [
        [
          {
            "node": "Send Weekly Motivation SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Training Content": {
      "main": [
        [
          {
            "node": "Process Daily Training",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Registration Data": {
      "main": [
        [
          {
            "node": "Send Day 1 Training SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Coach Registration Webhook": {
      "main": [
        [
          {
            "node": "Process Coach Registration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Day 1 Training Content": {
      "main": [
        [
          {
            "node": "Combine Registration Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Coach Registration": {
      "main": [
        [
          {
            "node": "Save Coach to Database",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Day 1 Training Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Motivation Scheduler": {
      "main": [
        [
          {
            "node": "Get All Coaches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}