Skip to content

๐Ÿ” Retrieve & Calculate Expenses โ€‹

The AI can look up past expenses by category or show all expenses. It can also calculate totals using an internal calculator tool.

๐ŸŽฏ Common Queries โ€‹

You can ask things like:

text
How much did I spend on lunch?
Show me all my smoke expenses this week
What is my total spending this month?

๐Ÿ“Š Category-Based Retrieval โ€‹

The Get Expense By Category tool is used when you ask:

What did I spend on [CATEGORY]?

It returns only the rows that match the category and then summarizes the result.

๐Ÿงฎ Using the Calculator Tool โ€‹

If your query involves total, sum, or average, the AI will:

  1. Retrieve matching rows
  2. Extract Amount values
  3. Send them to the Calculator tool
  4. Return the result, like:
text
You spent 1,450 BDT on Lunch this month across 12 entries.

๐Ÿ“ Output Example โ€‹

text
2025-07-22 | Lunch at FoodBox     | Lunch  | 150
2025-07-23 | Office canteen       | Lunch  | 120
2025-07-24 | Tabaq Dine           | Lunch  | 180

๐Ÿ’ฐ Total: 450 BDT across 3 entries.

โš ๏ธ Limitations โ€‹

  • No natural language date filters yet (e.g., "last week")
  • It assumes current month unless you provide specific dates
  • Miswritten categories won't match โ€” be specific