Mindket

Chat with the GitHub API spec stored in Pinecone with OpenAI

Newversion 1 · updated

Overview

An n8n workflow that answers questions about the GitHub REST API. It downloads GitHub’s OpenAPI description, stores it in Pinecone as OpenAI embeddings, and lets an AI Agent search it from a chat window.

Chat with the GitHub API spec stored in Pinecone with OpenAI is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • Your own documents: change the address in HTTP Request to another JSON or text file
  • A second index: point both Pinecone nodes at it to keep topics apart

Platform

Connects 2 apps

How it works

Trigger

Chat window

You fill the index once by hand, then it answers whenever you send a message in the n8n chat:

  • A question about the GitHub REST API, typed in the chat

Actions

  1. Test workflow downloads GitHub’s OpenAPI description of its REST API, about 14 MB
  2. The text is cut into pieces of about 1,000 characters, and OpenAI (text-embedding-3-small) turns each piece into an embedding
  3. The pieces are saved in your Pinecone index
  4. A chat message goes to an AI Agent (gpt-5.6-terra) with a short window memory
  5. The agent searches Pinecone for the 4 closest pieces, and gpt-6-luna reads them to write the answer

Result

An answer about the GitHub REST API in the n8n chat, based on the pieces of its specification that match the question

Integrations

What you need before you start.

OpenAI

Language model and embeddings

Makes the embeddings, runs the agent on gpt-5.6-terra and reads the retrieved pieces on gpt-6-luna.

NeedsAn OpenAI API key

Pinecone

Vector database

Stores the embedded pieces and returns the closest ones to a question.

NeedsA Pinecone API key and an index with 1536 dimensions

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
5 steps, starting by hand or on a chat message
AI
2 steps call an AI model: Pinecone Vector Store and AI Agent
Sign-ins
Signs in to: Pinecone and OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 5 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow is a chatbot that answers questions about the GitHub REST API from its official specification. One part downloads the specification, cuts it into pieces and saves each piece in a Pinecone index as an OpenAI embedding. The other part is a chat window, where an AI Agent finds the best matching pieces and answers from them. Fourteen nodes do the work, beside three sticky notes.

Who it suits

Developers and technical writers who want a working example of retrieval augmented generation in n8n, and anyone who wants to ask about GitHub’s API without reading its reference. Skip it if you need answers from your own documents as they stand. You would change what it downloads first.

Who uses it, and how
IndustryWho uses itHow they use itExample
SoftwareDevelopersAsk how an endpoint works without searching the referenceA developer asks how to list the issues of a repository and gets the path and its parameters.
DocumentationTechnical writersStudy the pattern before building a bot for their own docsA writer swaps the download for the company’s API file and keeps the rest.
EducationCourse leadsShow students retrieval augmented generation with a real fileA lead runs the indexing in class, then asks the chat three questions.
SupportIntegration engineersAnswer customers’ API questions fasterAn engineer asks which call creates a gist and reads the matching passage.

You need a little n8n: import a file, add an OpenAI and a Pinecone credential, create an index and run the indexing once.

Where to use it

Any n8n that can reach OpenAI, Pinecone and GitHub’s file host will run it. The chat opens inside n8n, so the answers stay in your editor.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • Your own documents: change the address in HTTP Request to another JSON or text file
  • A second index: point both Pinecone nodes at it to keep topics apart

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts are involved.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OpenAIAn API key, for an OpenAI credential
PineconeAn account, an API key and an index with 1536 dimensions, for a Pinecone credential
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. In Pinecone, create an index with 1536 dimensions, the size of OpenAI’s text-embedding-3-small embeddings.
  3. Add an OpenAI credential and select it in Generate Embeddings, Generate User Query Embedding, OpenAI Chat Model and OpenAI Chat Model1.
  4. Add a Pinecone credential, select it in Pinecone Vector Store and Pinecone Vector Store (Querying), and choose your index in both.
  5. Click Test workflow on the manual trigger and wait for it to finish. The first run takes a while, since the file is about 14 MB.
  6. Open the chat and ask a question.

How to use it

Once the index is full, open the chat panel and ask about the GitHub API, for example how to list a repository’s issues. The agent keeps the last few messages of a chat as memory. Run the indexing again only when you change the file or the index.

What to change for a different result
To changeWhere
The fileThe address in HTTP Request
The indexPinecone Index in both Pinecone nodes
The agent’s instructionsSystem Message in AI Agent
When the agent searchesDescription in Vector Store Tool
How many pieces come backLimit in Vector Store Tool, which starts at 4
The modelsModel in OpenAI Chat Model and OpenAI Chat Model1

Example

A developer asks the chat how to list the issues of a repository. The agent calls the vector store tool, which turns the question into an embedding and asks Pinecone for the four closest pieces.

The tool’s own model reads those pieces and answers, and the agent passes the answer on. The reply names the path for listing issues and says that open issues are returned by default.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one has two starts. The manual start fills the index, and the chat start answers questions from it. Run the first once, then open each box of the second to see where an answer comes from.

For experts. Both Pinecone nodes need the same index and the same embedding model, or the vectors will not match. Mindket’s copy sets text-embedding-3-small on both embedding nodes outright, where the original left it to the node’s default.

