{
  "name": "Qwen-Max: journal paper generation from title/abstract",
  "nodes": [
    {
      "id": "fc6d2f46-8469-462f-a1ac-1a8e0ef1e34a",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        912,
        576
      ]
    },
    {
      "id": "0d552fde-1c24-46a9-bd40-4c6b6e61b8d6",
      "name": "Extract Input Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1136,
        576
      ]
    },
    {
      "id": "57b17808-e757-46c3-bdae-ec214be11adc",
      "name": "Search CrossRef",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        384
      ]
    },
    {
      "id": "015359f6-359f-4fc0-8c2d-8cff17be10e9",
      "name": "Search Semantic Scholar",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        576
      ]
    },
    {
      "id": "6374ccb8-2ed8-4da5-9965-62e2a1fb2065",
      "name": "Search OpenAlex",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        768
      ]
    },
    {
      "id": "ca5b6a0d-6580-4e58-9ab8-ccb0e8abcd3b",
      "name": "Merge Reference Sources",
      "type": "n8n-nodes-base.merge",
      "position": [
        1584,
        480
      ]
    },
    {
      "id": "6ee4af2c-cf29-4d74-82f5-97cc69ce5ce7",
      "name": "Process References",
      "type": "n8n-nodes-base.code",
      "position": [
        1744,
        480
      ]
    },
    {
      "id": "e037dbf7-bdab-4bf6-84db-dce20b0c67dd",
      "name": "Prepare AI Context",
      "type": "n8n-nodes-base.set",
      "position": [
        1904,
        480
      ]
    },
    {
      "id": "798b2912-20b4-4cfe-97ee-bffa0c0620e6",
      "name": "AI - Introduction",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2048,
        480
      ]
    },
    {
      "id": "7517912b-3040-4395-934e-a4de5188e1f1",
      "name": "AI - Literature Review",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2400,
        552
      ]
    },
    {
      "id": "85a4abe9-a9db-4d93-bba0-808527ac92bb",
      "name": "AI - Methodology",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2672,
        624
      ]
    },
    {
      "id": "2b0d308d-596d-4f00-8b44-a7a1f85e2581",
      "name": "AI - Results",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2944,
        624
      ]
    },
    {
      "id": "e7ef23a5-69ac-4929-9652-61e98d1d0bd6",
      "name": "AI - Discussion",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3296,
        624
      ]
    },
    {
      "id": "21449345-642a-4727-ba35-ecb4fa714a7b",
      "name": "AI - Conclusion",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3648,
        624
      ]
    },
    {
      "id": "4dcd7857-1872-4708-acc6-cc36ab364f25",
      "name": "Merge All Sections",
      "type": "n8n-nodes-base.merge",
      "position": [
        2832,
        432
      ]
    },
    {
      "id": "a6b631b3-7e40-4bec-b219-08ff05b343e9",
      "name": "Compile Document",
      "type": "n8n-nodes-base.code",
      "position": [
        2992,
        432
      ]
    },
    {
      "id": "4cfb91af-d425-4a2c-b555-b6231f88ad68",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2704,
        880
      ]
    },
    {
      "id": "fb7918f8-af6f-49f2-b78d-a3327edd849a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        48
      ],
      "parameters": {
        "width": 880,
        "height": 416,
        "content": "## Introduction\nGenerates complete scientific papers from title and abstract using AI. Designed for researchers, automating literature search, content generation, and citation formatting.\n## How It Wo"
      }
    },
    {
      "id": "864a043a-2294-4347-af2b-126a000ab7b1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        48
      ],
      "parameters": {
        "width": 784,
        "height": 320,
        "content": "## Setup Instructions\n1. **Trigger & APIs:** Configure webhook URL; add OpenAI API key; customize prompts\n2. **Databases:** Set up CrossRef, Semantic Scholar, OpenAlex API access; configure search par"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Extract Input Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Results": {
      "main": [
        [
          {
            "node": "AI - Discussion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Discussion": {
      "main": [
        [
          {
            "node": "AI - Conclusion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search CrossRef": {
      "main": [
        [
          {
            "node": "Merge Reference Sources",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Methodology": {
      "main": [
        [
          {
            "node": "AI - Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Introduction": {
      "main": [
        [
          {
            "node": "AI - Literature Review",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge All Sections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Input Data": {
      "main": [
        [
          {
            "node": "Search CrossRef",
            "type": "main",
            "index": 0
          },
          {
            "node": "Search Semantic Scholar",
            "type": "main",
            "index": 0
          },
          {
            "node": "Search OpenAlex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Sections": {
      "main": [
        [
          {
            "node": "Compile Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare AI Context": {
      "main": [
        [
          {
            "node": "AI - Introduction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process References": {
      "main": [
        [
          {
            "node": "Prepare AI Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI - Introduction",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI - Literature Review",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI - Methodology",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI - Results",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI - Discussion",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI - Conclusion",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI - Literature Review": {
      "main": [
        [
          {
            "node": "AI - Methodology",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge All Sections",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Reference Sources": {
      "main": [
        [
          {
            "node": "Process References",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Semantic Scholar": {
      "main": [
        [
          {
            "node": "Merge Reference Sources",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}