workflows.fit
Back to n8n workflows
n8n templateFreeBy Mohan Gopal

AI-powered accounting reports from Sabre EDI with GPT-4 and Pinecone RAG

This workflow automates the process of reading EDI files generated by Sabre, parsing them using an AI Agent, and producing structured accounting reports like: πŸ“Œ Accounts Receivable (AR) Summary πŸ“Œ Tax and Surcharges ...

Data & StorageAILangchainCore NodesManual TriggerVector Store PineconeEmbeddings Open AiDocument Default Data Loader
Loading interactive preview...

Template notes

This workflow automates the process of reading EDI files generated by Sabre, parsing them using an AI Agent, and producing structured accounting reports like:

πŸ“Œ Accounts Receivable (AR) Summary πŸ“Œ Tax and Surcharges Report

It also uses Retrieval-Augmented Generation (RAG) to vectorize the Sabre Interface User Record (IUR)β€”a 154-page technical documentβ€”so that the AI agent can reference it when clarification is required while generating reports.

βš™οΈ Tools & Integrations Used Component:Tool/Service:Purpose:Workflow Engine:n8n:Automation & orchestration LLM Model:OpenAI GPT-4 / Chat Model:Natural language understanding and parsing Embeddings Model:OpenAI Embeddings:Convert text into semantic vector format Vector Database:Pinecone:Store and retrieve document chunks semantically Storage:Google Drive:Source of raw EDI text files and PDF documentation DataLoader + Splitter:n8n Node + Recursive Splitter:Loads and prepares documents for embedding AI Agents:n8n AI Agent Node:Runs context-aware prompts and parses reports

🧱 Workflow Breakdown 🧠 1. Vectorizing the Sabre IUR Document (RAG Setup) πŸ“˜ Objective: Enable the AI Agent to refer to the IUR document (154 pages) for detailed explanations of EDI terms, formats, and rules.

Flow Steps:

Google Drive Search + Download – Find and pull the IUR PDF file.

Default Data Loader – Load the file and preprocess it for semantic splitting.