This project automates the extraction of invoice details from PDF files using UiPath and GenAI (gpt 5.2).
It processes multiple invoices, extracts structured fields, and writes the results into Excel.
- Reads all PDF invoices from
/Data/Input - Uses GenAI to extract:
- Invoice Number
- Date (DD/MM/YYYY)
- Amount (with currency)
- Parses extracted text using Regex
- Adds each invoice as a row in a DataTable
- Email invoice details
- Writes final output to Excel
- Includes Try/Catch for robust error handling
- Logs failures and continues processing
- Build DataTable
- Loop through all PDFs
- Read PDF text
- AI extraction (gpt 5.2)
- Regex parsing
- Send SMTP Email
- Add Data Row
- Write to Excel
Invoice_Document_Understanding_Advait/
├── Data/
│ ├── Input/ # Place invoice PDFs here
│ └── Output/ # Excel output (InvoiceDetail.xlsx) generated here
├── Screenshots/ # Workflow screenshots for documentation
├── Workflows/
│ └── Main.xaml # Main project entry point
└── README.md # Project documentation
- Place PDFs in
Data/Input - Open the project in UiPath Studio
- Run
Main.xaml - Output Excel appears in
Data/Output/InvoiceDetail.xlsx
- UiPath Studio
- UiPath.Excel.Activities
- UiPath.PDF.Activities
- UiPath GenAI Activities (gpt 5.2)