{
  "name": "Create fact-based articles from knowledge sources with Lookio and OpenAI GPT",
  "nodes": [
    {
      "id": "92d1a6cf-5c1b-44e2-a6b7-7b51b5e8455e",
      "name": "New content - generate research questions",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -1008,
        528
      ]
    },
    {
      "id": "a83ee6c4-b669-4985-a905-00c1246d4e90",
      "name": "Format question and answer",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        768
      ]
    },
    {
      "id": "012b019b-be98-416a-a2ba-457adbd1d81a",
      "name": "New content - Generate the AI output",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        144,
        -48
      ]
    },
    {
      "id": "c39ebdbe-0fd8-4a8a-8e6f-4f71f0593c4c",
      "name": "New article form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1568,
        528
      ]
    },
    {
      "id": "364b4077-2727-460d-b400-e7d39de4ec02",
      "name": "Prepare form values",
      "type": "n8n-nodes-base.set",
      "position": [
        -1312,
        528
      ]
    },
    {
      "id": "d9122da2-a108-4e51-902f-4ffd62d0a69b",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -880,
        752
      ]
    },
    {
      "id": "fc390142-c963-46eb-9ec7-917ad1374a14",
      "name": "GPT 5 mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1008,
        752
      ]
    },
    {
      "id": "fca117d9-a040-4e51-b938-c2125f33f040",
      "name": "Split Out Questions",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -608,
        528
      ]
    },
    {
      "id": "6cc6e76b-1b0b-4aac-896b-57648949c9e5",
      "name": "Loop Over Questions",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -352,
        512
      ]
    },
    {
      "id": "c017af5b-418e-4231-ae57-6c642324e0b9",
      "name": "GPT 5 chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        224,
        176
      ]
    },
    {
      "id": "908b7320-37b4-45c1-8fc5-c0670398ac49",
      "name": "Article result",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        -48
      ]
    },
    {
      "id": "e00af6b7-0d8a-410c-9d78-743a47b64d5b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        512
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n### Connect your lookio.app credentials & replace your assistant ID"
      }
    },
    {
      "id": "009734ed-642f-4916-a3b0-83fa2b6b32f9",
      "name": "Aggregate research content",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -112,
        160
      ]
    },
    {
      "id": "7e086700-f7cd-44e3-9f23-645a0ac63769",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        -256
      ],
      "parameters": {
        "width": 832,
        "height": 560,
        "content": "# AI Article Writer Based on Your Knowledge Base\n\nThis isn't just a writer; it's an automated research and content team. It generates high-quality, reliable articles by grounding the entire process in"
      }
    },
    {
      "id": "2311af8d-8f3b-4153-9e9a-94cbdfd995b5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        384
      ],
      "parameters": {
        "width": 976,
        "height": 608,
        "content": "## Answering each sub-question one by one with Lookio"
      }
    },
    {
      "id": "b8d2e5a4-2390-4fd4-8b56-2d6a5e745d48",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -208
      ],
      "parameters": {
        "width": 368,
        "height": 512,
        "content": "## AI step writing the final article based on the research and initial request"
      }
    },
    {
      "id": "644b48e0-1bd3-470d-88ae-0a7da22e6eac",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        384
      ],
      "parameters": {
        "width": 480,
        "height": 608,
        "content": "## Breaking down the topic into sub-questions"
      }
    },
    {
      "id": "c0c2508f-2d93-4246-be63-3fd73100ad32",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1648,
        400
      ],
      "parameters": {
        "width": 272,
        "height": 304,
        "content": "## Fill in this form to request a new article"
      }
    },
    {
      "id": "0b703c42-c0a9-4a49-84e9-4dfa60025d6e",
      "name": "Query Lookio Assistant",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -32,
        560
      ]
    }
  ],
  "connections": {
    "GPT 5 chat": {
      "ai_languageModel": [
        [
          {
            "node": "New content - Generate the AI output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5 mini": {
      "ai_languageModel": [
        [
          {
            "node": "New content - generate research questions",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "New article form": {
      "main": [
        [
          {
            "node": "Prepare form values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Questions": {
      "main": [
        [
          {
            "node": "Aggregate research content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Query Lookio Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare form values": {
      "main": [
        [
          {
            "node": "New content - generate research questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Questions": {
      "main": [
        [
          {
            "node": "Loop Over Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Lookio Assistant": {
      "main": [
        [
          {
            "node": "Format question and answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "New content - generate research questions",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate research content": {
      "main": [
        [
          {
            "node": "New content - Generate the AI output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format question and answer": {
      "main": [
        [
          {
            "node": "Loop Over Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New content - Generate the AI output": {
      "main": [
        [
          {
            "node": "Article result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New content - generate research questions": {
      "main": [
        [
          {
            "node": "Split Out Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}