AutomationMart
Home/Browse/Chat with GitHub API documentation: RAG-powered chatbot with Pinecone & OpenAI
n8n

Chat with GitHub API documentation: RAG-powered chatbot with Pinecone & OpenAI

n8nn8n14 modulesv1.0
OpenAIGitHub

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

At a glance

Chat with GitHub API documentation: RAG-powered chatbot with Pinecone & OpenAI is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, GitHub. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, GitHub
Modules
14
Price
Free
Version
v1.0
Chat with GitHub API documentation: RAG-powered chatbot with Pinecone & OpenAI workflow diagram

About this workflow

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. Semantic Search and Retrieval: Pinecone is queried to find the most relevant text chunks from the API spec based on the query embedding. Response Generation: The retrieved chunks and your original question are fed to OpenAI's gpt-4o-mini LLM, which generates a concise, informative, and contextually relevant answer, including code snippets when applicable. Set up steps: Create accounts: You'll need accounts with OpenAI and Pinecone. API keys: Obtain API keys for both services. Configure credentials: In your n8n environment, configure credentials for OpenAI and Pinecone using your API keys. Import the workflow: Import this workflow into your n8n instance. Pinecone Index: Ensure you have a Pinecone index named "n8n-demo" or adjust the workflow accordingly. The workflow is set up to work with this index out of the box. Setup Time: Approximately 15-20 minutes. Why use this workflow? Learn RAG in Action: This is a practical, hands-on example of how to build a RAG-powered chatbot. Adaptable Template: Easily modify this workflow to create chatbots for other APIs or knowledge bases. n8n Made Easy: See how n8n simplifies complex integrations between data sources, vector databases, and LLMs.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automatically create YouTube metadata with AI

This n8n workflow automates YouTube video metadata generation using AI. It extracts video transcripts, analyzes content, and produces optimized titles, descriptions, tags, hashtags, and call-to-action elements. Additionally, the workflow integrates affiliate and promotional links to enhance overall video performance. Key Features Automated Metadata Generation Utilizes an AI agent integrated with OpenAI GPT-4 to generate engaging metadata based on the provided video transcript. SEO and Engagement

Free

Generate document drafts from PDFs using Google Drive, GPT-4 & notifications

Automate Drafts From Google Drive This workflow automates the end-to-end process of extracting and summarizing information from PDFs stored in a specific Google Drive folder. When a new PDF or any binary data is added, the workflow is triggered and begins by downloading and processing the PDF to extract all available text. If multiple PDFs are detected, their content is aggregated into a single, combined dataset. This automation eliminates the time consuming task of manually reading, taking not

Free

Ai-powered restaurant newsletter creator with Mailchimp and Telegram approval

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Who is this for? This workflow is for restaurant owners, marketing managers, and any business owner who wants to automate the creation of high-quality, research-driven email newsletters. It's designed to save hours of manual work by leveraging AI to handle content generation, from initial idea to final send. If you want to consistently engage your customers with fresh, relevant content but lack t

Free

Summarize emails with ChatGPT and store on a Google Sheet

This template logs new emails in Google Sheets with generated AI summarizes using ChatGPT for streamlined email management and record-keeping.

Free

Generate email responses using ChatGPT (2 prompts) for new Gmail messages

This template generates and sends personalized email responses for new Gmail messages using 2 ChatGPT prompts, enhancing communication efficiency and response time.

Free

Autonomous customizable support chatbot on Intercom + Discord thread reports

Click here to access this Workflow for free. --- Connect your own LLM-boosted chatbot to Intercom (f their overly priced FlN Agent), and stay in touch on Discord This workflow connects your Intercom chat system with your own AI Agent and sends a complete log of each conversation to Discord using threads. It allows you to run a fully automated support system while maintaining full visibility of the bot's behavior in real time. For every new conversation in Intercom, a thread is created in a speci

Free

Discover & analyze n8n workflows from GitHub with OpenAI and Google Sheets

Overview Discover and analyze the most valuable community-built n8n workflows on GitHub. This automation searches public repositories, analyzes JSON workflows using AI, and saves a ranked report to Google Sheets — including summaries, use cases, difficulty, stars, node count, and repository links. --- ⚙️ How It Works 1. Search GitHub Code API — queries for extension:json n8n and splits results 2. Fetch & Parse — downloads each candidate file’s raw JSON and safely parses i

Free

Summarize youtube videos from transcript for social media

YouTube Video Summarizer for Social Media Turn any YouTube video into a short, structured summary using AI — perfect for content creators, marketers, or social media managers. --- 🔧 What We Built We created a no-code automation in n8n that: - Accepts a YouTube Video ID via a form - Fetches the video transcript using an external API - Summarizes the transcript using AI (Google Gemini) - Automatically saves the summary to Google Docs for team use --- 🧩 Flow Overview | Step |

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free