Skip to content

joshylak/Comprehensive_Statement-analysis

Repository files navigation

Bank Statement Analyzer with Vertex AI

Setup

  1. Install dependencies:
npm install
  1. Set up Google Cloud credentials:

    • Create a service account in Google Cloud Console
    • Download the JSON key file
    • Set environment variable: GOOGLE_APPLICATION_CREDENTIALS=path/to/key.json
  2. Update project ID in analyzer.js

Usage

import { BankStatementAnalyzer } from './analyzer.js';

const analyzer = new BankStatementAnalyzer('bankstatement-468307');
// For PDF files
const analysis = await analyzer.processStatementFile('statement.pdf');
// For JSON files
const analysis = await analyzer.processStatementFile('statement.json');
console.log(analysis);

Input Format

PDF Files: Upload bank statement PDF directly JSON Files: Should include:

  • accountInfo: Account details and balances
  • transactions: Array of transaction objects with date, description, amount, type, category

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published