Add AI parsing capabilities for debt information and update database schema

- Implemented AI-powered parsing for debt emails using Google's Gemini model.
- Enhanced Postmark webhook to extract debt details including amount, vendor, description, due date, and legitimacy.
- Updated database schema to include new columns for AI-extracted data.
- Added environment variable requirements and updated package dependencies.
- Created migration script for new database columns and indexes.
This commit is contained in:
2025-06-07 00:59:09 -03:00
parent a4bb8d0892
commit 7a8790d564
7 changed files with 529 additions and 97 deletions

View File

@@ -11,8 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@ai-sdk/google": "^1.2.19",
"@astrojs/react": "^3.6.2",
"@astrojs/tailwind": "^5.1.1",
"@google/generative-ai": "^0.24.1",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
@@ -44,6 +46,7 @@
"@supabase/supabase-js": "^2.39.0",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"ai": "^4.3.16",
"astro": "^4.15.9",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
@@ -66,4 +69,4 @@
"vaul": "^1.0.0",
"zod": "^3.23.8"
}
}
}