{
  "name": "Gary Club — Trigger Outbound AI Call",
  "nodes": [
    {
      "parameters": {
        "content": "## ⚡ After import — 3 steps\n\n**1. Bind your credential**\nClick the **Initiate Call** node → set **Credential for Header Auth** to your Gary Club Agency key.\n\n**2. Set your call target**\nEdit the **Call Config** node:\n- `to` — E.164 phone number to call (e.g. `+15551234567`).\n- `contact_id` — Gary Club contact UUID *(optional but recommended — links the call to your CRM)*.\n- `agent_id` — UUID of the Gary Club agent to use for the call. Find it under your agent settings.\n\n**3. Run**\nClick **Test workflow**. The agent will dial the number immediately. Check your Gary Club Calls dashboard for live status.\n\n📋 **Notes**\n- Replace the **Manual Trigger** with a **Webhook**, **Schedule**, or **Google Sheets** trigger to automate calls.\n- The API returns a `call_id` you can store for follow-up lookups.\n- Calls deduct FUEL in real time — out-of-FUEL returns `402 fuel_exhausted`.\n- Make sure the agent is published and phone-enabled before triggering.\n\n📚 Docs: https://docs.gary.club/api/calls",
        "height": 420,
        "width": 400,
        "color": 5
      },
      "id": "66000000-0000-4000-8000-000000000000",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-220, 60]
    },
    {
      "parameters": {},
      "id": "66000000-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": "+15551234567", "type": "string" },
            { "id": "f2", "name": "contact_id", "value": "aaaaaaaa-0000-4000-8000-000000000000", "type": "string" },
            { "id": "f3", "name": "agent_id", "value": "bbbbbbbb-0000-4000-8000-000000000000", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "66000000-0002-4000-8000-000000000002",
      "name": "Call Config",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [500, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://agency.gary.club/api/public/v1/calls",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            { "name": "to", "value": "={{ $json.to }}" },
            { "name": "contact_id", "value": "={{ $json.contact_id }}" },
            { "name": "agent_id", "value": "={{ $json.agent_id }}" }
          ]
        },
        "options": {}
      },
      "id": "66000000-0003-4000-8000-000000000003",
      "name": "Initiate Call",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [740, 300]
    }
  ],
  "connections": {
    "Manual Trigger": { "main": [[{ "node": "Call Config", "type": "main", "index": 0 }]] },
    "Call Config": { "main": [[{ "node": "Initiate Call", "type": "main", "index": 0 }]] }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "gary-club-api" }]
}
