{
  "name": "AI Email Responder with RAG: Pinecone, Gmail, n8n (free JSON)",
  "nodes": [
    {
      "id": "2db5e025-209e-48ef-bdf5-8ee1eb0fab7b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1780,
        1200
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "c11e07ab-75e8-42ed-b6a7-c98f0039eddb",
      "name": "Answer questions with a vector store",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2200,
        1200
      ],
      "parameters": {
        "topK": 6,
        "description": "Get data about company"
      },
      "typeVersion": 1.1
    },
    {
      "id": "e615fb6f-0870-4c81-bcef-c8a9d7ae0233",
      "name": "Pinecone Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        2040,
        1400
      ],
      "parameters": {
        "options": {
          "pineconeNamespace": "YOUR_PINECONE_NAMESPACE"
        },
        "pineconeIndex": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_PINECONE_INDEX_NAME"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "fcf497be-9614-4701-a5a8-15e04a9040fe",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2040,
        1520
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "d1b4ab12-fe69-406a-8c1b-d4bab1c02e63",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2340,
        1420
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "7ab09163-cea5-45a1-8a49-235b734773e5",
      "name": "Get Brand brief",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2080,
        1220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_BRAND_BRIEF_WORKFLOW_ID"
        },
        "description": "Get the brand brief of YOUR_COMPANY: tone of voice, offer and positioning",
        "workflowInputs": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "8e571e5e-aa9f-48ac-86d7-365f05d25f7f",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        780,
        900
      ],
      "parameters": {
        "filters": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a63ac63b-2002-4c56-9674-2ec20e406932",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1360,
        1120
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-nano",
          "cachedResultName": "gpt-4.1-nano"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "cdc804b7-6b4f-4669-b3c0-3da3df1681d9",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        900
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "a5b4f97e-73ac-472c-93b2-717ba0de1807",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.text }}",
              "rightValue": "YES"
            },
            {
              "id": "f0951e5d-4505-4501-b0a6-9125e44e8275",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.text }}",
              "rightValue": "Yes"
            },
            {
              "id": "ce9046eb-8541-47f7-8409-55566b0881f3",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.text }}",
              "rightValue": "yes"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1ea5665e-15ea-4dda-b1d7-88669139c0d4",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1940,
        1220
      ],
      "parameters": {
        "sessionKey": "gfeasbefdsrf",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "b50d2551-8b91-41aa-9e88-03f292e41858",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2660,
        1200
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "c833622a-c488-41a0-80b6-fced19b5c497",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3080,
        900
      ],
      "parameters": {
        "message": "={{ $json.output }}",
        "options": {},
        "messageId": "={{ $('Gmail Trigger').item.json.id }}",
        "operation": "reply"
      },
      "typeVersion": 2.1
    },
    {
      "id": "f35198e9-2479-4e58-8d0e-21c96f8e9411",
      "name": "Search Information",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1960,
        900
      ],
      "parameters": {
        "text": "=Customer Question:  {{ $('Set Data').item.json.snippet }}",
        "options": {
          "systemMessage": "=You are the first step in a two-part AI workflow. Your role is to analyze the client's email and retrieve all the relevant information required to generate a complete and contextually accurate reply. You do not respond to the client. You do not compose or structure the email. You only extract and return relevant knowledge from the tools provided.\n\nAvailable Tools:\n\nVector Store\nA structured and comprehensive database containing internal documentation, service descriptions, product details, feature explanations, implementation guidelines, use cases, and prior customer communication.\n\nBrand Brief\nA high-level summary of the company’s brand, value proposition, tone of communication, and core services — used only when general positioning is required.\n\nTASK DEFINITION\nAnalyze the customer’s question or message.\nDetermine the scope and specific informational needs required to formulate a response.\nSearch the Vector Store and the Brand Brief to extract all data that may be useful in constructing a complete answer.\nPresent the findings in a clear, structured, and logically grouped format — but do not generate any reply, conclusion, or message.\nAll retrieved content must be factual, directly based on internal documentation or the brand brief. Never make assumptions.\n\nFORMAT & OUTPUT RULES\nDo not use HTML, markdown, or formatting tags.\nDo not write in the tone of a message.\nDo not structure your output like an email.\nYour output should be divided into sections based on the topics or data categories retrieved (e.g. \"Implementation Time\", \"Supported Integrations\", \"Product Features\", \"Limitations\", \"Pricing Overview\").\nUse short but informative paragraphs under each section.\nReturn only what is found. Do not invent content.\nAlways refer to the company as “the system”, “the platform”, “the solution” or “the company” — never “we” or “I”.\n\nTONE AND LIMITATIONS\nNeutral, impersonal, and professional.\nDo not speak from a first-person or assistant perspective.\nDo not generate instructions, opinions, commentary, or conversational phrases.\nDo not explain your role or how you work.\n\nEXAMPLE OUTPUT\nClient message:\n\"I'm wondering how long it takes to set up your service and whether it can connect to the help desk tool I already use.\"\n\nExpected Output:\n\nSetup Timeline:\n[The typical setup time, exactly as stated in the documents, and what it depends on.]\n\nIntegrations:\n[Whether the tool the client names is supported, and how, exactly as stated in the documents. If the documents do not mention it, say that no information was found.]\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "8cc3a83a-0772-4d2d-b26a-1030b6d0a55b",
      "name": "Response writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2620,
        900
      ],
      "parameters": {
        "text": "=Based on the information provided below, write a complete, professional, and helpful email reply to the user's message.\n\nWrite from the company's point of view (\"we\", \"our\") in a clear and respectful tone. Format the reply using valid HTML only. Do not use inline styles or markdown.\n\nUser email:\nSubject: {{ $('Set Data').item.json.Subject }}\nMessage: {{ $('Set Data').item.json.snippet }}\n\nAll necessary information:\n{{ $json.output }}\n",
        "options": {
          "systemMessage": "=You are a professional AI response writer integrated into a client communication workflow. Your job is to write ready-to-send email replies in clean, valid HTML based strictly on the client message and provided company information.\n\nYou will always receive:\n-The email subject line\n-The full client message\n-A complete set of internal data, including:\n-Extracted content from the company’s knowledge base\n-Service and product descriptions\n-Any other relevant reference material\n\nTASK OVERVIEW\nCarefully read the email subject and client message.\nIdentify what the client is asking, requesting, or confused about.\nReview the provided internal data and locate the most accurate and complete response based on the available information.\nCompose a full and professional response email in HTML only, ready for direct use.\nYou are not allowed to retrieve external data or speculate. You only use the information that has been provided to you as context.\n\nSTYLE AND TONE\nWrite from the company’s point of view using “we”, “our”, and “the team”.\nBe professional, respectful, and helpful.\nAvoid excessive formality, but keep it polished and clear.\nDo not use generic filler phrases or overpromise.\nWrite in Max of 160 words.\n\nFORMATTING INSTRUCTIONS\nOutput must be written exclusively in valid HTML, using standard tags like:\n<p>, <br>, <strong>, <ul>, <li>, <a>, <em>, <hr>\n\nDo not include the following:\n<html>, <head>, <body>, inline CSS styles, class attributes, IDs, scripts, or custom tags.\nDo not use comments (no <!-- -->) or placeholders.\nDo not generate any plain text.\nDo not make up or infer data that is not clearly present in the provided company material.\n\nREQUIRED CLOSING\nAt the end of every email, always include the following line:\n<p>—<br>This was generated by AI</p>\n\nEXAMPLE OUTPUT\n\n<p>Thank you for reaching out to us.</p>\n\n<p>[Answer to the question, using only the facts provided to you.]</p>\n\n<p>If you have any further questions, feel free to reply and we will be happy to help.</p>\n\n<p>—<br>This was generated by AI</p>"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "7cb7bae5-0630-4406-893b-c66d6888680b",
      "name": "Set Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        900
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ae13a962-8f96-47d7-8111-b048393f3326",
              "name": "Subject",
              "type": "string",
              "value": "={{ $json.Subject }}"
            },
            {
              "id": "9f547494-66e8-4b68-bd1f-5f4e63c8170b",
              "name": "snippet",
              "type": "string",
              "value": "={{ $json.snippet }}"
            },
            {
              "id": "c5a3eebd-c4d3-4124-af04-696dbd5b7c5e",
              "name": "From",
              "type": "string",
              "value": "={{ $json.From }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "9cc8f67f-dac0-41b7-9277-8f6ee6d4c0d7",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1040,
        -720
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DRIVE_FOLDER_ID"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "92c8079b-f3c7-4949-b5e9-b01c4cf9395f",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1280,
        -720
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "typeVersion": 3
    },
    {
      "id": "6b851c32-609a-4970-8065-5ad6193f1637",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1580,
        -720
      ],
      "parameters": {
        "mode": "insert",
        "options": {
          "pineconeNamespace": "YOUR_PINECONE_NAMESPACE"
        },
        "pineconeIndex": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_PINECONE_INDEX_NAME"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "5492ffd8-21df-4dd9-9f3c-b55b8ecfb258",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1800,
        -500
      ],
      "parameters": {
        "options": {
          "metadata": {
            "metadataValues": [
              {
                "name": "file",
                "value": "={{ $json.name }}"
              }
            ]
          }
        },
        "dataType": "binary"
      },
      "typeVersion": 1
    },
    {
      "id": "d27b5bd6-0136-4a5d-a524-91b3c50a9524",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1800,
        -300
      ],
      "parameters": {
        "options": {},
        "chunkSize": 500,
        "chunkOverlap": 20
      },
      "typeVersion": 1
    },
    {
      "id": "2453df3e-9fc6-4b23-9076-339d9fcb4281",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1440,
        -500
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "d5603de9-510d-42d4-9cca-b81326933550",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1120,
        180
      ],
      "parameters": {
        "inputSource": "passthrough"
      },
      "typeVersion": 1.1
    },
    {
      "id": "2315b4c2-e4df-4934-9b16-40e362397da1",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        1360,
        180
      ],
      "parameters": {
        "blockId": {
          "__rl": true,
          "mode": "url",
          "value": "YOUR_NOTION_BRAND_BRIEF_URL"
        },
        "resource": "block",
        "operation": "getAll"
      },
      "typeVersion": 2.2
    },
    {
      "id": "9709f9dc-f2d0-4453-9795-ed321577a301",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1580,
        180
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "content"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1e62669f-dd75-443c-a967-f362c824f9cf",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        180
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "9f8952ed-d6d1-48ce-8ff8-150184d8221c",
              "name": "content",
              "type": "string",
              "value": "={{ $json.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "a00066ed-aa5c-4d06-ac84-defe30c44358",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -900
      ],
      "parameters": {
        "color": 5,
        "width": 1540,
        "height": 780,
        "content": "# Step 1\n# Knowledge base for the AI replies"
      },
      "typeVersion": 1
    },
    {
      "id": "0d1f7c5d-0826-46f5-8c79-15516e97e1cc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -900
      ],
      "parameters": {
        "color": 4,
        "width": 640,
        "height": 780,
        "content": "## Step 1: knowledge base\n\nWhen a file is created in one Google Drive folder, it is downloaded, cut into chunks of 500 characters, turned into vectors with OpenAI embeddings and stored in a Pinecone index and namespace. The reply agent searches this store. Replace YOUR_DRIVE_FOLDER_ID, YOUR_PINECONE_INDEX_NAME and YOUR_PINECONE_NAMESPACE. The namespace must be the same in the storing node and the searching node. Only files created after you switch the flow on are stored; updated files are not handled."
      },
      "typeVersion": 1
    },
    {
      "id": "18e784de-5ae5-45d5-8c92-067406327abd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -60
      ],
      "parameters": {
        "color": 5,
        "width": 1540,
        "height": 560,
        "content": "# Step 2\n## Brand brief sub-workflow"
      },
      "typeVersion": 1
    },
    {
      "id": "d0afaa13-fdec-4006-8a5e-f31b2ebe308b",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "disabled": true,
      "position": [
        1360,
        0
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "YOUR_GOOGLE_DOC_ID_OR_URL"
      },
      "typeVersion": 2
    },
    {
      "id": "7f79c5f2-6430-4b4d-b578-7d95006d10bd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -80
      ],
      "parameters": {
        "color": 4,
        "width": 800,
        "height": 780,
        "content": "## Step 2: brand brief\n\nThese nodes are meant to run as a separate workflow that the agent calls as a tool. They read a Notion page or block (the Google Docs node is switched off and not connected), combine the text and return it. Move them into their own workflow, save it, and put its identifier in Get Brand brief (YOUR_BRAND_BRIEF_WORKFLOW_ID). Replace YOUR_NOTION_BRAND_BRIEF_URL."
      },
      "typeVersion": 1
    },
    {
      "id": "9a3c6070-aad1-4d7f-a274-d75929b54796",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        740
      ],
      "parameters": {
        "color": 5,
        "width": 2640,
        "height": 900,
        "content": "# Step 3\n## Main flow: AI email responder"
      },
      "typeVersion": 1
    },
    {
      "id": "a77c19e2-02ab-445f-b748-ee471d20add5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3420,
        720
      ],
      "parameters": {
        "color": 4,
        "width": 1040,
        "height": 1340,
        "content": "## Step 3: main flow\n\nGmail Trigger checks every minute with no filter. Set Data keeps the subject, the preview and the sender. Check if Question asks an AI whether the email is about the company's service. If it answers Yes, Search Information collects facts from the knowledge base and the brand brief, Response writer writes an HTML reply from them, and Gmail sends it with the line This was generated by AI. The AI only sees the preview of each email. Nothing is logged, and there is no review."
      },
      "typeVersion": 1
    },
    {
      "id": "00cae7df-b14b-4b9f-9252-7eaf285906a4",
      "name": "Check if Question",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1260,
        900
      ],
      "parameters": {
        "text": "=Check if this email is about service or question about company if yes respond Yes or is not respond NO, you can only respond Yes and NO :\n\nSubject:\"{{ $json.Subject }}\"\nText:\"{{ $json.snippet }}\"",
        "batching": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "aefac4d4-9c6a-4b1c-9526-83a8909b51f7",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3360,
        -780
      ],
      "parameters": {
        "color": 3,
        "width": 1220,
        "height": 1100,
        "content": "## Placeholders to replace\n\nYOUR_DRIVE_FOLDER_ID, YOUR_PINECONE_INDEX_NAME, YOUR_PINECONE_NAMESPACE, YOUR_NOTION_BRAND_BRIEF_URL, YOUR_BRAND_BRIEF_WORKFLOW_ID, YOUR_COMPANY and, if you use the Google Docs node, YOUR_GOOGLE_DOC_ID_OR_URL. Test after each one."
      },
      "typeVersion": 1
    },
    {
      "id": "b81d2e56-4c73-4f09-a6d1-8e5c3a7f9b20",
      "name": "Before you turn it on",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        360
      ],
      "parameters": {
        "color": 3,
        "width": 1100,
        "height": 340,
        "content": "## Before you turn it on\n\n1. This replies to real people with AI text and nobody reads it first. Use a test mailbox.\n2. The Gmail trigger has no filter. Newsletters and automatic mail are only stopped if the AI says No. Your own reply is a new message in the same mailbox; check that it does not start the workflow again.\n3. The AI sees only the preview of each email, not the full text.\n4. The memory uses one fixed key for every email, so all customers share one memory.\n5. If the knowledge base has no answer, the writer still writes a reply.\n6. Email content goes to OpenAI and Google. Your documents go to OpenAI and Pinecone.\n7. Not tested on live APIs."
      },
      "typeVersion": 1
    }
  ],
  "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
          }
        ]
      ]
    }
  },
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  }
}