{
  "name": "SEO competitor analysis with RapidAPI and Google Sheets logging",
  "nodes": [
    {
      "id": "4ba10d81-f58d-49db-be31-8c4c870dec1d",
      "name": "Global Storage",
      "type": "n8n-nodes-base.set",
      "position": [
        -1220,
        20
      ]
    },
    {
      "id": "bd802aa0-ade4-4265-949b-b5ce7cea6293",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -560,
        40
      ]
    },
    {
      "id": "3254616f-6f6b-4b81-bc9d-056dd8599a94",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -200,
        220
      ]
    },
    {
      "id": "ef80c50c-a2b8-47d4-ab0b-47b3f4cca7a3",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1480,
        20
      ]
    },
    {
      "id": "737f5a72-18fb-48f7-9532-471fc19f39eb",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -200,
        -180
      ]
    },
    {
      "id": "9b807b33-2f49-4d58-9fc9-2ff9e14d7439",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        260,
        200
      ]
    },
    {
      "id": "f4d9cc87-fdbb-4842-a9b4-19bb799444fd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1540,
        -140
      ],
      "parameters": {
        "width": 220,
        "height": 320,
        "content": "### 1. 🟢 **On form submission**\n**Type:** `formTrigger`  \n**Description:** Triggers when a user submits the form with `Website` fields.\n"
      }
    },
    {
      "id": "827c2ee8-778c-4823-a3cb-760d0261d3c3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        -140
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "### 2. 📦 **Global Storage**\n**Type:** `set`  \n**Description:** Stores the website value from the form for use in later nodes.\n"
      }
    },
    {
      "id": "16a60929-44a8-4521-8a41-bf0db993fe5c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -140
      ],
      "parameters": {
        "width": 300,
        "height": 340,
        "content": "### 3. 🌐 **Competitor Analysis Request**\n**Type:** `httpRequest`  \n**Description:** Sends a POST request to the RapidAPI Competitor Analysis endpoint (`competitor.php`) to get broad match competitors "
      }
    },
    {
      "id": "8c8ed73b-427b-4c62-9eac-80743d518ce2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        -160
      ],
      "parameters": {
        "width": 300,
        "height": 340,
        "content": "### 4. ⚖️ **Condition Checking**\n**Type:** `if`  \n**Description:** Evaluates whether the response body contains non-empty data. If true, it proceeds down the \"true\" branch, otherwise it moves to the \""
      }
    },
    {
      "id": "90e85218-3e39-4cb2-b175-7eb6fb681b7a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        20
      ],
      "parameters": {
        "width": 360,
        "height": 340,
        "content": "### 6. ⏳ **Wait Node (5-Second Interval)**\n**Type:** `wait`  \n**Description:** Introduces a 5-second delay in the workflow before moving to the next action. Ideal for controlling the flow of execution"
      }
    },
    {
      "id": "b834649d-3233-402e-955c-a2813b041c3f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -520
      ],
      "parameters": {
        "width": 360,
        "height": 500,
        "content": "### 5. 📊 **Google Sheets - Insert Record from Response Body**\n**Type:** `googleSheets`  \n**Description:** This node extracts data from the response body of a previous request and automatically inserts"
      }
    },
    {
      "id": "0c156367-aa5f-47ef-a9ba-e6e71bbea69e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -160
      ],
      "parameters": {
        "width": 400,
        "height": 520,
        "content": "### 7. 📊 **Google Sheets - Insert 'Not Found' Record**\n**Type:** `googleSheets`  \n**Description:** This node inserts a record with the status \"Not Found\" into a Google Sheet when no relevant data is f"
      }
    },
    {
      "id": "063d511c-30c5-4d1c-92f9-6455c4af7d73",
      "name": "Competitor Analysis Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -900,
        20
      ]
    },
    {
      "id": "4fccf5f4-5d91-4fb2-bd96-7f4ed5657c61",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2640,
        -420
      ],
      "parameters": {
        "width": 900,
        "height": 660,
        "content": "# Automated SEO Competitor Analysis and Google Sheets Logging\n\nThis n8n workflow automates competitor analysis by capturing website domains from user form submissions and sending them to a competitor "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Storage": {
      "main": [
        [
          {
            "node": "Competitor Analysis Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Global Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Analysis Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}