Skip to content
FlowHubFluxonLab
A
AI Automationfree

Chat with GitHub API Documentation: RAG-Powered Chatbot with Pinecone & OpenAI

by Mihai Farcasadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIHTTP RequestHTTP RequestOpenAI Chat ModelOpenAI Chat ModelPinecone Vector StorePinecone Vector StoreRecursive Character Text SplitterRecursive Character Text SplitterSSimple MemoryVector Store Question Answer ToolVector Store Question Answer Tool
Share Post Share
MaWhen clicking ‘Test workflow’When clicking ‘…HRHTTP RequestVSPinecone Vector StorePinecone Vector…DDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…ChWhen chat message receivedWhen chat messa…AgAI AgentOpenAI Chat ModelOpenAI Chat Mod…MBWindow Buffer MemoryWindow Buffer M…TVVector Store ToolVector Store To…OpenAI Chat Model1OpenAI Chat Mod…Generate User Query EmbeddingGenerate User Q…VSPinecone Vector Store (Querying)Pinecone Vector…Generate EmbeddingsGenerate Embedd…12345
1/5
FLOWS
STEPS · 5
Run manually by an operator

This workflow demonstrates a Retrieval Augmented Generation (RAG) chatbot that lets you chat with the GitHub API Specification (documentation) using natural language. Built with n8n, OpenAI's LLMs and the Pinecone vector database, it provides accurate and context-aware responses to your questions about how to use the GitHub API. You could adapt this to any OpenAPI specification for any public or private API, thus creating a documentation chatbout that anyone in your company can use. How it works: Data Ingestion: The workflow fetches the complete GitHub API OpenAPI 3 specification directly from the GitHub repository. Chunking and Embeddings: It splits the large API spec into smaller, manageable chunks. OpenAI's embedding models then generate vector embeddings for each chunk, capturing their semantic meaning. Vector Database Storage: These embeddings, along with the corresponding text chunks, are stored in a Pinecone vector database. Chat Interface and Query Processing: The workflow provides a simple chat interface. When you ask a question, it generates an embedding for your query using the same OpenAI model.

Tags

n8nreference-onlyagentdocument-default-data-loaderembeddings-open-ailm-chat-open-aimemory-buffer-windowtext-splitter-recursive-character-text-splittertool-vector-storevector-store-pinecone
Connects
AAI AgentDDefault Data LoaderembeddingsopenaiEmbeddings OpenAIWHTTP RequestopenaichatmodelOpenAI Chat ModelpineconevectorstorePinecone Vector Store
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes14
AddedJan 7, 2025

Related workflows

See all AI Automation
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACembeddingsopenai
free

Route WhatsApp support requests with Claude, Supabase, HubSpot and Slack

Quick overview This workflow turns incoming WhatsApp messages (text, audio, images, and documents) into actionable support interactions by extracting content, detecting sentiment, and using an AI agent with a Supabase knowledge base to route requests to Google Calendar, HubSpot, Slack, Gmail, and back to WhatsApp. How it works Receives incoming WhatsApp messages via a WhatsApp webhook trigger. Routes the message by type and converts it into text using OpenAI Whisper for audio, OpenAI GPT-4o Vision for images, or a PDF extractor for documents (or passes text messages through). Loads the sender’s session context from Supabase and runs sentiment/language detection on the extracted text. Uses a LangChain AI agent (Claude) with Supabase vector search (with OpenAI embeddings and Cohere reranking) plus tool access (Google Calendar, HubSpot, Slack, and Gmail) to produce a structured intent, response, and metadata. Logs conversation analytics (intent, sentiment, message type, and response length) to an n8n Data Table. Routes by intent to either create a Google Calendar event, create/update a HubSpot contact, email a document via Gmail (and upload it to Google Drive), create a HubSpot ticket

by Multifly
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team