AutomationFlowsData & Sheets › Track Website Visibility in Google's AI Overview with Serpapi and Google Sheets

Track Website Visibility in Google's AI Overview with Serpapi and Google Sheets

Byhani safaei @hanisafaei on n8n.io

This template helps anyone track how often their website appears in Google’s AI Overview. a growing part of search results that can’t currently be tracked using traditional SEO tools. With this workflow, users can: Input a list of keywords (from Google Search Console or manual…

Event trigger★★★★☆ complexity6 nodesGoogle SheetsHTTP Request
Data & Sheets Trigger: Event Nodes: 6 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #4724 — we link there as the canonical source.

This workflow follows the Google Sheets → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "shX725h2cWsFKRQb",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Track AI Overview Visibility for SEO in Google Search",
  "tags": [
    {
      "name": "SEO"
    },
    {
      "name": "serpapi"
    },
    {
      "name": "ai overview"
    },
    {
      "name": "google"
    },
    {
      "name": "marketing"
    }
  ],
  "nodes": [
    {
      "id": "0702eba7-d055-40e9-9e6e-e6e77fa9d281",
      "name": "Start: Manual trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4595fae4-57bb-4405-abf8-05eb134c774f",
      "name": "Read Keywords from Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        220,
        0
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1h1zsgmNjrXjC5_40KiF0ZLUvN00gDAswLTUMp5bas88/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1h1zsgmNjrXjC5_40KiF0ZLUvN00gDAswLTUMp5bas88",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1h1zsgmNjrXjC5_40KiF0ZLUvN00gDAswLTUMp5bas88/edit?usp=drivesdk",
          "cachedResultName": "AI Overview Keywords"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "21e4edfb-2caf-401a-afd4-03b86723de62",
      "name": "Call SerpApi for AI Overview",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        0
      ],
      "parameters": {
        "url": "https://serpapi.com/search.json",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "q",
              "value": "={{ $json[\"keyword\"] }}"
            },
            {
              "name": "api_key",
              "value": "Your SerpAPI key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "494614bf-fb0a-4c7c-842b-a4ec0e0bbd7a",
      "name": "Extract Sources & Check My Domain",
      "type": "n8n-nodes-base.code",
      "position": [
        620,
        0
      ],
      "parameters": {
        "jsCode": "const myDomain = \"example.com\"; // \ud83d\udd04 Replace with your domain, e.g., \"mywebsite.com\"\n\nreturn items.map(item => {\n  const overview = item.json.ai_overview;\n  const keyword = item.json.search_parameters?.q || '';\n\n  if (!overview || !overview.references) {\n    return {\n      json: {\n        keyword,\n        ai_overview_exists: false,\n        links: [],\n        is_my_domain_listed: false\n      }\n    };\n  }\n\n  const links = overview.references\n    .filter(ref => ref.link)\n    .map(ref => ref.link);\n\n  const isMyDomainListed = links.some(link => link.includes(myDomain));\n\n  return {\n    json: {\n      keyword,\n      ai_overview_exists: true,\n      links,\n      is_my_domain_listed: isMyDomainListed\n    }\n  };\n});"
      },
      "typeVersion": 2
    },
    {
      "id": "23361f22-1273-4797-8558-9cf9a38693b4",
      "name": "Write Results to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        840,
        0
      ],
      "parameters": {
        "columns": {
          "value": {
            "links": "={{ $json.links }}",
            "keyword": "={{ $json.keyword }}",
            "has_ai_overview": "={{ $json.ai_overview_exists }}",
            "is_my_domain_listed": "={{ $json.is_my_domain_listed }}"
          },
          "schema": [
            {
              "id": "keyword",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "keyword",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "has_ai_overview",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "has_ai_overview",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "links",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "links",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "is_my_domain_listed",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "is_my_domain_listed",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1ixDyGqYWB0QJzqxOKvA0T591SNY46j_u2J4CHOZ6qpo/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1ixDyGqYWB0QJzqxOKvA0T591SNY46j_u2J4CHOZ6qpo",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1ixDyGqYWB0QJzqxOKvA0T591SNY46j_u2J4CHOZ6qpo/edit?usp=drivesdk",
          "cachedResultName": "SERP AI Overview Citations"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "12c76730-922d-4f84-a68d-b19fb8fa20e6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -220
      ],
      "parameters": {
        "color": 5,
        "width": 520,
        "height": 200,
        "content": "## Track Google AI Overview Presence for SEO\n1. **Read** keyword list from Google Sheets  \n2. **Call** SerpApi for each keyword  \n3. **Extract** AI Overview sources from the results  \n4. **Check** if your domain is listed in the sources  \n5. **Save** the results back into Google Sheets\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "24d46818-a673-4f43-8d8e-809c1f236838",
  "connections": {
    "Start: Manual trigger": {
      "main": [
        [
          {
            "node": "Read Keywords from Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call SerpApi for AI Overview": {
      "main": [
        [
          {
            "node": "Extract Sources & Check My Domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Keywords from Google Sheet": {
      "main": [
        [
          {
            "node": "Call SerpApi for AI Overview",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Sources & Check My Domain": {
      "main": [
        [
          {
            "node": "Write Results to Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This template helps anyone track how often their website appears in Google’s AI Overview. a growing part of search results that can’t currently be tracked using traditional SEO tools. With this workflow, users can: Input a list of keywords (from Google Search Console or manual…

Source: https://n8n.io/workflows/4724/ — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

TrackCollect_deeper. Uses googleSheets, httpRequest, @n-octo-n/n8n-nodes-json-database, itemLists. Event-driven trigger; 80 nodes.

Google Sheets, HTTP Request, @N Octo N/N8N Nodes Json Database +1
Data & Sheets

This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to recover lost revenue without coding.

HTTP Request, Gmail, Twilio +3
Data & Sheets

PCN. Uses googleSheets, httpRequest, @n-octo-n/n8n-nodes-json-database, itemLists. Event-driven trigger; 60 nodes.

Google Sheets, HTTP Request, @N Octo N/N8N Nodes Json Database +3
Data & Sheets

Product Ad Machine. Uses googleDrive, googleSheets, httpRequest, @ffmpeg-micro/n8n-nodes-ffmpeg-micro. Event-driven trigger; 60 nodes.

Google Drive, Google Sheets, HTTP Request +2
Data & Sheets

Basic AI SEO KW Research n8n DataForSEO Gumroad 030125. Uses googleSheets, googleDrive, httpRequest. Event-driven trigger; 56 nodes.

Google Sheets, Google Drive, HTTP Request