{
  "name": "Gary Club — Missed Call → Follow-Up SMS",
  "nodes": [
    {
      "parameters": {
        "content": "## ⚡ After import — 3 steps\n\n**1. Bind your credential**\nClick the **Send Follow-Up SMS** node → set **Credential for Header Auth** to your Gary Club Agency key.\n\n**2. Register this webhook in Gary Club**\nCopy the **Production URL** from the **Missed Call** node. In Gary Club → Settings → Webhooks → add the URL for the `call.missed` event (or `call.voicemail_left` — both use the same payload shape).\n\n**3. Edit the follow-up message**\nOpen the **Follow-Up Message** node and update `body` with your actual text. The `to` field auto-fills from the caller's phone.\n\n📋 **Notes**\n- `data.contact_phone` — the caller's phone number.\n- `data.contact_id` — Gary Club CRM contact UUID (if matched). Passing it links the SMS to the contact timeline.\n- Always include STOP opt-out language in regulated markets.\n- To only send when `contact_id` is present (i.e. a known contact), add an IF node before Follow-Up Message.\n\n📚 Docs: https://docs.gary.club/api/sms | https://docs.gary.club/api/webhooks",
        "height": 410,
        "width": 400,
        "color": 5
      },
      "id": "88000000-0000-4000-8000-000000000000",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-220, 60]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "gary-missed-call",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "88000000-0001-4000-8000-000000000001",
      "name": "Missed Call",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [260, 300],
      "webhookId": "88000000-webhook-4000-8000-000000000001"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "f1", "name": "to", "value": "={{ $json.body.data.contact_phone }}", "type": "string" },
            { "id": "f2", "name": "contact_id", "value": "={{ $json.body.data.contact_id }}", "type": "string" },
            { "id": "f3", "name": "body", "value": "Hey! We just missed your call. We'd love to help — reply here or call us back anytime. Reply STOP to opt out.", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "88000000-0002-4000-8000-000000000002",
      "name": "Follow-Up Message",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [500, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://agency.gary.club/api/public/v1/sms/messages",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            { "name": "to", "value": "={{ $json.to }}" },
            { "name": "body", "value": "={{ $json.body }}" },
            { "name": "contact_id", "value": "={{ $json.contact_id }}" }
          ]
        },
        "options": {}
      },
      "id": "88000000-0003-4000-8000-000000000003",
      "name": "Send Follow-Up SMS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [740, 300]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ ok: true }) }}",
        "options": { "responseCode": 200 }
      },
      "id": "88000000-0004-4000-8000-000000000004",
      "name": "Respond 200",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [980, 300]
    }
  ],
  "connections": {
    "Missed Call": { "main": [[{ "node": "Follow-Up Message", "type": "main", "index": 0 }]] },
    "Follow-Up Message": { "main": [[{ "node": "Send Follow-Up SMS", "type": "main", "index": 0 }]] },
    "Send Follow-Up SMS": { "main": [[{ "node": "Respond 200", "type": "main", "index": 0 }]] }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "gary-club-api" }]
}
