Implement an advanced Retrieval-Augmented Generation (RAG) system using n8n and Redis. This n8n workflow creates an AI agent to chat with GitHub issues data, providing accurate answers based on semantic search.
Download this n8n workflow template and start using it instantly.
Searching through large numbers of GitHub issues using simple keywords can be inefficient and miss critical context. This sophisticated n8n workflow solves that challenge by implementing a cutting-edge Retrieval-Augmented Generation (RAG) system. It leverages the power of OpenAI embeddings and Redis as a high-performance vector store to enable semantic search on your repository data. The solution is executed via two distinct n8n flows: one for secure data ingestion and one for the live, public chat interface. This powerful n8n template ensures that the AI agent provides answers grounded in actual, current GitHub issue data, making information retrieval precise and contextually relevant. Every core component relies on a dedicated LangChain n8n node, streamlining the integration process.
This highly effective n8n workflow operates in two distinct phases: data preparation and live querying.
githubissuesv1.When chat message received n8n trigger activates the second flow, providing a public webhook chat interface for user interaction. When clicking ‘Execute workflow’ (n8n trigger):
Function: Manually initiates the GitHub issue data ingestion process.
Fetch issues from GitHub (HTTP Request n8n node):
Function: Retrieves issue data from the GitHub REST API using the configured URL, handling full response pagination.
Embeddings OpenAI (n8n node):
Function: Generates vector embeddings for the text content of each GitHub issue using the OpenAI API, essential for semantic search.
Default Data Loader (n8n node):
Function: Structures the raw GitHub JSON data into documents, extracting title and details while adding url and state as metadata.
Vectorize and store in Redis (n8n node):
Function: The vector store sink, which stores the embedded documents into the Redis index named githubissuesv1. This is a critical component of the RAG n8n template.
When chat message received (n8n trigger):
Function: Acts as the public chat interface webhook, initiating the AI agent flow when a user sends a message.
OpenAI Chat Model (n8n node):
Function: Provides the LLM capabilities for the Agent, configured to use gpt-4.1-mini for fast, efficient reasoning.
Redis Chat Memory (n8n node):
Function: Maintains conversation history across multiple turns by storing and retrieving context in Redis.
Augment with results from Redis (n8n node):
Function: Configured as a tool (retrieve-as-tool) for the AI Agent. It executes semantic similarity searches against the Redis vector index to find relevant issue context.
AI Agent using RAG (LangChain Agent n8n node):
Function: Orchestrates the entire interaction. It processes the user query, consults the chat history, decides whether to use the Redis vector search tool, and generates the final, context-aware response. This complex n8n node is the core of the RAG logic.
Build a powerful RAG chatbot using this specialized n8n workflow template. Leverage Pinecone and OpenAI to index and query the GitHub OpenAPI specification for instant answers.

Use this powerful n8n workflow to create an AI Agent that leverages the Google Gemini Chat Model and executes commands locally via SSH using a custom n8n node tool.

Deploy a powerful, real-time GPT-5 conversational AI chatbot directly on Telegram using this flexible n8n workflow. Includes message logging and user experience enhancements.

Use this powerful n8n workflow to create a Retrieval-Augmented Generation (RAG) agent that answers questions based on documents stored in Google Drive, utilizing OpenAI and Pinecone.

Leverage this powerful n8n workflow to create a Retrieval-Augmented Generation (RAG) agent. Index Google Drive files into Supabase (Vector DB) using Ollama embeddings for contextual AI chat.








































