Skip to content

An AI-powered tool for extracting and standardizing invoice data from PDF files. Utilizes OpenAI's API to process invoices and save structured data in an Excel file.

Notifications You must be signed in to change notification settings

Pfauberg/AI-Invoices-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Invoice Processing Tool

This script automates the extraction and standardization of invoice data from PDF files using OpenAI's API. It processes invoices, extracts key details, and saves them in an Excel file.

Features

  • The script allows extracting any required data by specifying the desired fields in the processing request.

  • Uploads PDF invoices for processing.

  • Extracts structured data including date, invoice number, seller information, item details, and amounts.

  • Saves processed data to invoices.xlsx.

Requirements

  • Python 3.x
  • Required libraries: os, pandas, configparser, json, re, time, requests
  • OpenAI API key (set in config.ini)

Setup

  1. Install dependencies:
    pip install pandas requests
  2. Configure OpenAI API key:
    • Copy config_example.ini to config.ini.
    • Replace API_KEY with your actual OpenAI API key.
  3. Place invoice PDFs in the invoices/ folder.

Usage

Run the script:

python main.py

About

An AI-powered tool for extracting and standardizing invoice data from PDF files. Utilizes OpenAI's API to process invoices and save structured data in an Excel file.

Topics

Resources

Stars

Watchers

Forks

Languages