Logo Lanfrica

abedobama/mpesa-ai-assistant

Domain:

socioeconomic

Record type:

software
Creator:
abe
Host:
An AI-powered M-Pesa transaction assistant that analyses Safaricom M-Pesa statement PDFs using Retrieval Augmented Generation(RAG).Ask questions about your spending in plain English and get intelligent insights.Built with Python,FastAPI,Langchain,OpenAI,ChromaDB and vanilla Javascript # 🟒 M-Pesa AI Assistant > **AI-powered M-Pesa transaction analysis tool built for Kenyan mobile money users.** Upload your M-Pesa statement PDF and ask questions about your transactions in plain English. Get intelligent spending insights, financial summaries, and personalized budgeting advice. --- ## 🎯 What It Does M-Pesa AI Assistant transforms your raw M-Pesa PDF statements into actionable financial intelligence. It combines **document parsing**, **vector search**, and **large language models** to let you have a natural conversation about your money. ### Example Questions You Can Ask: | Category | Example Questions | |----------|-------------------| | πŸ’° **Spending** | "What is my total spending this month?" | | πŸ‘€ **People** | "Who did I send the most money to?" | | πŸ“Š **Averages** | "What is my average daily spending?" | | πŸ” **Search** | "Show me all transactions above KES 5,000" | | πŸ“… **Patterns** | "Do I spend more on weekends or weekdays?" | | πŸ“± **Airtime** | "How much did I spend on airtime?" | | πŸͺ **Payments** | "List all my till/buy goods payments" | | πŸ“ˆ **Trends** | "Am I spending more or less than last month?" | | πŸ’‘ **Advice** | "How can I reduce my spending?" | | πŸ“‹ **Summary** | "Give me a complete financial summary" | --- ## πŸ—οΈ Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ FRONTEND β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚Dashbdβ”‚ β”‚ Chat β”‚ β”‚ Txns β”‚ β”‚Uploadβ”‚ β”‚Setngsβ”‚ β”‚ β”‚ β””β”€β”€β”¬β”€β”€β”€β”˜ β””β”€β”€β”¬β”€β”€β”€β”˜ β””β”€β”€β”¬β”€β”€β”€β”˜ β””β”€β”€β”¬β”€β”€β”€β”˜ β””β”€β”€β”¬β”€β”€β”€β”˜ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ Plain HTML/CSS/JS β”‚ β”‚ Chart.js + Marked.js β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ REST API (HTTP) β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ FASTAPI BACKEND β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ …

Languages