{
  "name": "Add Project Tasks to Google Sheets with GPT-4.1-mini Chat Assistant",
  "nodes": [
    {
      "id": "b96307a6-bb22-4556-96a9-89ca63119d1e",
      "name": "Chat Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -48,
        -240
      ]
    },
    {
      "id": "ad1d74e7-99a7-481d-8b1e-1c10c41d5571",
      "name": "Project Manager Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        288,
        0
      ]
    },
    {
      "id": "59010e50-ee02-4de3-b5a0-346d4178a449",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        64,
        432
      ]
    },
    {
      "id": "a848cc81-5f47-4858-8a12-9a831486e071",
      "name": "Chat Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        320,
        256
      ]
    },
    {
      "id": "10c72aeb-b224-49fb-86cd-93470008271b",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        496,
        256
      ]
    },
    {
      "id": "6fb809a0-142c-400b-b9de-e18ad05b2a07",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        512,
        432
      ]
    },
    {
      "id": "f14a95f4-5673-43f6-91f8-c23f2c15d508",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1216,
        -64
      ]
    },
    {
      "id": "cee60393-1bd8-4f9d-a9d2-d905b5a52806",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1440,
        -80
      ]
    },
    {
      "id": "2b3667cb-be26-496a-adf0-1e0057d0483f",
      "name": "Write Json",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1264,
        -288
      ]
    },
    {
      "id": "724db2b3-48c4-4979-bdd8-b56db7473cf0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -448
      ],
      "parameters": {
        "width": 2448,
        "height": 1136,
        "content": "### AI Project Manager — Add Tasks to Google Sheets from Chat\n\nLet your team create, track, and manage project tasks through natural conversation.  \nThis workflow uses an **AI Project Manager Agent** "
      }
    },
    {
      "id": "705cd275-88bd-4002-9e0e-cbc070614196",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -448
      ],
      "parameters": {
        "width": 400,
        "height": 1136,
        "content": "## ⚙️ Setup instructions\n\n### 1. Connect OpenAI\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys) → copy your API key.  \n2. In n8n, create **New Credentials → OpenAI API** and paste you"
      }
    },
    {
      "id": "7783171c-3b32-4a8c-8b50-4017c024506a",
      "name": "Sticky Note64",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        -272
      ],
      "parameters": {
        "width": 256,
        "height": 656,
        "content": "### 2) Connect Google Sheets (OAuth2)\n\n1. In **n8n → Credentials → New → Google Sheets (OAuth2)**  \n2. Sign in with your Google account and **grant access**.  \n3. In your workflow’s **Google Sheets** "
      }
    },
    {
      "id": "d3082998-cae4-4be1-97a4-55c37fae9452",
      "name": "Add Task",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1712,
        160
      ]
    },
    {
      "id": "0cfb869e-1572-4a14-b280-f41c274b5c3e",
      "name": "Respond Complete",
      "type": "@n8n/n8n-nodes-langchain.chat",
      "position": [
        2000,
        -288
      ]
    },
    {
      "id": "72085766-5d15-4556-b034-2b009340bfbd",
      "name": "Have All Info?",
      "type": "n8n-nodes-base.if",
      "position": [
        640,
        0
      ]
    },
    {
      "id": "eaa01a56-d5c6-415e-b445-56a8dedc8a5e",
      "name": "Sticky Note29",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        256
      ],
      "parameters": {
        "width": 288,
        "height": 304,
        "content": "### 1 Set Up OpenAI Connection\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n"
      }
    },
    {
      "id": "6959a232-2f84-438e-830a-15cc240f6c5b",
      "name": "Get More Info",
      "type": "@n8n/n8n-nodes-langchain.chat",
      "position": [
        992,
        128
      ]
    }
  ],
  "connections": {
    "Add Task": {
      "main": [
        [
          {
            "node": "Respond Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Json": {
      "main": [
        [
          {
            "node": "Add Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "Project Manager Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Chat Trigger": {
      "main": [
        [
          {
            "node": "Project Manager Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Have All Info?": {
      "main": [
        [
          {
            "node": "Write Json",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get More Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Project Manager Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Write Json",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Project Manager Agent": {
      "main": [
        [
          {
            "node": "Have All Info?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Project Manager Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Write Json",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}