{
  "name": "CableCore \u2014 Google Position Tracker",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1,
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "daily_trigger",
      "name": "Every Day 8AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "text": "I want to track the Google search ranking positions for the website cablecore.es for these keywords:\n1. instalaci\u00f3n cable de red Barcelona\n2. cableado estructurado Barcelona\n3. instalar red oficina Barcelona\n4. precio punto de red Barcelona\n5. instalador red ethernet Barcelona\n\nPlease use the SerpAPI search tool to find the exact ranking positions for these keywords (search location: Barcelona, Spain). Do not hallucinate. Actually run the searches. Look through the search results and find where 'cablecore.es' is ranked.\n\nProvide a summary report with the extracted positions. Format as a simple text report with emoji indicators:\n\ud83d\udfe2 = Top 10\n\ud83d\udfe1 = Top 20\n\ud83d\udd34 = Beyond 20\n\u26aa = Not found",
        "options": {}
      },
      "id": "agent",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.6,
      "position": [
        470,
        300
      ]
    },
    {
      "parameters": {
        "model": "gpt-4o",
        "options": {}
      },
      "id": "model",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        440,
        500
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "id": "serpapi",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "typeVersion": 1,
      "position": [
        620,
        500
      ],
      "credentials": {
        "serpApiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.telegram.org/bot{{$env.TELEGRAM_BOT_TOKEN}}/sendMessage",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "chat_id",
              "value": "275618298"
            },
            {
              "name": "text",
              "value": "=\ud83d\udcca Informe SEO diario CableCore\n\n{{ $json.output || $json.text || $json.message?.content || '\u26a0\ufe0f \u041e\u0442\u0447\u0435\u0442 \u043f\u0443\u0441\u0442: \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u0432\u0435\u0440\u043d\u0443\u043b \u0434\u0430\u043d\u043d\u044b\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043b\u0438\u043c\u0438\u0442\u044b SerpAPI \u0438\u043b\u0438 \u0432\u044b\u0432\u043e\u0434\u044b \u043d\u043e\u0434\u044b \u0432 N8N.' }}"
            }
          ]
        }
      },
      "id": "telegram_report",
      "name": "Send Report to Telegram",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        820,
        300
      ]
    }
  ],
  "connections": {
    "Every Day 8AM": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Report to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    {
      "name": "CableCore"
    }
  ]
}