Create a Code Assistant that Learns from your GitHub Repository using OpenAI

Go to Workflow
1 views
Built by Nghia Nguyen Nghia Nguyen
Created on June 05, 2026

Description

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

Commit your files to your GitHub repository.
Trigger the Sync Data workflow.
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

Nodes Used (10)

AI Agent
@n8n/n8n-nodes-langchain.agent
Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
GitHub
n8n-nodes-base.github
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory
Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore