{
  "name": "Generate AI SOPs from Google Drive with GPT‑4o, Google Docs and Sheets",
  "nodes": [
    {
      "id": "856cff55-91ed-4d59-bcc4-7d7c45a9a421",
      "name": "New or Updated Document Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1184,
        448
      ]
    },
    {
      "id": "43d4df7f-232a-4329-a969-353f58ce976d",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        1408,
        448
      ]
    },
    {
      "id": "c6ad4faa-f339-47d6-883d-33222658b289",
      "name": "Download Document from Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1632,
        448
      ]
    },
    {
      "id": "f8a5bc31-37c9-45e8-b884-787cb5817186",
      "name": "Extract Text from Document",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1856,
        448
      ]
    },
    {
      "id": "70bee6ec-81c1-450c-abd6-a275900fc3e0",
      "name": "Normalize Content and Metadata",
      "type": "n8n-nodes-base.set",
      "position": [
        2080,
        448
      ]
    },
    {
      "id": "d72842ef-e49b-45be-938c-d241c241f3d4",
      "name": "Generate SOP Structure",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2304,
        448
      ]
    },
    {
      "id": "bd44c251-3081-4def-87b7-c5277fcb63ca",
      "name": "OpenAI Model for SOP Structure",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2312,
        672
      ]
    },
    {
      "id": "e1c69524-fa02-45dd-8869-50b38eb87294",
      "name": "SOP Structure Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2440,
        672
      ]
    },
    {
      "id": "ff8220ff-5b0b-4539-9a89-f15ee1241d19",
      "name": "Refine for Clarity and Consistency",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2656,
        448
      ]
    },
    {
      "id": "f042f9e4-371b-4f01-a9a8-4c8f227424cf",
      "name": "OpenAI Model for Refinement",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2664,
        672
      ]
    },
    {
      "id": "84939a4a-ddc2-4fa3-9996-2698d7132c9a",
      "name": "Refined SOP Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2792,
        672
      ]
    },
    {
      "id": "c92a7798-eec6-42ee-9bcd-d643b8fc1e73",
      "name": "Check Quality Threshold",
      "type": "n8n-nodes-base.if",
      "position": [
        3008,
        448
      ]
    },
    {
      "id": "0321a38b-64b4-4ecf-af56-d1d2c0a5fd58",
      "name": "Create SOP Document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        3232,
        448
      ]
    },
    {
      "id": "fd21e889-81af-4ada-8f14-35dc33202987",
      "name": "Log SOP Metadata",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3456,
        448
      ]
    },
    {
      "id": "be0bc7ce-752d-4d69-91aa-8ae2b582a74e",
      "name": "Notify Operations Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        3680,
        448
      ]
    },
    {
      "id": "c59f396d-214e-4a7a-9d6d-7c068bc85baf",
      "name": "Email SOP to Stakeholders",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3904,
        448
      ]
    },
    {
      "id": "102c806e-69ce-471b-9e91-da2159238c16",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "87c63266-55cb-44f1-8182-eb0c75ed4a68",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1808,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b20e2c6f-7f85-417c-aef0-5a896e8841ff",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d9d01c39-9e8e-4d79-887d-53d71c6c9937",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2928,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dcf6ee0a-6756-4173-ab0a-9efc14278cd4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e31970ec-d802-4183-91a8-cda485a96628",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        336
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Log SOP Metadata": {
      "main": [
        [
          {
            "node": "Notify Operations Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create SOP Document": {
      "main": [
        [
          {
            "node": "Log SOP Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate SOP Structure": {
      "main": [
        [
          {
            "node": "Refine for Clarity and Consistency",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Operations Team": {
      "main": [
        [
          {
            "node": "Email SOP to Stakeholders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Download Document from Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Quality Threshold": {
      "main": [
        [
          {
            "node": "Create SOP Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refined SOP Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Refine for Clarity and Consistency",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text from Document": {
      "main": [
        [
          {
            "node": "Normalize Content and Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model for Refinement": {
      "ai_languageModel": [
        [
          {
            "node": "Refine for Clarity and Consistency",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "SOP Structure Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate SOP Structure",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Download Document from Drive": {
      "main": [
        [
          {
            "node": "Extract Text from Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Content and Metadata": {
      "main": [
        [
          {
            "node": "Generate SOP Structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model for SOP Structure": {
      "ai_languageModel": [
        [
          {
            "node": "Generate SOP Structure",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "New or Updated Document Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refine for Clarity and Consistency": {
      "main": [
        [
          {
            "node": "Check Quality Threshold",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}