{
  "name": "Track Grok AI visibility with Local Falcon",
  "nodes": [
    {
      "parameters": {
        "content": "## Track Grok AI Visibility with Local Falcon\n\n**Who is this for:** SEO professionals who need to monitor their business visibility in Grok (X/Twitter's AI assistant) as it gains market share in AI search.\n\n**What this workflow does:**\n1. Runs Grok platform scans via Local Falcon\n2. Tracks whether your business appears in Grok's recommendations\n3. Monitors your position when mentioned\n4. Compares Grok visibility to other AI platforms\n5. Sends visibility reports via Slack\n\n**How to set up:**\n1. Add your Local Falcon API credentials (get your key at https://www.localfalcon.com/api/credentials)\n2. Configure your location and keywords in Settings\n3. Connect Slack for reports\n4. Activate the workflow\n\n**Requirements:**\n- Local Falcon account with API access\n- Grok platform scanning credits\n- Keywords relevant to Grok's conversational style\n\n**How to customize:**\n- Compare against Twitter/X search results\n- Track social-style queries\n- Create cross-platform AI visibility dashboard\n- Alert on visibility changes",
        "height": 500,
        "width": 460,
        "color": 5
      },
      "id": "sticky-main",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        100,
        -160
      ]
    },
    {
      "parameters": {
        "content": "### Why Track Grok?\n\nGrok is X/Twitter's AI assistant with access to real-time data. As X grows as a search alternative, Grok visibility matters for:\n- Real-time recommendations\n- Social-influenced results\n- Tech-savvy audiences",
        "height": 180,
        "width": 300
      },
      "id": "sticky-context",
      "name": "Sticky Note Context",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        580,
        -160
      ]
    },
    {
      "parameters": {
        "content": "### Step 1: Schedule\nRuns weekly for Grok tracking.",
        "height": 100,
        "width": 200
      },
      "id": "sticky-step1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        40,
        640
      ]
    },
    {
      "parameters": {
        "content": "### Step 2: Settings\nConfigure tracking parameters.",
        "height": 100,
        "width": 200
      },
      "id": "sticky-step2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        300,
        640
      ]
    },
    {
      "parameters": {
        "content": "### Step 3: Scan Grok\nRuns Grok platform scan.",
        "height": 100,
        "width": 200
      },
      "id": "sticky-step3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        560,
        640
      ]
    },
    {
      "parameters": {
        "content": "### Step 4: Report\nSends visibility summary.",
        "height": 100,
        "width": 200
      },
      "id": "sticky-step4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        820,
        640
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                4
              ],
              "triggerAtHour": 11
            }
          ]
        }
      },
      "id": "schedule",
      "name": "Every Thursday 11am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        140,
        420
      ]
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"location\": {\n    \"name\": \"Your Business Name\",\n    \"place_id\": \"YOUR_GOOGLE_PLACE_ID\",\n    \"lat\": \"40.7128\",\n    \"lng\": \"-74.0060\"\n  },\n  \"keywords\": [\n    \"best [service] near me\",\n    \"where can I find [service]\",\n    \"recommend [business type] in [city]\"\n  ],\n  \"slackChannel\": \"#grok-visibility\"\n}",
        "options": {}
      },
      "id": "settings",
      "name": "Grok Tracking Settings",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        400,
        420
      ]
    },
    {
      "parameters": {
        "jsCode": "const settings = $input.first().json;\n\nreturn settings.keywords.map(keyword => ({\n  json: {\n    ...settings.location,\n    keyword: keyword,\n    slackChannel: settings.slackChannel\n  }\n}));"
      },
      "id": "prepare",
      "name": "Prepare Grok Scans",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        660,
        420
      ]
    },
    {
      "parameters": {
        "resource": "scan",
        "operation": "run",
        "platform": "grok",
        "placeId": "={{ $json.place_id }}",
        "keyword": "={{ $json.keyword }}",
        "lat": "={{ $json.lat }}",
        "lng": "={{ $json.lng }}",
        "gridSize": 3,
        "radius": 1,
        "measurement": "mi"
      },
      "id": "scan-grok",
      "name": "Scan Grok",
      "type": "@local-falcon/n8n-nodes-localfalcon.localFalcon",
      "typeVersion": 1,
      "position": [
        920,
        420
      ],
      "credentials": {
        "localFalconApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Every Thursday 11am": {
      "main": [
        [
          {
            "node": "Grok Tracking Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grok Tracking Settings": {
      "main": [
        [
          {
            "node": "Prepare Grok Scans",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Grok Scans": {
      "main": [
        [
          {
            "node": "Scan Grok",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateCredsSetupCompleted": true
  }
}