{
  "name": "Generate and qualify local business leads using Google Sheets, RapidAPI and OpenAI",
  "nodes": [
    {
      "id": "00bc1391-6349-4fa4-98f8-206a753b7ab9",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        19088,
        9312
      ]
    },
    {
      "id": "bbc9b701-77ab-45ce-82f9-9a28ba900d5f",
      "name": "Read Search Requests",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        19312,
        9312
      ]
    },
    {
      "id": "a750ac2f-4c88-4654-ade1-ab09a5f04dab",
      "name": "Search Businesses API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        19552,
        9312
      ]
    },
    {
      "id": "5d1ff122-878c-4b23-91bf-dc56238f3732",
      "name": "Format Business Results",
      "type": "n8n-nodes-base.code",
      "position": [
        19808,
        9312
      ]
    },
    {
      "id": "d0a64565-dcd7-4de9-9143-f44c53ea3ba3",
      "name": "Write to Business Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        20432,
        9312
      ]
    },
    {
      "id": "d96b476e-1368-4b56-9544-7caa55c3a57c",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        20064,
        9312
      ]
    },
    {
      "id": "c1ff54fe-9e80-4c1b-bbe8-5e0a7643d1f4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20368,
        8944
      ],
      "parameters": {
        "width": 288,
        "height": 768,
        "content": "**Step 6 – Write to Business Results**\nStores enriched leads in Google Sheets for outreach."
      }
    },
    {
      "id": "d1009b80-0b12-4dd1-839d-fcb67a68d621",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18576,
        8944
      ],
      "parameters": {
        "width": 384,
        "height": 768,
        "content": "### Automated local business lead generation and AI-powered lead scoring\n\nThis workflow helps you automatically discover, enrich, and qualify local business leads using Google Sheets, RapidAPI, and Op"
      }
    },
    {
      "id": "2c143079-9e8a-4bf2-a693-93db65c8c853",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18992,
        8944
      ],
      "parameters": {
        "width": null,
        "height": 768,
        "content": "**Step 1 – Schedule Trigger**\nRuns the workflow automatically at set intervals.\n\n"
      }
    },
    {
      "id": "cccd712c-56a4-4dee-a27d-e8da7eee3924",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19248,
        8944
      ],
      "parameters": {
        "width": null,
        "height": 768,
        "content": "**Step 2 – Read Search Requests**\nFetches keywords and locations from Google Sheets.\n\n\n"
      }
    },
    {
      "id": "e4d1e73a-6954-48dd-b910-ab9d9db50f10",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19504,
        8944
      ],
      "parameters": {
        "width": null,
        "height": 768,
        "content": "**Step 3 – Search Businesses API**\nRetrieves local business data with contact details.\n\n"
      }
    },
    {
      "id": "970ee2ce-3ad1-424f-908c-963e7ce1533e",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19760,
        8944
      ],
      "parameters": {
        "width": null,
        "height": 768,
        "content": "**Step 4 – Format Business Results**\nCleans and structures API response into usable fields.\n"
      }
    },
    {
      "id": "a781bf7a-a2e0-4bf7-8902-d5cd1cde928f",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20032,
        8944
      ],
      "parameters": {
        "width": 304,
        "height": 768,
        "content": "**Step 5 – Message a model (OpenAI)**\nClassifies leads, assigns scores, and generates outreach lines."
      }
    }
  ],
  "connections": {
    "Message a model": {
      "main": [
        [
          {
            "node": "Write to Business Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Read Search Requests",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Search Requests": {
      "main": [
        [
          {
            "node": "Search Businesses API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Businesses API": {
      "main": [
        [
          {
            "node": "Format Business Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Business Results": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}