Create a code assistant that learns from your GitHub repository using OpenAI
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (13)
- Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - AI Agent
@n8n/n8n-nodes-langchain.agent - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Edit Fields (Set)
n8n-nodes-base.set - GitHub
n8n-nodes-base.github - HTTP Request
n8n-nodes-base.httpRequest - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Manual Trigger
n8n-nodes-base.manualTrigger
What it does
AI Agent for GitHub AI Agent to learn directly from your GitHub repository. It automatically syncs source files, converts them into vectorized knowledge How It Works Provide your GitHub repository — the workflow will automatically pull your source files and update the knowledge base (vectorstore) for the AI Agent. This allows the AI Agent to answer questions directly based on your repository’s content. --- How to Use 1. Commit your files to your GitHub repository. 2. Trigger the Sync Data workflow. 3. Ask questions to the AI Agent — it will respond using your repository knowledge. --- Requirements - A valid GitHub account - An existing repository with accessible content --- Customization Options - Customize the prompt for specific or detailed tasks - Replace or connect to your own vector database provider