{
  "version": "1.0.0",
  "exported_at": "2026-06-03T12:20:00.000Z",
  "project": {
    "name": "Google AIO Scraper",
    "description": "Best-effort Google AI Overview scraper equivalent to the Octoparse Google AIO Scraper. It opens the Google homepage, enters the configured query like a normal user, submits the search, attempts to expand AI Overview/source controls, then exports language, region, input keyword, AI Overview HTML/text, source HTML/title/URL/intro/name, and error_message to google-aio-scraper.csv. Google result pagination is not used because AI Overview is a query-level top-of-results feature, not a paginated listing. Google may still block automation with CAPTCHA, 429, or unusual-traffic pages; this template records that in error_message but cannot bypass Google anti-bot protections.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 100,
      "position_y": 280,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 460,
      "position_y": 280,
      "config": {
        "url": "https://www.google.com/?hl=en&gl=US&pws=0",
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 820,
      "position_y": 280,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Run custom JavaScript on the page",
      "position_x": 1180,
      "position_y": 280,
      "config": {
        "jsCode": "(() => { const wanted = ['Accept all', 'I agree', 'Agree', 'Accept', 'Reject all']; const candidates = Array.from(document.querySelectorAll('button, input[type=\"submit\"], div[role=\"button\"], span[role=\"button\"]')); const consent = candidates.find(el => { const text = ((el.innerText || el.value || el.getAttribute('aria-label') || '') + '').trim(); return wanted.some(w => text.toLowerCase().includes(w.toLowerCase())); }); if (consent) { consent.click(); return 'clicked consent'; } return 'no consent prompt'; })();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1540,
      "position_y": 280,
      "config": {
        "duration": 3,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 1900,
      "position_y": 280,
      "config": {
        "selector": "textarea[name=\"q\"], input[name=\"q\"]",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "type-text-1",
      "block_type": "process",
      "title": "Type Text",
      "description": "Type text into input",
      "position_x": 2260,
      "position_y": 280,
      "config": {
        "selector": "textarea[name=\"q\"], input[name=\"q\"]",
        "text": "how to trigger the AI Overviews?",
        "clearFirst": true,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 2620,
      "position_y": 280,
      "config": {
        "duration": 2,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-2",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Run custom JavaScript on the page",
      "position_x": 2980,
      "position_y": 280,
      "config": {
        "jsCode": "(() => { const q = document.querySelector('textarea[name=\"q\"], input[name=\"q\"]'); if (!q) return 'search box not found'; q.focus(); const form = q.closest('form'); const btn = document.querySelector('input[name=\"btnK\"], button[aria-label=\"Google Search\"]'); if (btn && btn.offsetParent !== null) { btn.click(); return 'clicked search button'; } if (form) { form.submit(); return 'submitted search form'; } location.href = 'https://www.google.com/search?q=' + encodeURIComponent(q.value || 'how to trigger the AI Overviews?') + '&hl=en&gl=US&pws=0&num=10'; return 'navigated to search url fallback'; })();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-page-load-2",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 3340,
      "position_y": 280,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-3",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 3700,
      "position_y": 280,
      "config": {
        "duration": 6,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-3",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Run custom JavaScript on the page",
      "position_x": 4060,
      "position_y": 280,
      "config": {
        "jsCode": "(() => { const labels = /show more|more|view related links|related links|expand|sources/i; let clicked = 0; const nodes = Array.from(document.querySelectorAll('button, div[role=\"button\"], span[role=\"button\"], a[role=\"button\"], [aria-label]')); for (const el of nodes) { const text = ((el.innerText || el.textContent || el.getAttribute('aria-label') || '') + '').trim(); if (labels.test(text)) { try { el.click(); clicked++; } catch(e) {} } } window.scrollTo(0, 0); return 'clicked expandable controls: ' + clicked; })();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-4",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 4420,
      "position_y": 280,
      "config": {
        "duration": 3,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 4780,
      "position_y": 640,
      "config": {
        "rowSelector": "body",
        "fileName": "google-aio-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "create",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "language",
            "selector": "(() => { const p = new URLSearchParams(location.search); const raw = (p.get('hl') || document.documentElement.lang || 'en').toLowerCase(); if (raw.startsWith('en')) return 'English'; return raw || 'English'; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "region",
            "selector": "(() => { const p = new URLSearchParams(location.search); const raw = (p.get('gl') || 'US').toUpperCase(); const map = { US: 'United States', GB: 'United Kingdom', CA: 'Canada', AU: 'Australia' }; return map[raw] || raw; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "input_all_these_words",
            "selector": "(() => { const fallback = 'how to trigger the AI Overviews?'; const p = new URLSearchParams(location.search); const val = p.get('as_q') || p.get('q') || ''; if (!val) return fallback; if (/^[A-Za-z0-9_-]{30,}$/.test(val) && !/\\s/.test(val)) return fallback; return val; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ai_over_outer_html",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } const nodes = Array.from(document.querySelectorAll('div, section, g-section-with-header')); return nodes.find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); return c ? c.outerHTML : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ai_overview_all",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } const nodes = Array.from(document.querySelectorAll('div, section, g-section-with-header')); return nodes.find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); return c ? (c.innerText || c.textContent || '').replace(/\\s+/g, ' ').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "source_outer_html",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } return Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); if (!c) return ''; const anchors = Array.from(c.querySelectorAll('a[href]')).filter(a => { const href = a.href || ''; if (!/^https?:/i.test(href)) return false; if (/accounts\\.google|support\\.google|google\\.com\\/preferences|google\\.com\\/advanced_search|google\\.com\\/search|policies\\.google/i.test(href)) return false; const text = (a.innerText || a.textContent || '').trim(); return href && (text.length > 0 || a.querySelector('img')); }); return anchors.map(a => a.outerHTML).join('\\n---\\n'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "source_title",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } return Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); if (!c) return ''; const anchors = Array.from(c.querySelectorAll('a[href]')).filter(a => { const href = a.href || ''; if (!/^https?:/i.test(href)) return false; if (/accounts\\.google|support\\.google|google\\.com\\/preferences|google\\.com\\/advanced_search|google\\.com\\/search|policies\\.google/i.test(href)) return false; const text = (a.innerText || a.textContent || '').trim(); return href && (text.length > 0 || a.querySelector('img')); }); return anchors.map(a => { const heading = a.querySelector('h3, [role=\"heading\"], .LC20lb'); const lines = (a.innerText || a.textContent || '').split('\\n').map(x => x.trim()).filter(Boolean); return ((heading && heading.innerText) || lines[0] || a.title || '').trim(); }).filter(Boolean).join('\\n'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "source_url",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } return Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); if (!c) return ''; const anchors = Array.from(c.querySelectorAll('a[href]')).filter(a => { const href = a.href || ''; if (!/^https?:/i.test(href)) return false; if (/accounts\\.google|support\\.google|google\\.com\\/preferences|google\\.com\\/advanced_search|google\\.com\\/search|policies\\.google/i.test(href)) return false; const text = (a.innerText || a.textContent || '').trim(); return href && (text.length > 0 || a.querySelector('img')); }); return anchors.map(a => { try { const u = new URL(a.href, location.href); return u.searchParams.get('url') || u.searchParams.get('q') || u.href; } catch(e) { return a.href || ''; } }).filter(Boolean).join('\\n'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "source_intro",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } return Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); if (!c) return ''; const anchors = Array.from(c.querySelectorAll('a[href]')).filter(a => { const href = a.href || ''; if (!/^https?:/i.test(href)) return false; if (/accounts\\.google|support\\.google|google\\.com\\/preferences|google\\.com\\/advanced_search|google\\.com\\/search|policies\\.google/i.test(href)) return false; const text = (a.innerText || a.textContent || '').trim(); return href && (text.length > 0 || a.querySelector('img')); }); return anchors.map(a => { const lines = (a.innerText || a.textContent || '').split('\\n').map(x => x.trim()).filter(Boolean); return lines.slice(1).join(' ').replace(/\\s+/g, ' ').trim(); }).filter(Boolean).join('\\n'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "source_name",
            "selector": "(() => { const findAio = () => { const selectors = ['div[jsname=\"dvXlsc\"]', 'div.f5cPye[data-rl]', 'div[data-rl][data-lht]', '[data-attrid*=\"AIOverview\"]', '[aria-label*=\"AI Overview\" i]', '[aria-label*=\"AI-generated\" i]']; for (const s of selectors) { try { const el = document.querySelector(s); if (el) return el; } catch(e) {} } return Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); }; const c = findAio(); if (!c) return ''; const anchors = Array.from(c.querySelectorAll('a[href]')).filter(a => { const href = a.href || ''; if (!/^https?:/i.test(href)) return false; if (/accounts\\.google|support\\.google|google\\.com\\/preferences|google\\.com\\/advanced_search|google\\.com\\/search|policies\\.google/i.test(href)) return false; const text = (a.innerText || a.textContent || '').trim(); return href && (text.length > 0 || a.querySelector('img')); }); return anchors.map(a => { try { const u = new URL(a.href, location.href); const finalUrl = u.searchParams.get('url') || u.searchParams.get('q') || u.href; return new URL(finalUrl).hostname.replace(/^www\\./, ''); } catch(e) { return ''; } }).filter(Boolean).join('\\n'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "error_message",
            "selector": "(() => { const txt = document.body ? (document.body.innerText || '') : ''; if (/unusual traffic|not a robot|captcha|detected automated|automated queries|verify you are human|Our systems have detected|blocked|sorry/i.test(txt)) return 'Google anti-bot, CAPTCHA, or unusual-traffic page detected'; const hasAio = document.querySelector('div[jsname=\"dvXlsc\"], div.f5cPye[data-rl], div[data-rl][data-lht], [data-attrid*=\"AIOverview\"], [aria-label*=\"AI Overview\" i], [aria-label*=\"AI-generated\" i]') || Array.from(document.querySelectorAll('div, section, g-section-with-header')).find(el => { const t = (el.innerText || '').replace(/\\s+/g, ' ').trim(); return /AI Overview|AI-generated answer|Generative AI is experimental|Sources|Overview from AI/i.test(t) && t.length > 150; }); if (!hasAio) return 'No AI Overview container detected for this query/session'; return ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "end-1",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 5140,
      "position_y": 640,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "set-window-size-1",
      "from_connector_id": "right",
      "to_block_id": "navigate-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "navigate-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-1",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-1",
      "from_connector_id": "right",
      "to_block_id": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1",
      "from_connector_id": "right",
      "to_block_id": "element-exists-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "true",
      "to_block_id": "type-text-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "type-text-1",
      "from_connector_id": "right",
      "to_block_id": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-2",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-2",
      "from_connector_id": "right",
      "to_block_id": "sleep-3",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-3",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-3",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-3",
      "from_connector_id": "right",
      "to_block_id": "sleep-4",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-4",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1",
      "from_connector_id": "right",
      "to_block_id": "end-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 28,
      "position_y": 176,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "set-window-size-1"
        ]
      }
    },
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 388,
      "position_y": 176,
      "width": 4280,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "sleep-2",
          "wait-for-page-load-2",
          "sleep-3",
          "sleep-4"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1108,
      "position_y": 176,
      "width": 3200,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1",
          "type-text-1",
          "inject-javascript-2",
          "inject-javascript-3"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1828,
      "position_y": 176,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 4708,
      "position_y": 536,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-control",
      "element_type": "group",
      "title": "Control Flow",
      "color": "#8d8d8d",
      "position_x": 5068,
      "position_y": 536,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "end-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort Google AI Overview scraper equivalent to the Octoparse Google AIO Scraper. It opens the Google homepage, enters the configured query like a normal user, submits the search, attempts to expand AI Overview/source controls, then exports language, region, input keyword, AI Overview HTML/text, source HTML/title/URL/intro/name, and error_message to google-aio-scraper.csv. Google result pagination is not used because AI Overview is a query-level top-of-results feature, not a paginated listing. Google may still block automation with CAPTCHA, 429, or unusual-traffic pages; this template records that in error_message but cannot bypass Google anti-bot protections.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { const wanted = ['Accept all', 'I agree', 'Agree', 'Accept', 'Reject all']; const candidates...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1380,
      "position_y": 260,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `textarea[name=\"q\"], input[name=\"q\"]`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2100,
      "position_y": 260,
      "width": 340,
      "height": 142,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-inject-javascript-2",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { const q = document.querySelector('textarea[name=\"q\"], input[name=\"q\"]'); if (!q) return 'se...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 3180,
      "position_y": 260,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-2"
      }
    },
    {
      "id": "note-block-inject-javascript-3",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { const labels = /show more|more|view related links|related links|expand|sources/i; let click...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 4260,
      "position_y": 260,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-3"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (language, region, input_all_these_words, ai_over_outer_html, ai_overview_all). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 4980,
      "position_y": 620,
      "width": 340,
      "height": 139,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    }
  ]
}