AI Agents

Chat with GitHub specs using RAG (Pinecone and OpenAI)

17 nodes 215 128 Automatic trigger
Download

Workflow Description

This automation enables direct conversation with GitHub specifications using Retrieval-Augmented Generation (RAG), storing documents in Pinecone and retrieving answers via OpenAI with conversation memory maintained throughout the session.

How it works

  1. 1.Load GitHub specifications and split them into smaller text chunks
  2. 2.Store chunks as vectors in Pinecone vector database for semantic search
  3. 3.Receive user queries through a real-time chat interface
  4. 4.Search Pinecone for documents most relevant to the query
  5. 5.Send retrieved context with the question to OpenAI for accurate responses
  6. 6.Maintain conversation history for coherent multi-turn dialogue

Use cases

  • Development teams query API requirements and usage guidelines documented in GitHub specifications
  • Project managers quickly search specific details in documentation without manual browsing
  • Support teams answer customer inquiries by referencing official documentation instantly

Requirements

  • Valid OpenAI API key with sufficient credits
  • Pinecone project configured with an active index for vector storage
  • Access to GitHub repository containing project specifications
  • HTTP endpoint to receive and process user queries

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Vector Store Document Default Data Loader Text Splitter Chat Trigger AI Agent OpenAI Memory

Details

Trigger Automatic trigger
Nodes 17
Apps 7
Views 215
Downloads 128

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (17)

/

When clicking ‘Test workflow’

Manual Trigger

#1

HTTP Request

HTTP Request

#2

Pinecone Vector Store

Vector Store Pinecone

#3

Default Data Loader

Document Default Data Loader

#4

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#5

When chat message received

Chat Trigger

#6

AI Agent

Agent

#7

OpenAI Chat Model

OpenAI

#8

Window Buffer Memory

Memory Buffer Window

#9

Vector Store Tool

Tool Vector Store

#10

OpenAI Chat Model1

OpenAI

#11

Sticky Note

Sticky Note

#12

Sticky Note1

Sticky Note

#13

Generate User Query Embedding

OpenAI

#14

Pinecone Vector Store (Querying)

Vector Store Pinecone

#15

Generate Embeddings

OpenAI

#16

Sticky Note2

Sticky Note

#17