Track your daily spending across bKash, Nagad, Rocket, and cash — in Bengali or English — and get an automatic weekly digest every Sunday morning.
Activate when the user says anything that contains:
Transaction logging signals:
Summary signals:
Delete/edit signals:
Call the parser to extract structured data:
bash
python3 {baseDir}/parser.py "{user_message}"
This returns JSON:
json
{
"amount": 500,
"method": "bkash",
"category": "food",
"note": "lunch",
"confidence": "high"
}
If amount is null → ask the user:
"কত টাকা? / How much?"
If confidence is "low" → confirm before saving:
"Did you mean: 500৳ for food via bKash? (yes/no)"
bash
python3 {baseDir}/logger.py log \
--amount {amount} \
--method {method} \
--category {category} \
--note "{note}"
Reply in the same language the user wrote in:
English: "✅ Logged: {amount}৳ — {category} ({method_emoji})"
Bengali: "✅ লগ হয়েছে: {amount}৳ — {category} ({method_emoji})"
Method emojis:
When user asks for summary/digest:
bash
python3 {baseDir}/summarizer.py weekly
Format the output as a clean digest message and send.
Every Sunday at 9:00 AM local time:
python3 {baseDir}/summarizer.py weeklybash
python3 {baseDir}/logger.py undo
Reply: "✅ Last transaction deleted."
When user asks "what did I log today" or "recent":
bash
python3 {baseDir}/logger.py recent --n 5
Format as a simple numbered list.
Use this to classify ambiguous messages:
KeywordsCategoryfood, lunch, dinner, breakfast, restaurant, খাবার, রেস্তোরাঁfoodrickshaw, CNG, Uber, bus, train, ভাড়া, যাতায়াতtransportrent, বাড়িভাড়াrentelectricity, gas, water, internet, bill, বিলutilitiesmum, dad, family, bhai, apa, মা, বাবা, ভাই, আপা, sent toremittancemedicine, doctor, hospital, ডাক্তারmedicalschool, tuition, books, পড়াশোনাeducationclothes, shoes, shopping, কেনাকাটাshoppingeverything elseother
English input:
text
User: "bkash 450 lunch"
Agent: ✅ Logged: 450৳ — Food 🔴
User: "sent 5000 to mum nagad"
Agent: ✅ Logged: 5000৳ — Remittance 🟠
User: "show my spending this week"
Agent: [weekly digest]
Bengali input:
text
User: "৳৮৫০ বিকাশে বাজার করলাম"
Agent: ✅ লগ হয়েছে: 850৳ — Shopping 🔴
User: "রিকশায় ৮০ টাকা নগদ"
Agent: ✅ লগ হয়েছে: 80৳ — Transport 💵
User: "এই সপ্তাহে কত খরচ হলো"
Agent: [সাপ্তাহিক সারসংক্ষেপ]
Mixed input:
text
User: "electricity bill 1200 bkash dilam"
Agent: ✅ Logged: 1200৳ — Utilities 🔴