{
  "name": "Newly registered domains monitor",
  "nodes": [
    {
      "id": "32dd44be-784b-4e3b-8dad-da805abb1568",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        -176
      ],
      "parameters": {
        "width": 480,
        "height": 840,
        "content": "## Newly registered domains monitor\n\n### How it works\n\nThis workflow runs daily to monitor newly registered domains for a configured keyword. It retrieves matching registrations, aggregates the results into a single list, formats an alert message, and sends the notification by email.\n\n### Setup steps\n\n- Configure the schedule trigger with the desired daily run time and timezone. Scheduling the run after 12:00 UTC gives the most complete data for the queried day.\n- Set up the Domain Kits node credentials and specify the keyword or search criteria to monitor.\n- Configure the email send node with SMTP or email service credentials, sender details, and recipient addresses.\n\n### Customization\n\nAdjust the monitored keyword, schedule frequency, email subject/message text, or recipient list to match the monitoring needs.\n\n### Data note\n\nResults contain domain names, registration and expiry dates only. No registrant personal data is included (no names, emails, addresses or phone numbers), so the output is GDPR compliant and safe to forward or store."
      },
      "typeVersion": 1
    },
    {
      "id": "e26d4be9-2c89-49b3-b0f1-b3604f6e146e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        -160
      ],
      "parameters": {
        "color": 7,
        "width": 416,
        "height": 320,
        "content": "## Schedule domain lookup\n\nStarts the workflow once a day and queries Domain Kits for newly registered domains matching the configured keyword. Best run after 12:00 UTC."
      },
      "typeVersion": 1
    },
    {
      "id": "ec56d66f-8696-4f36-80e1-321601a25b2f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -160
      ],
      "parameters": {
        "color": 7,
        "width": 416,
        "height": 320,
        "content": "## Prepare alert content\n\nCombines the retrieved domain registration results into one list and builds the email subject and message body for the alert."
      },
      "typeVersion": 1
    },
    {
      "id": "6a86343f-5c88-44fa-8c96-6bd9436e44d8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        -176
      ],
      "parameters": {
        "color": 7,
        "width": 240,
        "height": 336,
        "content": "## Send email alert\n\nSends the prepared alert email containing the newly registered domain list to the configured recipients."
      },
      "typeVersion": 1
    },
    {
      "id": "a1000000-0000-0000-0000-000000000001",
      "name": "Every Day at 2pm",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "triggerAtHour": 14
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a1000000-0000-0000-0000-000000000002",
      "name": "Fetch Domain Registrations",
      "type": "n8n-nodes-domainkits.domainKits",
      "position": [
        220,
        0
      ],
      "parameters": {
        "limit": 100,
        "filters": {
          "reg_date": "={{ $now.minus({ days: 2 }).toFormat('yyyy-MM-dd') }}"
        },
        "keyword": "yourkeyword",
        "resource": "nrd",
        "operation": "search",
        "searchMode": "keyword"
      },
      "typeVersion": 1
    },
    {
      "id": "a1000000-0000-0000-0000-000000000003",
      "name": "Aggregate Domain List",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        440,
        0
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "a1000000-0000-0000-0000-000000000004",
      "name": "Prepare Alert Message",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "b1+1234567890-+1234567890",
              "name": "subject",
              "type": "string",
              "value": "={{ $json.data.length }} new domain registrations matching your keyword"
            },
            {
              "id": "b1+1234567890-+1234567890",
              "name": "message",
              "type": "string",
              "value": "={{ $json.data.map(d => d.domain + '  (registered ' + d.registered_date + ', expires ' + d.expiry_date + ')').join('\\n') }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "a1000000-0000-0000-0000-000000000005",
      "name": "Send Alert Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        912,
        0
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {},
        "subject": "={{ $json.subject }}",
        "toEmail": "you@example.com",
        "fromEmail": "user@example.com",
        "emailFormat": "text"
      },
      "typeVersion": 2.1
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Every Day at 2pm": {
      "main": [
        [
          {
            "node": "Fetch Domain Registrations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Domain List": {
      "main": [
        [
          {
            "node": "Prepare Alert Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Alert Message": {
      "main": [
        [
          {
            "node": "Send Alert Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Domain Registrations": {
      "main": [
        [
          {
            "node": "Aggregate Domain List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}