{
  "name": "Automated email assistant for suppliers using OpenAI and Google Sheets",
  "nodes": [
    {
      "id": "f1ecb3d0-eca9-4055-966f-9afbd2ccffca",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -20,
        -640
      ]
    },
    {
      "id": "056176ce-7aed-44e1-8c95-6545d8742d63",
      "name": "Send message by Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        300,
        -460
      ]
    },
    {
      "id": "579d3a6f-8f64-4d1f-8837-ed566ffe56cc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -720
      ],
      "parameters": {
        "width": 1140,
        "height": 480,
        "content": "## To implement this personal email assistant for suppliers,\n## you need to follow these steps.\n\n### In Google Drive, create a Google Sheets file named \"Suppliers\",\nwhich should contain 2 columns:\n(Su"
      }
    },
    {
      "id": "0e3e99ef-434c-4c65-b282-6f2d267ad9f9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -200
      ],
      "parameters": {
        "width": 1140,
        "height": 660,
        "content": "## This would be the AI Agent that connects to the MCP Server — in other words, it is the MCP Client.\n\n### 1. The message arrives and is passed to the AI agent.\n### 2. The assistant first executes the"
      }
    },
    {
      "id": "fda2fd56-fb9b-4074-9a4f-ae14e94d95de",
      "name": "Entry Point: Chat with the Agent",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -300,
        40
      ]
    },
    {
      "id": "de8be0e7-2eea-43d5-9f8c-a6232986c524",
      "name": "Personal Email Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        60,
        40
      ]
    },
    {
      "id": "05ab000e-3d2c-4429-a75e-7b4db94baa03",
      "name": "AI Model Open AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -160,
        260
      ]
    },
    {
      "id": "cd649882-bd30-4589-ac73-e23da4f4d16e",
      "name": "Chat Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -20,
        240
      ]
    },
    {
      "id": "804571d9-95b1-427e-90ad-a6562c246310",
      "name": "Node that connects to the MCP server.",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        120,
        260
      ]
    },
    {
      "id": "df1ba763-2ab5-4cc9-adf0-47f39bf6e0ec",
      "name": "Thinker, think before executing.",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        260,
        220
      ]
    },
    {
      "id": "e2721ce5-6283-4c20-945f-e0e88b25514f",
      "name": "Supplier database.",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        400,
        260
      ]
    }
  ],
  "connections": {
    "Gmail": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "AI Model Open AI": {
      "ai_languageModel": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Supplier database.": {
      "ai_tool": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Personal Email Assistant": {
      "main": [
        []
      ]
    },
    "Entry Point: Chat with the Agent": {
      "main": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Thinker, think before executing.": {
      "ai_tool": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Node that connects to the MCP server.": {
      "ai_tool": [
        [
          {
            "node": "Personal Email Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}