Create a code assistant that learns from your GitHub repository using OpenAI
Needs changesWhat 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).
- Config (Edit Fields (Set)): sets 4 fields: repo_owner, repo_name, repo_path…
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Vector Store Tool); memory: Window Buffer Memory
- List files (GitHub): list (file)
- Get File (HTTP Request): calls an HTTP API
- Simple Vector Store: stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
Services it uses
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.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
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…