{
  "name": "JavaScriptSentry: detect sensitive information in JavaScript",
  "nodes": [
    {
      "id": "37579c21-cc34-4bf0-afb1-1ab27b724083",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        -640
      ],
      "parameters": {
        "width": 320,
        "height": 200,
        "content": "## JavaScript Scan and Email Template\nThis node will assess all gathered JavaScripts for sensitive information such as API keys, email addresses, and PII. It will then prepare the results for email so"
      }
    },
    {
      "id": "ac3fc532-39de-4a5d-b32d-0add527e6a80",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -600
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Gmail Instructions\nBe sure to add your OAuth and then add an email address to send the results to."
      }
    },
    {
      "id": "2260d825-f031-4855-a16c-b5437b37ecab",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -600
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Target URL\nClick Execute workflow and visit the 'Form Trigger' URL and fill out the form to begin the search."
      }
    },
    {
      "id": "62d27256-173e-4b99-aad1-ac0bdf29fbd0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -600
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Puppeteer\nBe sure to have Puppeteer installed. You can do this in Settings/Community Nodes"
      }
    },
    {
      "id": "d58ed46c-b951-437c-8ad5-665d5bc08dbf",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -540
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "## JavaScript Crawler"
      }
    },
    {
      "id": "391acacc-b664-4c6e-a8db-66aa179ce27a",
      "name": "Landing Page Url1",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -680,
        -400
      ]
    },
    {
      "id": "72423ed3-8c31-4bdb-9795-5e9dcac8240b",
      "name": "Puppeteer1",
      "type": "n8n-nodes-puppeteer.puppeteer",
      "position": [
        -480,
        -400
      ]
    },
    {
      "id": "6e3de382-6380-4759-99fd-e09e59a4af18",
      "name": "JavaScript Extractor1",
      "type": "n8n-nodes-base.code",
      "position": [
        -260,
        -400
      ]
    },
    {
      "id": "d1ce9376-bf71-4124-8bd6-1ed303a1e92b",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -40,
        -400
      ]
    },
    {
      "id": "90af1eee-9203-4cc7-b550-5ae1e83d4b68",
      "name": "Data Mapper1",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -400
      ]
    },
    {
      "id": "7f65efcd-c68b-4240-b606-0a9477d3aa0e",
      "name": "Format Report for Email1",
      "type": "n8n-nodes-base.code",
      "position": [
        600,
        -400
      ]
    },
    {
      "id": "5d9fed26-4933-4218-b18e-410d44e80e0f",
      "name": "Send a message1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        800,
        -400
      ]
    },
    {
      "id": "429e56c8-376a-41e7-86b2-43e7aed912e0",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        360,
        -220
      ]
    },
    {
      "id": "e2f270c0-c036-44be-ba02-abbf69ec6a25",
      "name": "JavaScript Search Agent w/Email Template1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        -380
      ]
    }
  ],
  "connections": {
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Data Mapper1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Puppeteer1": {
      "main": [
        [
          {
            "node": "JavaScript Extractor1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data Mapper1": {
      "main": [
        [
          {
            "node": "JavaScript Search Agent w/Email Template1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Landing Page Url1": {
      "main": [
        [
          {
            "node": "Puppeteer1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "JavaScript Search Agent w/Email Template1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "JavaScript Extractor1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Report for Email1": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JavaScript Search Agent w/Email Template1": {
      "main": [
        [
          {
            "node": "Format Report for Email1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}