{
  "name": "AI news research team: 24/7 newsletter automation with citations with Perplexity",
  "nodes": [
    {
      "id": "fd92f99a-7f1f-40cb-af27-a4a868762c96",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1120,
        380
      ]
    },
    {
      "id": "d48998d5-4a3c-4d43-8e27-ec33568710a7",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        380,
        0
      ]
    },
    {
      "id": "d68701d2-8f80-4501-aca6-eb8e6bd1f8a2",
      "name": "Title",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "d924b9e9-c619-48e6-8da0-bb21613051cf",
      "name": "News Reporter",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "f19d4326-7e9c-4a77-b15b-672b9e17ac2b",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        480,
        1020
      ]
    },
    {
      "id": "98fc99fc-0c90-4f24-b8ee-9bcedade4110",
      "name": "Response",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        1020
      ]
    },
    {
      "id": "dcc01ac4-becd-45fc-853e-5b8753b89480",
      "name": "Perplexity API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        1020
      ]
    },
    {
      "id": "db06da11-cea7-40b7-9cdd-b10a424e4d08",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        960
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "038bcb0d-c7d7-474e-af9d-76f761506135",
      "name": "Perplexity_tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        160,
        180
      ]
    },
    {
      "id": "0bacd48f-1e70-42cd-80ca-61fe20fd2fc9",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        0,
        180
      ]
    },
    {
      "id": "a37b5a5d-e4f1-4a7c-b736-65369f810d79",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        180
      ]
    },
    {
      "id": "4ebabbd4-2163-460a-8eb0-ff72281af28a",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        -480,
        380
      ]
    },
    {
      "id": "0b8fc85a-ddf7-42b2-969f-cbd79da8ea21",
      "name": "Merge chapters title and text",
      "type": "n8n-nodes-base.merge",
      "position": [
        1500,
        520
      ]
    },
    {
      "id": "39497428-bdd2-4850-a385-2744c7f4dc3b",
      "name": "Final article text",
      "type": "n8n-nodes-base.code",
      "position": [
        1840,
        520
      ]
    },
    {
      "id": "76aa78bf-97e4-4812-81ab-6c79907a2bcf",
      "name": "Research Leader 🔬",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        520
      ]
    },
    {
      "id": "a65ffbe5-5a8f-446e-a7d7-f37cd192146e",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        640,
        720
      ]
    },
    {
      "id": "04cfc571-25fe-4140-8763-e92b671660c0",
      "name": "Delegate to Research Assistants",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        840,
        520
      ]
    },
    {
      "id": "dfe0170d-08d0-4206-8f26-6e5e2e33a125",
      "name": "Research Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1080,
        520
      ]
    },
    {
      "id": "951a881b-47f4-4e21-acdf-12d402d5d649",
      "name": "Project Planner",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        460,
        520
      ]
    },
    {
      "id": "e89014da-adb4-4027-96d7-3e7510f50b5d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5b25e90d-49a7-439c-a58a-38eb5c683ebf",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1100,
        720
      ]
    },
    {
      "id": "b9f36fbb-217a-4fbb-9c5c-9de8396eec7d",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        20,
        700
      ]
    },
    {
      "id": "cbd2e9f5-07a5-4656-9711-ad03ea2c5168",
      "name": "OpenAI Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2100,
        740
      ]
    },
    {
      "id": "7c2e3eb3-7f0c-40ef-bb18-5babcc597265",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        720
      ]
    },
    {
      "id": "7de67c62-8174-4f05-8759-c0f162b32a51",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "42e4655a-2658-4284-a4e1-7b58d43d46d2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "552a78f4-0630-4c1c-b0eb-a89c160df8c8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1740,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "18d6439c-9822-4ca1-88d5-7d01c5fc779b",
      "name": "Title1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2460,
        520
      ]
    },
    {
      "id": "f2b360a6-77b1-42f3-98ce-9fe68af55a1d",
      "name": "Gmail1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2960,
        680
      ]
    },
    {
      "id": "19f0ed2b-5be6-4973-b4df-d8239b0625bc",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -300,
        380
      ]
    },
    {
      "id": "da8fd4d1-1ad7-414a-8f00-73a87e392d9f",
      "name": "Editor",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2040,
        520
      ]
    },
    {
      "id": "73ce6625-b808-431c-a230-ba4f6735450c",
      "name": "Gmail2",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1080,
        120
      ]
    },
    {
      "id": "0bf944db-7357-4bcf-9b15-4ec91888f0ff",
      "name": "Perplexity_tool2",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        180,
        720
      ]
    },
    {
      "id": "356d49e0-612b-46da-8382-bd7556886464",
      "name": "Perplexity_tool1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1280,
        720
      ]
    },
    {
      "id": "4a85b3bc-e56c-4d8e-8d52-2061bbdc3374",
      "name": "News to Monitor",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -900,
        380
      ]
    },
    {
      "id": "4cd90f4b-546f-4cc8-ab6a-bad8497caf85",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -680,
        380
      ]
    },
    {
      "id": "e1dd5801-e6be-419e-ae48-458ab01226fb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1760,
        300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Title": {
      "main": [
        [
          {
            "node": "Gmail2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Editor": {
      "main": [
        [
          {
            "node": "Title1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "News Reporter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Research Leader 🔬",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Title1": {
      "main": [
        [
          {
            "node": "Gmail1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News Reporter": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity API": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News to Monitor": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool": {
      "ai_tool": [
        [
          {
            "node": "News Reporter",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Project Planner": {
      "main": [
        [
          {
            "node": "Delegate to Research Assistants",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool1": {
      "ai_tool": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool2": {
      "ai_tool": [
        [
          {
            "node": "Research Leader 🔬",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "News to Monitor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "News Reporter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Final article text": {
      "main": [
        [
          {
            "node": "Editor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Title",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Project Planner",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Research Leader 🔬",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Title1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Editor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Research Assistant": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Leader 🔬": {
      "main": [
        [
          {
            "node": "Project Planner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Perplexity API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Project Planner",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Merge chapters title and text": {
      "main": [
        [
          {
            "node": "Final article text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delegate to Research Assistants": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 1
          },
          {
            "node": "Research Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}