{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "8ba2051a-bd8a-47e0-b475-3d5504bec53d",
      "name": "OpenAI Chat Model7",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1088,
        9792
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5b288b80-01b6-41fa-9df4-1b0f05b3b684",
      "name": "Get many items",
      "type": "n8n-nodes-base.mondayCom",
      "position": [
        224,
        9760
      ],
      "parameters": {
        "boardId": "9865886546",
        "groupId": "new_group29179",
        "resource": "boardItem",
        "operation": "getAll"
      },
      "credentials": {
        "mondayComApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f5280014-9a86-44c3-af08-df26a2f13afa",
      "name": "Simple Memory3",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1360,
        9664
      ],
      "parameters": {
        "sessionKey": "={{ $('Merge with Chat').item.json.sessionId }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "e90e531d-dac8-487c-96ab-c8c721c49712",
      "name": "Sticky Note65",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        9072
      ],
      "parameters": {
        "color": 7,
        "width": 1488,
        "height": 928,
        "content": "# \ud83d\udcac Chat with Monday.com (n8n + OpenAI)\n\nAsk natural-language questions about your Monday.com tasks (e.g., \u201cWhich tasks are overdue?\u201d, \u201cShow me all items stuck\u201d, \u201cSummarize what\u2019s due this week\u201d).  \nThe assistant fetches **real data from your Monday.com board** and answers based only on that.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ad88962e-6fd8-48ea-953d-49399b9d2439",
      "name": "Sticky Note23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        9072
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n## \u2699\ufe0f Setup Instructions\n\n### 1\ufe0f\u20e3 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)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  \n\n---\n\n### 2\ufe0f\u20e3 Connect Monday.com Node\n1. In **Monday.com** \u2192 go to your **Admin \u2192 API**  \n   - Copy your **Personal API Token**  \n   - Docs: [Generate Monday API Token](https://developer.monday.com/api-reference/docs/authentication)  \n2. In **n8n** \u2192 **Credentials \u2192 New \u2192 Monday.com API**  \n   - Paste your token and save.  \n3. Open the **Get many items** node \u2192 choose your credential \u2192 select your **Board ID** and **Group ID**.  \n\n---\n\n## \ud83e\udde0 How it works\n- **Sample Chatbot**: webhook/chat trigger for your questions  \n- **Get many items (Monday.com)**: pulls board/group tasks  \n- **Set Fields \u2192 Combine \u2192 Convert to text**: formats task data  \n- **OpenAI Chat Model + Memory**: lets you ask questions and keeps context across turns  \n- **Chat with Monday.com**: generates the final AI answer  \n\n---\n\n## \ud83d\udcec Contact\nNeed help customizing this for your own board structure?\n\n\ud83d\udce7 **robert@ynteractive.com**  \n\ud83d\udd17 **[Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)**  \n\ud83c\udf10 **[ynteractive.com](https://ynteractive.com)**\n"
      },
      "typeVersion": 1
    },
    {
      "id": "355aaf4d-fd7e-484b-a0ce-fa9e7530ec99",
      "name": "Set Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        464,
        9792
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "1aa1b62d-d066-41ab-b2e6-91237d4c5980",
              "name": "name",
              "type": "string",
              "value": "={{ $json.name }}"
            },
            {
              "id": "f705bdab-3675-4a36-a072-ed9516f9f228",
              "name": "Status",
              "type": "string",
              "value": "={{ $json.column_values[1].text }}"
            },
            {
              "id": "e23d72c7-f8d1-4751-98d9-63c7842cced6",
              "name": "Due Date",
              "type": "string",
              "value": "={{ $json.column_values[2].value }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "32626cb8-dcf6-4edb-9562-33b7b2e7dc2a",
      "name": "Combine to One Field",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        608,
        9504
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "622e83be-2561-49d4-a47c-e7352d1dc6ec",
      "name": "Merge with Chat",
      "type": "n8n-nodes-base.merge",
      "position": [
        768,
        9296
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3.2
    },
    {
      "id": "c13001b6-577a-4ff3-8ba2-b39456f5d725",
      "name": "Convert to text",
      "type": "n8n-nodes-base.set",
      "position": [
        912,
        9424
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "22d18601-d561-4021-a62b-6dc353907240",
              "name": "data",
              "type": "string",
              "value": "={{ $json.data }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e3ba1cbd-1997-4384-8abd-fab1f59219dc",
      "name": "Chat with Monday.com",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1184,
        9312
      ],
      "parameters": {
        "text": "=Chat Message: {{ $('Merge with Chat').item.json.chatInput }} Tasks:  {{ $json.data }}",
        "options": {
          "systemMessage": "Use the tasks data to answer the chat message"
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "bbb5baca-6411-4d41-8530-3aff0a228513",
      "name": "Sample Chatbot",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        208,
        9280
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.3
    },
    {
      "id": "3df62184-2163-4718-af00-d4f9cc57fede",
      "name": "Sticky Note70",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        9424
      ],
      "parameters": {
        "color": 3,
        "width": 256,
        "height": 480,
        "content": "### 2\ufe0f\u20e3 Connect Monday.com Node\n1. In **Monday.com** \u2192 go to your **Admin \u2192 API**  \n   - Copy your **Personal API Token**  \n   - Docs: [Generate Monday API Token](https://developer.monday.com/api-reference/docs/authentication)  \n2. In **n8n** \u2192 **Credentials \u2192 New \u2192 Monday.com API**  \n   - Paste your token and save.  \n3. Open the **Create Monday Task** node \u2192 choose your credential \u2192 select your **Board ID** and **Group ID**.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "0545ed6f-b4b6-4bbb-82aa-a0e1cbf60d1f",
      "name": "Sticky Note25",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        9632
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### 1\ufe0f\u20e3 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)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  "
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set Fields1": {
      "main": [
        [
          {
            "node": "Combine to One Field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many items": {
      "main": [
        [
          {
            "node": "Set Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample Chatbot": {
      "main": [
        [
          {
            "node": "Get many items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory3": {
      "ai_memory": [
        [
          {
            "node": "Chat with Monday.com",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Convert to text": {
      "main": [
        [
          {
            "node": "Chat with Monday.com",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge with Chat": {
      "main": [
        [
          {
            "node": "Convert to text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "Chat with Monday.com",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chat with Monday.com": {
      "main": [
        []
      ]
    },
    "Combine to One Field": {
      "main": [
        [
          {
            "node": "Merge with Chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}