{
  "name": "Ai email auto-responder system- AI RAG agent for email inbox",
  "nodes": [
    {
      "id": "2db5e025-209e-48ef-bdf5-8ee1eb0fab7b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1780,
        1200
      ]
    },
    {
      "id": "c11e07ab-75e8-42ed-b6a7-c98f0039eddb",
      "name": "Answer questions with a vector store",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2200,
        1200
      ]
    },
    {
      "id": "e615fb6f-0870-4c81-bcef-c8a9d7ae0233",
      "name": "Pinecone Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        2040,
        1400
      ]
    },
    {
      "id": "fcf497be-9614-4701-a5a8-15e04a9040fe",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2040,
        1520
      ]
    },
    {
      "id": "d1b4ab12-fe69-406a-8c1b-d4bab1c02e63",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2340,
        1420
      ]
    },
    {
      "id": "7ab09163-cea5-45a1-8a49-235b734773e5",
      "name": "Get Brand brief",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2080,
        1220
      ]
    },
    {
      "id": "8e571e5e-aa9f-48ac-86d7-365f05d25f7f",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        780,
        900
      ]
    },
    {
      "id": "a63ac63b-2002-4c56-9674-2ec20e406932",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1360,
        1120
      ]
    },
    {
      "id": "cdc804b7-6b4f-4669-b3c0-3da3df1681d9",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        900
      ]
    },
    {
      "id": "1ea5665e-15ea-4dda-b1d7-88669139c0d4",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1940,
        1220
      ]
    },
    {
      "id": "b50d2551-8b91-41aa-9e88-03f292e41858",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2660,
        1200
      ]
    },
    {
      "id": "c833622a-c488-41a0-80b6-fced19b5c497",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3080,
        900
      ]
    },
    {
      "id": "f35198e9-2479-4e58-8d0e-21c96f8e9411",
      "name": "Search Information",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1960,
        900
      ]
    },
    {
      "id": "8cc3a83a-0772-4d2d-b26a-1030b6d0a55b",
      "name": "Response writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2620,
        900
      ]
    },
    {
      "id": "7cb7bae5-0630-4406-893b-c66d6888680b",
      "name": "Set Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        900
      ]
    },
    {
      "id": "9cc8f67f-dac0-41b7-9277-8f6ee6d4c0d7",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1040,
        -720
      ]
    },
    {
      "id": "92c8079b-f3c7-4949-b5e9-b01c4cf9395f",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1280,
        -720
      ]
    },
    {
      "id": "6b851c32-609a-4970-8065-5ad6193f1637",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1580,
        -720
      ]
    },
    {
      "id": "5492ffd8-21df-4dd9-9f3c-b55b8ecfb258",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1800,
        -500
      ]
    },
    {
      "id": "d27b5bd6-0136-4a5d-a524-91b3c50a9524",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1800,
        -300
      ]
    },
    {
      "id": "2453df3e-9fc6-4b23-9076-339d9fcb4281",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1440,
        -500
      ]
    },
    {
      "id": "d5603de9-510d-42d4-9cca-b81326933550",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1120,
        180
      ]
    },
    {
      "id": "2315b4c2-e4df-4934-9b16-40e362397da1",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        1360,
        180
      ]
    },
    {
      "id": "9709f9dc-f2d0-4453-9795-ed321577a301",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1580,
        180
      ]
    },
    {
      "id": "1e62669f-dd75-443c-a967-f362c824f9cf",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        180
      ]
    },
    {
      "id": "a00066ed-aa5c-4d06-ac84-defe30c44358",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -900
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0d1f7c5d-0826-46f5-8c79-15516e97e1cc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -900
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "18e784de-5ae5-45d5-8c92-067406327abd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -60
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d0afaa13-fdec-4006-8a5e-f31b2ebe308b",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1360,
        0
      ]
    },
    {
      "id": "7f79c5f2-6430-4b4d-b578-7d95006d10bd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9a3c6070-aad1-4d7f-a274-d75929b54796",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        740
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a77c19e2-02ab-445f-b748-ee471d20add5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3420,
        720
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "00cae7df-b14b-4b9f-9252-7eaf285906a4",
      "name": "Check if Question",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1260,
        900
      ]
    },
    {
      "id": "aefac4d4-9c6a-4b1c-9526-83a8909b51f7",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3360,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Search Information",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Data": {
      "main": [
        [
          {
            "node": "Check if Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Set Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Search Information",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand brief": {
      "ai_tool": [
        [
          {
            "node": "Search Information",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Response writer": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Question": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Search Information",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Answer questions with a vector store",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Check if Question",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Response writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Search Information": {
      "main": [
        [
          {
            "node": "Response writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_vectorStore": [
        [
          {
            "node": "Answer questions with a vector store",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Answer questions with a vector store": {
      "ai_tool": [
        [
          {
            "node": "Search Information",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}