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 this workflow does

This AI workflow has 16 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Vector Store Question Answer, GitHub, Embeddings OpenAI and OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 4 fields: repo_owner, repo_name, repo_path…
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Vector Store Tool); memory: Window Buffer Memory
  3. List files (GitHub): list (file)
  4. Get File (HTTP Request): calls an HTTP API
  5. Simple Vector Store: stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader

Services it uses

Vector Store Question AnswerGitHubEmbeddings OpenAIOpenAI Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
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)

From the author

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…

Excerpt from Nghia Nguyen's description on n8n.io.

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.