{
  "name": "My workflow 2",
  "nodes": [
    {
      "parameters": {
        "public": true,
        "initialMessages": "Hi, what can I help with?",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.4,
      "position": [
        0,
        0
      ],
      "id": "71a80194-0249-4214-9977-641b6945c11f",
      "name": "When chat message received",
      "webhookId": "REDACTED"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "=#ROLE\nYou are an AI assistant trained to answer questions specifically based on the iOS 26 documents stored in the connected vector database. \n\n#OBJECTIVE\nYour job is to help users clearly understand the new features, settings, and changes introduced on iOS 26 by retrieving and referencing only the information available in the documents stored in the vector store. \n\nIf a user asks something that's not included in the uploaded document or if the answer isn't clear from the available data, let them know that the information isn't currently available.\n\n#RULES\n- When responding, be clear and direct\n- Avoid over-explaining. (Use 2-3 sentences.)\n- Use bullet points or short paragraphs when listing multiple features. \n- Never guess or assume; stick strictly to what's inside the vector database content.\n- Don't use em-dashes in any of the responses\n\nYour main objective is to deliver helpful, accurate, and easy-to-understand answers using only the documents available in the Vector store. No speculation, no extra assumptions, and no external sources. "
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        288,
        0
      ],
      "id": "3010ae2e-bd0e-4cb1-9b19-88c91ba1c108",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        232,
        232
      ],
      "id": "cdcd7e34-3d2c-44ca-8570-86834d065026",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "REDACTED",
          "name": "REDACTED"
        }
      }
    },
    {
      "parameters": {
        "contextWindowLength": 10
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.4,
      "position": [
        360,
        232
      ],
      "id": "3bfd9b37-1625-4389-84eb-67c1fda2ce9c",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "description": "Useful for when you need to answer questions about iOS 26. It finds and returns the most relevant information from the documents in the vector database, like feature updates, settings, or changes in the new iOS version. Whenever you need information about iOS 26, you should ALWAYS use this. "
      },
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "typeVersion": 1.1,
      "position": [
        488,
        232
      ],
      "id": "8cb4e5b8-1bd5-47b2-8a44-7ac40789b2c5",
      "name": "Answer questions with a vector store"
    },
    {
      "parameters": {
        "pineconeIndex": {
          "__rl": true,
          "value": "rag-agent",
          "mode": "list",
          "cachedResultName": "rag-agent"
        },
        "options": {
          "pineconeNamespace": "rag-vector"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "typeVersion": 1.3,
      "position": [
        376,
        440
      ],
      "id": "95d02c7a-0db1-49fc-a38b-0f6b61cc483b",
      "name": "Pinecone Vector Store",
      "credentials": {
        "pineconeApi": {
          "id": "REDACTED",
          "name": "REDACTED"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "typeVersion": 1.2,
      "position": [
        456,
        648
      ],
      "id": "0e77e89d-5652-4fcf-b453-5e8121006265",
      "name": "Embeddings OpenAI",
      "credentials": {
        "openAiApi": {
          "id": "REDACTED",
          "name": "REDACTED"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        664,
        440
      ],
      "id": "ded66d57-8fee-4233-960b-466832501336",
      "name": "OpenAI Chat Model1",
      "credentials": {
        "openAiApi": {
          "id": "REDACTED",
          "name": "REDACTED"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Answer questions with a vector store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_vectorStore": [
        [
          {
            "node": "Answer questions with a vector store",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "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
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "staticData": null,
  "pinData": {},
  "triggerCount": 1,
  "meta": {
    "templateCredsSetupCompleted": true
  }
}
