{
  "name": "Track new Featured Snippet keyword wins via email with DataForSEO",
  "nodes": [
    {
      "id": "a377bf22-f81d-4f89-8777-556a60ceaa6f",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        448,
        64
      ]
    },
    {
      "id": "eae65a1a-1537-4b26-ac41-14eff13e72d7",
      "name": "Get ranked keywords",
      "type": "n8n-nodes-dataforseo.dataForSeoLabsApi",
      "position": [
        656,
        432
      ]
    },
    {
      "id": "08d66742-7ae7-48a2-9792-f31efc45054b",
      "name": "Get previous keywords",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        224,
        64
      ]
    },
    {
      "id": "c6d988eb-d03a-4c66-8c0e-968b674651a6",
      "name": "Get targets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        944,
        64
      ]
    },
    {
      "id": "b092f14f-7206-43bd-97c8-c02e9a562b04",
      "name": "Find new keywords",
      "type": "n8n-nodes-base.code",
      "position": [
        816,
        928
      ]
    },
    {
      "id": "a4f52fc6-39ca-4a1a-af99-199fac245cee",
      "name": "Append keyword in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        368,
        928
      ]
    },
    {
      "id": "368770b6-2730-4146-af9e-8717b12c1051",
      "name": "Run every Monday",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        64
      ]
    },
    {
      "id": "76166745-46f2-447d-bf74-d0d215f0aafb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -80
      ],
      "parameters": {
        "width": 640,
        "height": 304,
        "content": "## Get previous keywords and clear the sheet\nCreate a Google Sheets connection and select the spreadsheet where keywords should be saved. The sheet must have the same columns as in [this Example](http"
      }
    },
    {
      "id": "dbb53a0a-b97f-4a8a-969e-0bcda8a42dc7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -80
      ],
      "parameters": {
        "width": null,
        "height": 304,
        "content": "## Get targets\nSelect a spreadsheet with your target domains. The spreadsheet must have the same columns as in [this Example](https://docs.google.com/spreadsheets/d/1pRNkz1us8N_w_Sw-8axiMxUDu7to2tIVFX"
      }
    },
    {
      "id": "9e59f873-b380-42b5-9570-6ef7a1c69f7c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        336
      ],
      "parameters": {
        "width": 1344,
        "height": 352,
        "content": "## Get newly earned Featured Snippet keywords with DataForSEO\nCreate a DataForSEO connection and set up additional parameters if needed."
      }
    },
    {
      "id": "f7b96365-6522-49c8-9047-46467558d24d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        800
      ],
      "parameters": {
        "width": 1248,
        "height": 288,
        "content": "## Save new Featured Snippet keywords to a spreadsheet and send an email\nSelect the same spreadsheet with your keywords as in the first Google Sheets node.\nCreate a Gmail connection and set a receiver"
      }
    },
    {
      "id": "5e0e9b49-7fa5-479b-9518-8b5e18d5f1b9",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        80
      ],
      "parameters": {
        "width": 400,
        "height": 592,
        "content": "This workflow uses DataForSEO Labs API to identify new search queries where your domain started appearing in Google’s Featured Snippet results. Newly detected keywords are saved to Google Sheets, and "
      }
    },
    {
      "id": "e7fd883a-de58-49dc-acd3-c83386fcb1b3",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        592,
        928
      ]
    },
    {
      "id": "a5f97ca2-5029-41e7-a648-397715b22f98",
      "name": "Clear sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        672,
        64
      ]
    },
    {
      "id": "9ffd9efa-bdda-4f0f-94c3-7d2d6a4a94ad",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1248,
        928
      ]
    },
    {
      "id": "3f9a2b35-9618-4ef6-9b43-4a5f2f70e4c2",
      "name": "Initialize \"items\" field",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        512
      ]
    },
    {
      "id": "32401749-a524-4e11-9717-e56cdd0e1d30",
      "name": "Set \"items\" field",
      "type": "n8n-nodes-base.set",
      "position": [
        432,
        512
      ]
    },
    {
      "id": "9fb8d76c-42a0-4e01-9ee5-249dbbaa0de4",
      "name": "Merge \"items\" with DFS response",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        416
      ]
    },
    {
      "id": "4feead53-4587-47be-a42c-02b06e1017d1",
      "name": "Has more pages?",
      "type": "n8n-nodes-base.if",
      "position": [
        1104,
        496
      ]
    },
    {
      "id": "b967123e-85d6-4cd3-8eb7-e2a16f20ccc3",
      "name": "Merge \"items\" with last response",
      "type": "n8n-nodes-base.set",
      "position": [
        1360,
        512
      ]
    },
    {
      "id": "53ca57d5-da75-4772-a5c4-1fa9362b0eb9",
      "name": "Filter (has new keywords)",
      "type": "n8n-nodes-base.filter",
      "position": [
        1024,
        928
      ]
    },
    {
      "id": "8189b3ff-b615-4922-8085-5ecdc9ef9098",
      "name": "Split out (items)",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        144,
        928
      ]
    },
    {
      "id": "9bd825da-1d53-4d96-b181-f893ed5096a2",
      "name": "Loop over targets",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -16,
        496
      ]
    }
  ],
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "Clear sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Find new keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clear sheet": {
      "main": [
        [
          {
            "node": "Get targets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get targets": {
      "main": [
        [
          {
            "node": "Loop over targets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Loop over targets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has more pages?": {
      "main": [
        [
          {
            "node": "Set \"items\" field",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge \"items\" with last response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run every Monday": {
      "main": [
        [
          {
            "node": "Get previous keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find new keywords": {
      "main": [
        [
          {
            "node": "Filter (has new keywords)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop over targets": {
      "main": [
        [],
        [
          {
            "node": "Initialize \"items\" field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set \"items\" field": {
      "main": [
        [
          {
            "node": "Get ranked keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split out (items)": {
      "main": [
        [
          {
            "node": "Append keyword in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get ranked keywords": {
      "main": [
        [
          {
            "node": "Merge \"items\" with DFS response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get previous keywords": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append keyword in sheet": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Initialize \"items\" field": {
      "main": [
        [
          {
            "node": "Set \"items\" field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter (has new keywords)": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge \"items\" with DFS response": {
      "main": [
        [
          {
            "node": "Has more pages?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge \"items\" with last response": {
      "main": [
        [
          {
            "node": "Split out (items)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}