{
  "name": "Create anti-cheating tests from PDFs with GPT-4o-mini and Google Docs",
  "nodes": [
    {
      "id": "9ad448d2-3e46-4370-a94a-c5660c2a011c",
      "name": "Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        112,
        448
      ]
    },
    {
      "id": "9f09d15c-af0f-4dc4-b001-02bad462747a",
      "name": "Extract PDF",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        320,
        448
      ]
    },
    {
      "id": "6cae75f2-f3a2-46a7-ae32-9cba52b7a691",
      "name": "AI Generate",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        496,
        448
      ]
    },
    {
      "id": "4ab7a9bc-c1e0-4428-a0e5-c3c5a47a2be7",
      "name": "Format Test",
      "type": "n8n-nodes-base.code",
      "position": [
        768,
        448
      ]
    },
    {
      "id": "137926bb-065b-4612-ac7b-a4612bae4a5a",
      "name": "Create Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        992,
        448
      ]
    },
    {
      "id": "35286471-c560-4175-a6b7-e1fa74444e15",
      "name": "Share Doc",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1136,
        448
      ]
    },
    {
      "id": "fa6d3d38-6f02-48c7-aeaa-ae800affbe22",
      "name": "Insert Group A",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1280,
        448
      ]
    },
    {
      "id": "43e1d9a2-8969-42bc-96c6-ba20b7d07a4e",
      "name": "Page Break",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1424,
        448
      ]
    },
    {
      "id": "65835ab4-9049-47c2-bdec-aab494584899",
      "name": "Insert Group B",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1568,
        448
      ]
    },
    {
      "id": "618a02e0-1855-42c4-a208-6fdb08732839",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1808,
        448
      ]
    },
    {
      "id": "53a169ac-2f10-4925-bf54-f52ec3dc9716",
      "name": "📝 Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -256
      ],
      "parameters": {
        "width": 420,
        "height": 476,
        "content": "## How it works\n\n1. **User submits form** with PDF teaching materials\n2. **PDF text extraction** pulls content from document  \n3. **AI generates questions** (10 total: 5 Group A, 5 Group B)\n4. **Googl"
      }
    },
    {
      "id": "12dc0854-1599-4af4-9d57-1e4260210a12",
      "name": "Group: Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        256
      ],
      "parameters": {
        "width": 388,
        "height": 404,
        "content": "## 📝 Form & PDF Processing\n\nCaptures user input and extracts text from PDF document."
      }
    },
    {
      "id": "22f479f2-7881-4d9a-a8f8-30bdd041ca8f",
      "name": "Group: AI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        256
      ],
      "parameters": {
        "width": 452,
        "height": 396,
        "content": "## 🤖 AI Question Generation\n\nOpenAI generates 10 questions (5 per group) based on PDF content.\n\n**Model:** GPT-4o-mini  \n**Cost:** ~$0.002 per test"
      }
    },
    {
      "id": "7e75915b-1c49-48fb-be90-7de4c8382361",
      "name": "Group: Docs",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        256
      ],
      "parameters": {
        "width": 756,
        "height": 388,
        "content": "## 📄 Google Docs Output\n\nCreates formatted document with both test versions and auto-shares with link."
      }
    },
    {
      "id": "851da681-c3b3-495a-b59d-e0b1077650a3",
      "name": "Group: Email",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        256
      ],
      "parameters": {
        "width": 260,
        "height": 388,
        "content": "## ✉️ Email Notification\n\nSends professional email with document link."
      }
    }
  ],
  "connections": {
    "Share Doc": {
      "main": [
        [
          {
            "node": "Insert Group A",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Doc": {
      "main": [
        [
          {
            "node": "Share Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page Break": {
      "main": [
        [
          {
            "node": "Insert Group B",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Generate": {
      "main": [
        [
          {
            "node": "Format Test",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF": {
      "main": [
        [
          {
            "node": "AI Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Test": {
      "main": [
        [
          {
            "node": "Create Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger": {
      "main": [
        [
          {
            "node": "Extract PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Group A": {
      "main": [
        [
          {
            "node": "Page Break",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Group B": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}