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…
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.
Chat window
You fill the index once by hand, then it answers whenever you send a message in the n8n chat:
An answer about the GitHub REST API in the n8n chat, based on the pieces of its specification that match the question
What you need before you start.
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
Vector database
Stores the embedded pieces and returns the closest ones to a question.
NeedsA Pinecone API key and an index with 1536 dimensions
Checked by Mindket on 13 Nov 2026
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.
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.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Ask how an endpoint works without searching the reference | A developer asks how to list the issues of a repository and gets the path and its parameters. |
| Documentation | Technical writers | Study the pattern before building a bot for their own docs | A writer swaps the download for the company’s API file and keeps the rest. |
| Education | Course leads | Show students retrieval augmented generation with a real file | A lead runs the indexing in class, then asks the chat three questions. |
| Support | Integration engineers | Answer customers’ API questions faster | An 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.
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.
HTTP Request to another JSON or text fileDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts are involved.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key, for an OpenAI credential |
| Pinecone | An account, an API key and an index with 1536 dimensions, for a Pinecone credential |
workflow.json.text-embedding-3-small embeddings.Generate Embeddings, Generate User Query Embedding, OpenAI Chat Model and OpenAI Chat Model1.Pinecone Vector Store and Pinecone Vector Store (Querying), and choose your index in both.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.
| To change | Where |
|---|---|
| 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, which starts at 4 |
| The models | Model in OpenAI Chat Model and OpenAI Chat Model1 |
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.
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.
| Node | What it does | What to know |
|---|---|---|
HTTP Request | GET of GitHub’s OpenAPI description from its public repository | The file is 14,263,438 bytes and comes back as plain text |
Default Data Loader and Recursive Character Text Splitter | Turn the downloaded item into pieces | Pieces are about 1,000 characters with no overlap, so the file gives roughly 14,000 of them |
Pinecone Vector Store | Insert mode, with Generate Embeddings | It adds the pieces each time it runs and clears nothing unless you switch on Clear Namespace |
AI Agent | Agent 1.7 with a system message, a window memory and one tool | It runs as a Tools Agent |
Vector Store Tool | Answers from the Pinecone store through OpenAI Chat Model1 | Its name and description tell the agent when to use it |
Pinecone Vector Store (Querying) | Retrieve mode, with Generate User Query Embedding | It feeds the tool, and the tool returns up to 4 pieces |
The indexing run is large for a first try, and a model change was needed.
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 piecesPinecone Vector StoreAn 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.
workflow.json: the workflow as n8n exports it, fourteen working nodes and three sticky notes. It holds no credential.README.md: these notes.n8n-demo). Both Pinecone nodes now show an empty index picker, and the Queryingretrieve outright for its mode.gpt-5.6-terra on OpenAI Chat Model (thegpt-6-luna on OpenAI Chat Model1 (the vector store tool). See Good to know.text-embedding-3-small outright, so the two Pinecone nodes always use the same model.workflow.json.text-embedding-3-small embeddings.Generate Embeddings, Generate User Query Embedding, OpenAI Chat Model andOpenAI Chat Model1.Pinecone Vector Store and Pinecone Vector Store (Querying), and choose your indexIndexing, from the manual trigger:
HTTP Request downloads GitHub's OpenAPI description from its public repository.Default Data Loader and Recursive Character Text Splitter cut it into pieces of about 1,000 characters.Generate Embeddings turns each piece into a vector, and Pinecone Vector Store (Insert) saves it.Chatting, from the chat trigger:
When chat message received hands the message to AI Agent, which has a window memory and a system message.Vector Store Tool when a question needs the specification.Generate User Query Embedding embeds the question, and Pinecone Vector Store (Querying) returns the 4 closest pieces.OpenAI Chat Model1 reads those pieces for the tool, and OpenAI Chat Model writes the final reply.HTTP Request.AI Agent.Vector Store Tool.Vector Store Tool.gpt-5-mini as shutting down on 11 December 2026 withgpt-5.6-terra as the replacement. That page for gpt-6-luna says Chat Completions supports function calling only withgpt-5.6-terra.Pinecone Vector Store.NOTICE.md 706 B README.md 4 KB workflow.json 9 KB
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…
Qwen · Kit
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…
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…
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…
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…
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.