{
  "name": "Generate blogs with GPT-4o prompt chaining: outline, evaluate & publish to Sheets",
  "nodes": [
    {
      "id": "65f804e0-15e8-4e4d-8d9d-86b3822d3614",
      "name": "Outline Writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        536,
        380
      ]
    },
    {
      "id": "559d723e-954a-457d-bb8e-062dc8915807",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 940,
        "height": 260,
        "content": "# Prompt Chaining\n ✅ Improved Accuracy and Quality – Each step focuses on a specific task, reducing errors and hallucinations.\n\n ✅ Greater Control Over Each Step – You can refine or tweak individual s"
      }
    },
    {
      "id": "18e552bf-ebae-4aa0-9244-a6753ee4ec92",
      "name": "Outline Evaluation",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        912,
        380
      ]
    },
    {
      "id": "bf5bc10e-574f-4650-9422-21647d405821",
      "name": "Blog Writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1288,
        380
      ]
    },
    {
      "id": "22ed99f2-2d63-40e4-9aa8-427994ecab86",
      "name": "Azure OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        624,
        600
      ]
    },
    {
      "id": "b604cdd2-c6db-48db-a946-b756e910e361",
      "name": "Azure OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        1000,
        600
      ]
    },
    {
      "id": "67dcf633-5cc0-468a-95d9-6b85282a5419",
      "name": "Azure OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        1376,
        600
      ]
    },
    {
      "id": "dbd44165-f8e6-41f7-b0e9-1f770596d20c",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -60,
        380
      ]
    },
    {
      "id": "5b9f95c9-74a4-42b0-a1fc-335d36754cc8",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        380
      ]
    },
    {
      "id": "3ae23f34-844e-4e6f-a56e-faf8c4b1ed03",
      "name": "Azure OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        248,
        600
      ]
    },
    {
      "id": "23d4155c-fb24-481f-a3d7-ffb03c928d41",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1664,
        380
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Outline Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog Writer": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Outline Writer": {
      "main": [
        [
          {
            "node": "Outline Evaluation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Outline Evaluation": {
      "main": [
        [
          {
            "node": "Blog Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Outline Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Outline Evaluation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Blog Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}