Templates / Create a code assistant that learns from your GitHub repository using OpenAI

Create a code assistant that learns from your GitHub repository using OpenAI

Needs changes

by Nghia Nguyen ✓ · 1,160 views · created 2025-10-21 · Internal Wiki, AI RAG

Needs 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.0Replace 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 LoaderRecursive Character Text SplitterAI AgentVector Store Question AnswerSimple MemoryGitHubEmbeddings OpenAIOpenAI Chat ModelSimple Vector Store

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

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.