{
  "name": "Generate research proposals with GPT-4o, web search, and quality control agents",
  "nodes": [
    {
      "id": "ca7007ad-158b-4434-8b2e-cb7739b8c455",
      "name": "Start Proposal Generation",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        256,
        400
      ]
    },
    {
      "id": "df0ede85-7a8a-4cb9-8fbe-daed03ec539e",
      "name": "Supervisor Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1072,
        416
      ]
    },
    {
      "id": "0148fe81-c040-4086-bd3f-8f7b42e01521",
      "name": "Supervisor Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        432,
        624
      ]
    },
    {
      "id": "8dc71381-b990-4546-965b-e6da8fab66ae",
      "name": "Research Content Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        736,
        624
      ]
    },
    {
      "id": "6ffe8e72-d71c-4340-bb38-b2ad9c33fd40",
      "name": "Research Content Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        736,
        832
      ]
    },
    {
      "id": "96a15c43-8668-43c8-8800-51d42a4c33a6",
      "name": "Strategic Planning Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1024,
        624
      ]
    },
    {
      "id": "77e1f9a1-1448-46e7-93c9-3dcca720f7d9",
      "name": "Strategic Planning Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1024,
        832
      ]
    },
    {
      "id": "4119ab75-aebd-4ed3-ac87-536f0173a638",
      "name": "Funding Agency Research Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1312,
        624
      ]
    },
    {
      "id": "1f6a35b9-d0cd-4e25-bd7b-e6abbdbc93cc",
      "name": "Web Search Tool",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        1520,
        640
      ]
    },
    {
      "id": "c44c4394-0391-4623-a648-f5794a3d81de",
      "name": "Quality Control Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1872,
        400
      ]
    },
    {
      "id": "ed3f1fe2-e7e2-4f98-9649-9a7245a5c050",
      "name": "Quality Control Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1808,
        608
      ]
    },
    {
      "id": "5fdec929-283b-4f02-b162-052c6a7a5e3c",
      "name": "Quality Assessment Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2008,
        624
      ]
    },
    {
      "id": "aceb9cba-b42f-413d-900b-84f5e426096a",
      "name": "Check Quality Score",
      "type": "n8n-nodes-base.if",
      "position": [
        2240,
        400
      ]
    },
    {
      "id": "795d8fbc-0778-48f2-bb29-7173e362e92e",
      "name": "Format Final Proposal",
      "type": "n8n-nodes-base.set",
      "position": [
        2448,
        496
      ]
    },
    {
      "id": "4335c976-1d51-42c3-b2d7-d8b81af8d4be",
      "name": "Flag for Revision",
      "type": "n8n-nodes-base.set",
      "position": [
        2448,
        304
      ]
    },
    {
      "id": "91b05631-bcd1-4a28-8edc-e92a0492af54",
      "name": "Store Proposal Results",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2896,
        400
      ]
    },
    {
      "id": "5194b43d-7f59-4f48-9aac-eb3b0a4da8c8",
      "name": "Prepare Storage Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2672,
        400
      ]
    },
    {
      "id": "073fb53e-bd16-4c76-b00d-db22e311648f",
      "name": "Conversation Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        608,
        624
      ]
    },
    {
      "id": "8cce1954-1968-4a42-ac25-65de08e79d55",
      "name": "Ethics Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        832
      ]
    },
    {
      "id": "6dccd987-f05a-40c0-8d34-96c76ff0fa42",
      "name": "Impact Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1360,
        832
      ]
    },
    {
      "id": "73662f95-3703-4d2f-9471-09a4c59ea193",
      "name": "Parse Proposal Structure",
      "type": "n8n-nodes-base.code",
      "position": [
        1648,
        400
      ]
    },
    {
      "id": "cf0d1669-92a0-4e67-8b36-9095a5b4a7c8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        288
      ],
      "parameters": {
        "width": 416,
        "height": 736,
        "content": "## Quality Control\n**What:** QC Agent scores the parsed proposal output.\n**Why:** Prevents substandard proposals from reaching storage."
      }
    },
    {
      "id": "f47e5a98-f22a-4d07-b738-4340332bd9fa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        -112
      ],
      "parameters": {
        "width": 384,
        "height": 336,
        "content": "## Prerequisites\n- Web search API key (SerpAPI/Tavily)\n- Google Sheets or database credentials\n## Use Cases\n- Grant proposal drafting for research institutions\n## Customisation\n- Swap AI models per ag"
      }
    },
    {
      "id": "d5d892e1-7471-465c-95f2-11c87443e37f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -96
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "## Setup Steps\n1. Add OpenAI (or compatible) API credentials to all AI model nodes.\n2. Configure Supervisor, Research Content, Strategic Planning, and QC Agent system prompts.\n3. Set up Funding Agency"
      }
    },
    {
      "id": "e4c549ad-753f-4e70-b590-462f1516a56b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -64
      ],
      "parameters": {
        "width": 576,
        "height": 304,
        "content": "## How It Works\nThis workflow automates academic and professional research proposal generation using a multi-agent AI pipeline. It targets researchers, academics, grant writers, and R&D teams who need"
      }
    },
    {
      "id": "175a8e31-eafd-430a-8ba2-6c61aed3bf7e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        256
      ],
      "parameters": {
        "width": 1536,
        "height": 880,
        "content": "## Multi-Agent Content Generation\n**What:** Research Content, Strategic Planning, and Ethics/Impact agents draft proposal sections in parallel.\n**Why:** Parallel specialisation improves depth and redu"
      }
    },
    {
      "id": "77416593-d0b1-4730-871f-be55af9de069",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        176
      ],
      "parameters": {
        "width": 832,
        "height": 736,
        "content": "\n## Conditional Routing\n**What:** High-scoring proposals are formatted; low-scoring ones are flagged for revision.\n**Why:** Maintains output quality with minimal manual intervention.\n"
      }
    }
  ],
  "connections": {
    "Ethics Model": {
      "ai_languageModel": [
        [
          {
            "node": "Strategic Planning Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Impact Model": {
      "ai_languageModel": [
        [
          {
            "node": "Strategic Planning Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Web Search Tool": {
      "ai_tool": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Supervisor Agent": {
      "main": [
        [
          {
            "node": "Parse Proposal Structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Supervisor Model": {
      "ai_languageModel": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Flag for Revision": {
      "main": [
        [
          {
            "node": "Prepare Storage Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Quality Score": {
      "main": [
        [
          {
            "node": "Format Final Proposal",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Flag for Revision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conversation Memory": {
      "ai_memory": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Storage Data": {
      "main": [
        [
          {
            "node": "Store Proposal Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Final Proposal": {
      "main": [
        [
          {
            "node": "Prepare Storage Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality Control Agent": {
      "main": [
        [
          {
            "node": "Check Quality Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality Control Model": {
      "ai_languageModel": [
        [
          {
            "node": "Quality Control Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Research Content Agent": {
      "ai_tool": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Research Content Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research Content Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse Proposal Structure": {
      "main": [
        [
          {
            "node": "Quality Control Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Strategic Planning Agent": {
      "ai_tool": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Strategic Planning Model": {
      "ai_languageModel": [
        [
          {
            "node": "Strategic Planning Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Quality Assessment Output": {
      "ai_outputParser": [
        [
          {
            "node": "Quality Control Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Start Proposal Generation": {
      "main": [
        [
          {
            "node": "Supervisor Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Funding Agency Research Tool": {
      "ai_tool": [
        [
          {
            "node": "Supervisor Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}