Ai Expense Claim

AI-powered expense claim processing for Frappe/ERPNext. Automatically extracts expense details from receipts and bills using OpenAI

Install Ai Expense Claim

bench get-app https://github.com/manavmandli/ai_expense_claim

Add the Frappe Gems badge to your README

Maintain Ai Expense Claim? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=manavmandli%2Fai_expense_claim)](https://frappegems.com/gems/apps/manavmandli/ai_expense_claim)

About Ai Expense Claim

AI Expense Claim

AI-powered expense claim processing for Frappe/ERPNext. Automatically extracts expense details from receipts and bills using OpenAI.

Demo Video

https://github.com/user-attachments/assets/e6fe0cf7-9f9a-45c9-836d-a50048c627b1

Features

  • 🤖 AI-Powered Extraction - Automatically extract date, amount, category, and description from bills
  • 📸 Multi-Format Support - PDF, JPG, PNG, WEBP
  • 🔄 Batch Processing - Upload and process multiple receipts at once
  • 🎯 Smart Grouping - Automatically groups expenses by type and merges attachments
  • Quality Control - Confidence scoring rejects low-quality images
  • 🔒 Secure - API keys encrypted in database

Quick Start

Installation

bench get-app https://github.com/yourusername/ai_expense_claim
bench --site your-site install-app ai_expense_claim

Configuration

  1. Go to AI Expense Settings
  2. Add your OpenAI API Key
  3. Select model (default: gpt-4o)

Usage

  1. Open an Expense Claim
  2. Click → Upload & Process AI Based Bills
  3. Upload receipts (drag & drop or click)
  4. Click Process with AI
  5. Review and apply extracted expenses

How It Works

  1. Upload - Drop receipt images or PDFs
  2. Process - AI extracts expense details in parallel
  3. Group - Same expense types are automatically grouped
  4. Merge - Multiple receipts merged into single PDF per group
  5. Review - Check and edit before applying to expense claim
  6. Apply - Selected expenses added to your claim

Supported Categories

Food • Travel • Accommodation • Fuel • Medical • Communication • Other

API Methods

  • prepare_grouped_expenses - Process and group bills (main method)
  • process_bills - Extract data from individual files
  • merge_files_for_group - Merge multiple receipts into PDF
  • link_files_to_claim - Attach files to expense claim

License

MIT

Related Developer Tools apps for Frappe & ERPNext

  • Frappe — Low code web framework for real world applications, in Python and Javascript
  • Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
  • Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
  • Bench — CLI to manage Multi-tenant deployments for Frappe apps
  • Frappe Ui — A set of components and utilities for rapid UI development
  • Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
  • Gameplan — Open Source Discussions Platform for Remote Teams
  • Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.