Agentic Expense Guardian is an intelligent, serverless AI agent built on AWS to empower users with financial management through natural language processing.
It processes queries to track expenses, calculate savings, generate personalized budget tips, and suggest investments based on savings history.
The agent leverages AWS Bedrock with Anthropic Claude for agentic reasoning, AWS Lambda for processing, AWS S3 for storage, and API Gateway for user interaction.
What it does
Key Features Natural Language Processing: Parses queries to extract expense details (date, item, amount) and categorize them (e.g., Food, Housing).
Expense and Savings Tracking: Stores expenses in S3 (expenses/YYYY-MM/), computes monthly savings (savings/YYYY-MM/), and tracks investment suggestions (investments/).
Personalized Budget Tips: Generates tips (e.g., "Please make food in home to save money!") for relatable financial advice.
Investment Suggestions: For users with 5+ months of savings, suggests diversified options (gold, shares, property) with estimated returns and risks.
Serverless and Scalable: Built on AWS Lambda, API Gateway, and S3, ensuring low cost (<$0.01/query at scale) and scalability.
How we built it
AWS Bedrock (Anthropic Claude-3): Core AI for parsing queries, categorizing expenses, and generating tips and investment suggestions.
AWS Lambda: Serverless function to process queries, invoke Bedrock, and manage S3 operations.
AWS API Gateway: REST endpoint (POST /expense) for user queries.
AWS S3: Persistent storage with structured folders (expenses/, savings/, reports/, investments/).
IAM Roles: Permissions for Lambda to access S3 and Bedrock.
Challenges we ran into
Bedrock Throttling: Initial tests hit rate limits with Claude 3 Sonnet. We switched to Claude 3 Haiku for higher limits and implemented exponential backoff retry logic in Lambda.
JSON Parsing Errors: Claude occasionally returned non-JSON text, causing list indices must be integers or slices, not str errors. We fixed this with robust parsing (handling list/dictionary responses) and stricter prompts.
Accomplishments that we're proud of
Agentic AI Innovation Serverless Scalability User-Friendly Output
What we learned
AWS Bedrock Power Serverless Benefits S3 Optimization Tech Prompt Engineering
What's next for Smart Expense Tracker Agent
Mobile App: Build a frontend with AWS Amplify for a mobile-friendly interface, supporting voice queries via AWS Lex.
Integration with Banks: Partner with Indian banks or UPI platforms to auto-fetch transactions, reducing manual inputs.
Multi-Language Support: Expand to regional languages (Tamil, Telugu) to reach more users.
Log in or sign up for Devpost to join the conversation.