{
  "name": "Check workflow templates against Creator Hub guidelines with Gemini and Gmail",
  "nodes": [
    {
      "id": "5e032005-5a5e-4b83-9ab0-b8d87d7e19ef",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11568,
        6096
      ],
      "parameters": {
        "width": 540,
        "height": 588,
        "content": "## n8n Template Approval Checker\n\nCheck your n8n workflow template against the latest official Creator Hub guidelines before submitting. This workflow fetches live approval criteria from Notion, gener"
      }
    },
    {
      "id": "c5d39394-175a-4893-b9cc-9a9e15933ddb",
      "name": "Step 1 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12128,
        6096
      ],
      "parameters": {
        "width": 228,
        "height": 320,
        "content": "## Form input\nCollects the workflow JSON file, template title, and email address for results delivery."
      }
    },
    {
      "id": "d17599ce-329c-486e-bf4a-0aab16c86a65",
      "name": "Step 2 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12368,
        6096
      ],
      "parameters": {
        "width": 732,
        "height": 320,
        "content": "## Scrape guidelines\nFetches four Creator Hub pages via the Notion unofficial API, then extracts readable text from each block."
      }
    },
    {
      "id": "c6937ce6-fd63-4cfa-b0d1-f2b82bb2c77e",
      "name": "Step 3 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        13120,
        6096
      ],
      "parameters": {
        "width": 360,
        "height": 496,
        "content": "## AI criteria generation\nGemini reads the scraped guidelines and outputs a numbered pass/fail checklist."
      }
    },
    {
      "id": "ae935fec-2b4f-40f2-94f6-a4b73689b766",
      "name": "Step 4 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        13504,
        6096
      ],
      "parameters": {
        "width": 760,
        "height": 320,
        "content": "## Upload and review\nBoth files are uploaded to Gemini Files API, then a second Gemini call reviews the workflow against the checklist."
      }
    },
    {
      "id": "34c5c85b-f1ec-4c43-8cbe-3739a93f7a7a",
      "name": "Step 5 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        14272,
        6096
      ],
      "parameters": {
        "width": 310,
        "height": 320,
        "content": "## Email results\nThe HTML review report is sent to the email address provided in the form."
      }
    },
    {
      "id": "5c8d63e9-ccbe-4e27-8e62-256d08de3017",
      "name": "Submit workflow for review",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        12192,
        6256
      ]
    },
    {
      "id": "efebc416-a774-493a-be20-91b5dd23a6b0",
      "name": "Generate Notion API URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        12416,
        6256
      ]
    },
    {
      "id": "0ee6f803-37ab-4910-987f-b2d1c50bdd4c",
      "name": "Fetch guideline pages from Notion",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12592,
        6256
      ]
    },
    {
      "id": "05228ac8-d64b-4f20-84ec-7cf663d79509",
      "name": "Combine all fetched pages",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        12768,
        6256
      ]
    },
    {
      "id": "a7702dec-5ae0-4ae2-99c4-a2e63922ad98",
      "name": "Extract text from Notion blocks",
      "type": "n8n-nodes-base.code",
      "position": [
        12944,
        6256
      ]
    },
    {
      "id": "1959750c-ff89-461b-8841-0fa1b9fef52c",
      "name": "Generate approval checklist with AI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        13184,
        6256
      ]
    },
    {
      "id": "cdeacd12-e90c-4f2f-a48c-8aeba1459ddd",
      "name": "Google Gemini for criteria generation",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        13184,
        6448
      ]
    },
    {
      "id": "0919c2f3-f3c1-4ba7-bd97-2c4a1d2823e8",
      "name": "Convert criteria and workflow to files",
      "type": "n8n-nodes-base.code",
      "position": [
        13536,
        6256
      ]
    },
    {
      "id": "45829ddd-8d34-47e8-b951-686a233e26d8",
      "name": "Upload files to Gemini Files API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        13728,
        6256
      ]
    },
    {
      "id": "20747a51-ce66-4592-b9f3-1ceb286bd77c",
      "name": "Combine uploaded file references",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        13904,
        6256
      ]
    },
    {
      "id": "9b05dee3-812c-405c-a02e-082fc3651d72",
      "name": "Review workflow against criteria",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        14112,
        6256
      ]
    },
    {
      "id": "45aaf393-7da0-479c-9c68-b9aa5a5a64b0",
      "name": "Send review results via email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        14384,
        6256
      ]
    }
  ],
  "connections": {
    "Generate Notion API URLs": {
      "main": [
        [
          {
            "node": "Fetch guideline pages from Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine all fetched pages": {
      "main": [
        [
          {
            "node": "Extract text from Notion blocks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit workflow for review": {
      "main": [
        [
          {
            "node": "Generate Notion API URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract text from Notion blocks": {
      "main": [
        [
          {
            "node": "Generate approval checklist with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine uploaded file references": {
      "main": [
        [
          {
            "node": "Review workflow against criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review workflow against criteria": {
      "main": [
        [
          {
            "node": "Send review results via email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload files to Gemini Files API": {
      "main": [
        [
          {
            "node": "Combine uploaded file references",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch guideline pages from Notion": {
      "main": [
        [
          {
            "node": "Combine all fetched pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate approval checklist with AI": {
      "main": [
        [
          {
            "node": "Convert criteria and workflow to files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini for criteria generation": {
      "ai_languageModel": [
        [
          {
            "node": "Generate approval checklist with AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Convert criteria and workflow to files": {
      "main": [
        [
          {
            "node": "Upload files to Gemini Files API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}