{
  "name": "Create a code assistant that learns from your GitHub repository using OpenAI",
  "nodes": [
    {
      "id": "21ce2f08-255b-49e7-8a28-c7755593e574",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1152,
        208
      ]
    },
    {
      "id": "af656ce7-169b-4c91-a770-8c488f68911a",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1232,
        416
      ]
    },
    {
      "id": "6493e13d-3e1e-42c0-abef-290a2a236868",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        400,
        736
      ]
    },
    {
      "id": "2f05cc89-7dcf-40bc-a5c2-fd2c5c7cc57c",
      "name": "Vector Store Tool",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        608,
        960
      ]
    },
    {
      "id": "0edbd03e-e2fa-41b2-9fdb-c935dd44148d",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        960
      ]
    },
    {
      "id": "38b9511b-c5bf-47be-abe1-3d6b156e2b50",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        128,
        736
      ]
    },
    {
      "id": "eda1081e-97b8-441e-b726-ea6a0dec9141",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        112
      ],
      "parameters": {
        "width": 340,
        "height": 560,
        "content": "## Setup Guilde\n\n### 1. Update the `Config` Node\nAdd or edit the following parameters:\n- `repo_owner`\n- `repo_name`\n- `repo_path`\n- `sub_path`\n\n### 2. Add GitHub Account\nConnect your GitHub account to"
      }
    },
    {
      "id": "073d715d-1432-40b8-ba62-63b586ff3900",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        -16
      ]
    },
    {
      "id": "24767c37-190a-4039-84c3-23207299eecc",
      "name": "List files",
      "type": "n8n-nodes-base.github",
      "position": [
        576,
        -16
      ]
    },
    {
      "id": "97c7184a-685b-4940-b3af-6de8bbf9c7dd",
      "name": "Get File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        -16
      ]
    },
    {
      "id": "c98cb6aa-e460-4c97-ba1d-d9fd9da561d3",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1024,
        208
      ]
    },
    {
      "id": "e6eba4d9-4770-46e7-af58-233763b12bcc",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        576,
        1376
      ]
    },
    {
      "id": "06cc6964-01bc-496f-895f-c3277c3cb10e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        784,
        1168
      ]
    },
    {
      "id": "e4d2d5e8-318d-4a63-9777-76225842fd88",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        352,
        960
      ]
    },
    {
      "id": "b5c0e689-aaa1-4d69-993e-7bb6b04937db",
      "name": "Simple Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        496,
        1168
      ]
    },
    {
      "id": "a41eac9f-9556-48dd-abf3-511a2b430c67",
      "name": "Simple Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        1056,
        -16
      ]
    },
    {
      "id": "fb9ecc78-60b5-4eb0-912b-654bf3dbc5ca",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -128
      ],
      "parameters": {
        "width": 384,
        "height": 80,
        "content": "Pull your source files and update the knowledge base (vectorstore) for the AI Agent"
      }
    },
    {
      "id": "ccea3fc1-94e3-4582-bfb5-ef4cc2546a61",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        640
      ],
      "parameters": {
        "width": 560,
        "height": 80,
        "content": "Ask questions to the AI Agent — it will respond using your repository knowledge."
      }
    },
    {
      "id": "c14b04e5-7f2c-42c3-ac89-f5a256ee2ead",
      "name": "Sync Data",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        128,
        -16
      ]
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "List files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File": {
      "main": [
        [
          {
            "node": "Simple Vector Store1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sync Data": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List files": {
      "main": [
        [
          {
            "node": "Get File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Simple Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Vector Store Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Simple Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Simple Vector Store1",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Simple Vector Store": {
      "ai_vectorStore": [
        [
          {
            "node": "Vector Store Tool",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}