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 ...
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.