{
  "name": "Gary Club — Send SMS",
  "nodes": [
    {
      "parameters": {
        "content": "## ⚡ After import — 3 steps\n\n**1. Bind your credential**\nClick the **Send SMS** node → set **Credential for Header Auth** to your Gary Club Agency key (`gc_live_…` from your n8n quickstart).\n\n**2. Customize the send** *(optional)*\nEdit the **Message Config** node to change `to` or `body`. Defaults:\n- **to:** +15124207130 (E.164 required)\n- **body:** test message with STOP opt-out\n\n**3. Run**\nClick **Test workflow** at the bottom. You should get a `202 Accepted` with `id` (message id) and `conversation_id`.\n\n📋 **Notes**\n- FUEL is deducted real-time; out-of-FUEL returns `402 fuel_exhausted`.\n- To link to a CRM contact, add a `contact_id` (uuid) row in Message Config and a matching keypair in Send SMS.\n- For MMS, add `media_urls` (string[]) — HTTPS, publicly fetchable for ~24h.\n- Inbound replies fire `sms.received` webhook — see https://docs.gary.club/api/webhooks if you want auto-reply.\n\n📚 SMS docs: https://docs.gary.club/api/sms",
        "height": 430,
        "width": 380,
        "color": 5
      },
      "id": "11000000-0000-4000-8000-000000000000",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-200, 80]
    },
    {
      "parameters": {},
      "id": "11000000-0001-4000-8000-000000000001",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [260, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "f1", "name": "to", "value": "+15124207130", "type": "string" },
            { "id": "f2", "name": "body", "value": "Hi — a quick note from our team. Reply STOP to opt out.", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "11000000-0002-4000-8000-000000000002",
      "name": "Message Config",
      "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 }}" }
          ]
        },
        "options": {}
      },
      "id": "11000000-0003-4000-8000-000000000003",
      "name": "Send SMS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [740, 300]
    }
  ],
  "connections": {
    "Manual Trigger": { "main": [[{ "node": "Message Config", "type": "main", "index": 0 }]] },
    "Message Config": { "main": [[{ "node": "Send SMS", "type": "main", "index": 0 }]] }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "gary-club-api" }]
}