Where to look closer
NodeWhat it doesWhat to know
HTTP RequestGET of GitHub’s OpenAPI description from its public repositoryThe file is 14,263,438 bytes and comes back as plain text
Default Data Loader and Recursive Character Text SplitterTurn the downloaded item into piecesPieces are about 1,000 characters with no overlap, so the file gives roughly 14,000 of them
Pinecone Vector StoreInsert mode, with Generate EmbeddingsIt adds the pieces each time it runs and clears nothing unless you switch on Clear Namespace
AI AgentAgent 1.7 with a system message, a window memory and one toolIt runs as a Tools Agent
Vector Store ToolAnswers from the Pinecone store through OpenAI Chat Model1Its name and description tell the agent when to use it
Pinecone Vector Store (Querying)Retrieve mode, with Generate User Query EmbeddingIt feeds the tool, and the tool returns up to 4 pieces

Good to know

The indexing run is large for a first try, and a model change was needed.

  • Models: OpenAI’s deprecations page, read on 12 November 2026, lists gpt-5-mini, the node’s old default, as shutting down on 11 December 2026 with gpt-5.6-terra as the replacement. The original named no model, so Mindket’s copy sets gpt-5.6-terra for the agent and gpt-6-luna for the tool’s own model, which only reads the pieces
  • Why not `gpt-6-luna` for the agent: its model page says Chat Completions supports function calling only with reasoning effort off, and an agent needs function calling
  • Size: the file splits into roughly 14,000 pieces, each embedded and stored, so the first run takes a while and costs a little on both services
  • Run it once: a second indexing run stores every piece again, unless Clear Namespace is on in Pinecone Vector Store
  • Index size: an index that does not have 1536 dimensions refuses the vectors, so check it before the first run
  • Memory: the agent’s window memory lives in n8n’s own memory, is cleared after an idle hour and does not suit queue mode
  • Empty pickers: the author’s own Pinecone index is gone, so choose yours
  • Billing: each question costs one agent call and one call inside the tool, plus an embedding, and each is billed by its provider
  • Your data: your questions go to OpenAI and Pinecone, and the file you index goes to both too
  • Credentials: the JSON holds none, so add the OpenAI and Pinecone credentials yourself

README and files

README

Chat with the GitHub API spec stored in Pinecone with OpenAI

An n8n workflow that is a chatbot for the GitHub REST API. One part downloads GitHub's OpenAPI description of that API, cuts it into
pieces and saves each piece in a Pinecone index as an OpenAI embedding. The other part is a chat window where an AI Agent finds the
best matching pieces and answers from them.

What is inside

  • workflow.json: the workflow as n8n exports it, fourteen working nodes and three sticky notes. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • The Pinecone index name was the author's own (n8n-demo). Both Pinecone nodes now show an empty index picker, and the Querying
    node says retrieve outright for its mode.
  • The original named no chat model, so n8n's default applied. Mindket's copy sets gpt-5.6-terra on OpenAI Chat Model (the
    agent) and gpt-6-luna on OpenAI Chat Model1 (the vector store tool). See Good to know.
  • Both embedding nodes now say text-embedding-3-small outright, so the two Pinecone nodes always use the same model.
  • The three sticky notes were rewritten, and mention the new models and the index size.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • An OpenAI API key.
  • A Pinecone account, an API key and an index with 1536 dimensions.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. In Pinecone, create an index with 1536 dimensions, the size of text-embedding-3-small embeddings.
  3. Add an OpenAI credential and select it in Generate Embeddings, Generate User Query Embedding, OpenAI Chat Model and
    OpenAI Chat Model1.
  4. Add a Pinecone credential, select it in Pinecone Vector Store and Pinecone Vector Store (Querying), and choose your index
    in both.
  5. Click Test workflow on the manual trigger and wait for it to finish. The first run takes a while, since the file is about
    14 MB.
  6. Open the chat and ask a question.

How a run goes

Indexing, from the manual trigger:

  1. HTTP Request downloads GitHub's OpenAPI description from its public repository.
  2. Default Data Loader and Recursive Character Text Splitter cut it into pieces of about 1,000 characters.
  3. Generate Embeddings turns each piece into a vector, and Pinecone Vector Store (Insert) saves it.

Chatting, from the chat trigger:

  1. When chat message received hands the message to AI Agent, which has a window memory and a system message.
  2. The agent calls Vector Store Tool when a question needs the specification.
  3. Generate User Query Embedding embeds the question, and Pinecone Vector Store (Querying) returns the 4 closest pieces.
  4. OpenAI Chat Model1 reads those pieces for the tool, and OpenAI Chat Model writes the final reply.

Change the look

  • The file: the address in HTTP Request.
  • The index: Pinecone Index in both Pinecone nodes.
  • The agent's instructions: System Message in AI Agent.
  • When the agent searches: Description in Vector Store Tool.
  • How many pieces come back: Limit in Vector Store Tool.

Good to know

  • OpenAI's deprecations page, read on 12 November 2026, lists gpt-5-mini as shutting down on 11 December 2026 with
    gpt-5.6-terra as the replacement. That page for gpt-6-luna says Chat Completions supports function calling only with
    reasoning effort off, so the agent uses gpt-5.6-terra.
  • The file splits into roughly 14,000 pieces, so the first run takes a while.
  • A second indexing run stores every piece again, unless Clear Namespace is on in Pinecone Vector Store.
  • An index that does not have 1536 dimensions refuses the vectors.
  • Your questions and the file you index go to OpenAI and Pinecone.
Files
NOTICE.md  706 B
README.md  4 KB
workflow.json  9 KB

3 files, 14 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k