{
  "name": "Generate exam question papers with GPT-4 and email delivery",
  "nodes": [
    {
      "id": "d52fb9c2-2115-4652-8e2e-52dede6bc99e",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -720,
        -500
      ]
    },
    {
      "id": "1747ae55-0145-491d-b06c-7d6fad1b6fb4",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        40,
        -940
      ]
    },
    {
      "id": "db8b52b5-de1f-4346-a1e4-a2cd1505bb10",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -20,
        -460
      ]
    },
    {
      "id": "c3e9d1d5-46ca-42b4-807e-faa2cbc1c747",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -20,
        100
      ]
    },
    {
      "id": "647e3bc6-2672-4858-8cce-f2bc12f2ff4c",
      "name": "Part A QP Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        140,
        -1260
      ]
    },
    {
      "id": "d8336bbc-ad6e-44db-9555-453a4f28de0a",
      "name": "Part C QP Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        -280
      ]
    },
    {
      "id": "ed68e227-24b1-48d0-879b-5a5db0476399",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        440,
        60
      ]
    },
    {
      "id": "b96123a3-5216-465e-b96f-3b1fdba19821",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        420,
        -440
      ]
    },
    {
      "id": "53df364b-d29e-4bff-a0f3-2a568e27d74e",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        520,
        -860
      ]
    },
    {
      "id": "710af5bb-3308-49aa-9415-40f89a132aa4",
      "name": "Part B QP Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        120,
        -780
      ]
    },
    {
      "id": "7dc94d6b-d214-437c-b6c6-251f231d4053",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1180,
        -820
      ]
    },
    {
      "id": "5c40fd23-220c-4215-b6ce-6b9d9c82c88d",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1440,
        -360
      ]
    },
    {
      "id": "feb6ebc0-2a02-45cd-93b6-c273e82a4dd9",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        -580
      ]
    },
    {
      "id": "11aa55ff-531b-4357-bf9c-208c6939073d",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2100,
        -940
      ]
    },
    {
      "id": "b92f56f3-0a1a-4dc1-8fda-a73f49cc1047",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1700,
        -1060
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "In the HTML section enter the html code of the question paper template and call the generated question from AI Agents"
      }
    },
    {
      "id": "4aaa8af3-6477-4e1b-be7b-dedd9b903870",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2060,
        -1080
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "You will receive the generated question paper in the email."
      }
    },
    {
      "id": "972d7487-57a9-48d4-9ff2-2580721d38b7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        -660
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "In the form, input the subject code/name, syllabus, and email to send the question paper      "
      }
    },
    {
      "id": "00b1703f-2de1-4b68-b395-990731953778",
      "name": "QP Formatter with HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        1780,
        -920
      ]
    },
    {
      "id": "261c711f-af63-4362-bfff-39897a4e7438",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -1320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "This AI Agent will generate four 2 mark questions "
      }
    },
    {
      "id": "c706be51-1c6a-4c45-9b31-6dd52a24aaf7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -720
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "This AI Agent will generate four 13 mark questions with each question having 2 choices"
      }
    },
    {
      "id": "791adcb1-058e-4a5b-a4c5-711d4c0fd61d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "This AI Agent will generate two 14 mark questions with each question having 2 choices"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "QP Formatter with HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Part A QP Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Part C QP Agent": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Part B QP Agent1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Part A QP Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Part A QP Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Part C QP Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Part B QP Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Part B QP Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Part C QP Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "QP Formatter with HTML": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Part A QP Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Part B QP Agent1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Part C QP Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}