{
  "name": "Generate & optimize brand stories with Ollama LLMs and Google Sheets",
  "nodes": [
    {
      "id": "f0fa65c1-68a1-4ad8-94f5-12dcce2ce708",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "346fff16-a415-4e28-af89-bfb2dca3a633",
      "name": "Evaluator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        340
      ]
    },
    {
      "id": "065c3094-415c-4aa8-a964-85bc73efe394",
      "name": "Optimizer Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1380,
        420
      ]
    },
    {
      "id": "9e38b175-e7d7-454f-8d14-0deef8a9f902",
      "name": "Ollama Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        340,
        640
      ]
    },
    {
      "id": "123150d5-cd70-4c4e-9803-549d92ae8011",
      "name": "Ollama Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        1400,
        660
      ]
    },
    {
      "id": "7a2e6ce1-fb42-4c44-9ead-356eff3e4fa2",
      "name": "Chat Input: Start Story Flow",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -100,
        340
      ]
    },
    {
      "id": "9a2f1aa8-b5c9-4887-81c1-2450707b6e4b",
      "name": "Brand Storytelling Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        120,
        340
      ]
    },
    {
      "id": "56a6384a-8ccd-41bd-82d6-ab5882b055d6",
      "name": "Set Brand variable",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        340
      ]
    },
    {
      "id": "47ae1610-3bcc-4507-815a-eea07a36c0d1",
      "name": "Save Brand Story to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1360,
        220
      ]
    },
    {
      "id": "80beca32-318c-4e55-9678-5302ee2b7d17",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        620
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "30105c81-95cc-4362-9153-7e6748a08d8e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3d16e5be-ca4b-4c0b-a567-e60afeeb7bcb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        660
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bd008cb7-78f5-49c4-a76a-76e170946173",
      "name": "Evaluation Check",
      "type": "n8n-nodes-base.if",
      "position": [
        1060,
        340
      ]
    }
  ],
  "connections": {
    "Evaluator Agent": {
      "main": [
        [
          {
            "node": "Evaluation Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optimizer Agent": {
      "main": [
        [
          {
            "node": "Set Brand variable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluation Check": {
      "main": [
        [
          {
            "node": "Save Brand Story to Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Optimizer Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Brand Storytelling Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Evaluator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Optimizer Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Brand variable": {
      "main": [
        [
          {
            "node": "Evaluator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brand Storytelling Agent": {
      "main": [
        [
          {
            "node": "Set Brand variable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Input: Start Story Flow": {
      "main": [
        [
          {
            "node": "Brand Storytelling Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}