Company RAG and data queries

GitHub OpenAPI V3 specification RAG assistant with Pinecone

Short answer

This n8n workflow retrieves the GitHub OpenAPI V3 specification via HTTP, splits large endpoint definitions and writes OpenAI embeddings into Pinecone. When a developer asks about endpoints, parameters or authentication through chat, an AI agent with buffered memory queries the OpenAPI vector tool and replies accurately.

Catalogue ID
#1373
Functional nodes
14
Connections
12
Trigger
manualTrigger, chatTrigger
AI layer
AI-assisted
Business problem solved

Business problem solved

Searching thousands of lines in an OpenAPI specification slows down API integration work. Pasting whole specification files into a chat prompt exceeds model limits and misses exact schema details.

Trigger

A manual trigger indexes the OpenAPI specification, while a chat trigger serves developer questions.

Connected systems

Connected systems

  • GitHub OpenAPI HTTP endpoint
  • Pinecone vector store
  • OpenAI
  • Chat interface
  • Self-hosted n8n

Every workflow is deployed on your own server with documentation, a run log and an error queue.

Workflow architecture

Workflow architecture

  1. 1. When clicking Test workflow (Trigger) (connects to HTTP Request)
  2. 2. HTTP Request (Service and data) (connects to Pinecone Vector Store)
  3. 3. Pinecone Vector Store (AI layer)
  4. 4. Default Data Loader (AI layer) (connects to Pinecone Vector Store)
  5. 5. Recursive Character Text… (AI layer) (connects to Default Data Loader)
  6. 6. When chat message received (Trigger) (connects to AI Agent)
  7. 7. AI Agent (AI layer)
  8. 8. OpenAI Chat Model (AI layer) (connects to AI Agent)
  9. 9. Window Buffer Memory (AI layer) (connects to AI Agent)
  10. 10. Vector Store Tool (AI layer) (connects to AI Agent)
  11. 11. OpenAI Chat Model1 (AI layer) (connects to Vector Store Tool)
  12. 12. Generate User Query… (AI layer) (connects to Pinecone Vector Store…)
  13. 13. Pinecone Vector Store… (AI layer) (connects to Vector Store Tool)
  14. 14. Generate Embeddings (AI layer) (connects to Pinecone Vector Store)
  • Trigger
  • AI layer
  • Logic and routing
  • Service and data

Node positions and directed links are generated from the verified catalogue record.

Workflow steps

Workflow steps

  1. 01

    OpenAPI specification intake

    The manual trigger calls the GitHub REST API OpenAPI V3 specification endpoint over HTTP.

  2. 02

    Chunking and Pinecone indexing

    Specification text is split recursively, embedded with OpenAI and stored inside a dedicated Pinecone index.

  3. 03

    Developer chat agent with memory

    Chat queries run through an OpenAI agent equipped with buffered memory and the Pinecone OpenAPI retrieval tool.

Error queue and human approval

Error queue and human approval

Built-in state in the catalogue workflow

The verified catalogue workflow contains zero node-level error flags across its 14 functional nodes and 12 connections.

Production layer added by ALTAI

During live deployment, ALTAI adds version-stamped namespace rotation when specs update, private repo token protection, rate limits and a run log.

Frequently asked

GitHub OpenAPI spec RAG workflow Frequently asked questions

Yes. The HTTP fetch node connects to private authenticated OpenAPI endpoints or repository releases inside your environment.

Production runs clear or swap the Pinecone namespace during scheduled spec refreshes so only current endpoints remain active.

Yes. Window buffer memory keeps recent turns so developers can ask follow-up schema questions without repeating context.

Mert Can Gundogdu
The founder takes the call, not a sales team
Next step

We write the proposal after we have found the problem together

In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.

30 minutes · no preparation needed

The call and the week of discovery are both free.Read the terms

Chat on WhatsApp