Skip to content

harshala334/anya_fi

Repository files navigation

Anya.fi – Agentic Financial Co-Pilot on WhatsApp & Telegram

Stop managing money. Start building wealth.


πŸ“Œ Overview

Most financial apps fail because they expect discipline from users who are already overwhelmed. Dashboards and budgets don’t change behavior β€” timely, contextual, psychologically aware guidance does.

Anya.fi is a proactive Agentic AI that lives inside WhatsApp and Telegram, not a standalone mobile app.
It analyzes financial activity in real time and nudges users using human-like, empathetic conversation.


❗ Problem We Solve

Traditional financial apps are:

  • Passive dashboards
  • Information-heavy
  • Not behavior-changing
  • Built for users with time & discipline

For gig workers, freelancers & stressed millennials:

  • Income is volatile
  • Spending is unpredictable
  • No one has time for budgeting

They need guidance, not graphs.


🌟 Our Solution: Chat-First Financial Co-Pilot

Core Principles

  • Zero Input β€” No manual logging or categorization
  • Proactive AI Assistant
  • Conversational nudges instead of notifications
  • Lives on WhatsApp & Telegram
  • Uses Account Aggregator for secure data
  • Behavioral psychology-driven design

🧠 Core Experience

βœ” User chats with Anya on WhatsApp or Telegram

βœ” Anya ingests transactions using Account Aggregator

βœ” LLM interprets spending context

βœ” Agent orchestrates plugins automatically

βœ” Chat messages deliver personalized nudges


πŸ— Architecture

                [User] 
                   |
         WhatsApp / Telegram Bots
                   |
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚ Messaging Adapters β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   |
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚     MCP Layer  β”‚
          β”‚  (Agent Brain) β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        Observe β†’ Reason β†’ Act
                   |
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚     LLM Core     β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       /       |         |         \
Account   GoalTracker   Plugins     Tools
Aggregator    DB      (Zomato,   (Browser ext,
   API                 MagicBricks, AA Consent)
                     PaytmInsider)

πŸ”Œ Plugin Ecosystem

1️⃣ Anti-Impulse Sphere

Detects checkout pages via browser extension β†’ triggers intervention via WhatsApp/Telegram.

2️⃣ Future-Self Synthesizer

Generates personalized images of the user’s dream home or long-term goals using real real-estate data.

3️⃣ Social Currency Optimizer

Recommends socially intelligent alternatives when peer pressure causes costly plans.


πŸ›  Tech Stack

Backend

  • FastAPI (Python)
  • PostgreSQL (Primary Database)
  • Redis (Agent memory + session state)
  • SQLAlchemy ORM

AI Layer

  • OpenAI/ Groq LLM (Agent Brain)
  • Model Context Protocol (MCP) for tool orchestration
  • Image Generation: OpenAI / Gemini

Integrations

  • Account Aggregator (Finvu Sandbox)
  • Zomato API
  • MagicBricks / 99acres APIs
  • PaytmInsider API

User-Facing Messaging

  • WhatsApp Business Cloud API
  • Telegram Bot API
  • Chrome Extension (Anti-Impulse Plugin)

Deployment

  • Docker
  • Railway / Render for backend
  • Ngrok for local webhook testing

πŸš€ Development Roadmap


Phase 0 β€” Pre-Build Setup

  • Create WhatsApp Business App
  • Create Telegram Bot using BotFather
  • Configure webhook + verify tokens
  • Setup FastAPI project structure
  • Initialize PostgreSQL + schemas
  • Register with A.A sandbox
  • Setup Redis for session state
  • Create .env and config management

Phase 1 β€” MVP

🎯 Features

  • WhatsApp + Telegram bot both live
  • AA consent + fetch transactions
  • Transaction categorization
  • Goals storage
  • MCP loop: Observe β†’ Reason β†’ Act
  • Basic nudges delivered via WhatsApp

🎯 User Flow

  1. User: β€œI want to save for a laptop”
  2. System stores goal
  3. When overspending occurs β†’ friendly nudge on WhatsApp & Telegram

Phase 2 β€” Plugin Development

🟣 Plugin 1: Anti-Impulse Sphere

  • Build Chrome extension
  • Detect checkout URLs
  • Emit event β†’ backend
  • Trigger AI intervention

🟑 Plugin 2: Future-Self Synthesizer

  • Fetch real estate data
  • Generate emotional future-goal image
  • Assign as goal thumbnail

🟒 Plugin 3: Social Currency Optimizer

  • Fetch location + alternatives
  • Draft socially intelligent message
  • Deliver via WhatsApp & Telegram

Phase 3 β€” Full Product Hardening

  • Reliability improvements
  • Better conversation memory
  • User analytics dashboard
  • Auto-savings workflows
  • Personalized investment nudges
  • Behavioral insights engine

🧩 Folder Structure

anya-fi/
 β”œβ”€β”€ backend/
 β”‚    β”œβ”€β”€ main.py
 β”‚    β”œβ”€β”€ agents/
 β”‚    β”‚     β”œβ”€β”€ mcp.py
 β”‚    β”‚     β”œβ”€β”€ impulse_agent.py
 β”‚    β”‚     β”œβ”€β”€ future_self_agent.py
 β”‚    β”‚     β”œβ”€β”€ social_agent.py
 β”‚    β”œβ”€β”€ messaging/
 β”‚    β”‚     β”œβ”€β”€ whatsapp.py
 β”‚    β”‚     β”œβ”€β”€ telegram.py
 β”‚    β”œβ”€β”€ plugins/
 β”‚    β”œβ”€β”€ whatsapp/
 β”‚    β”œβ”€β”€ db/
 β”‚    β”‚     β”œβ”€β”€ models.py
 β”‚    β”‚     β”œβ”€β”€ migrations/
 β”‚    β”œβ”€β”€ utils/
 β”‚    └── config.py
 β”œβ”€β”€ chrome-extension/
 β”œβ”€β”€ docs/
 β”‚    └── architecture.png
 └── README.md

πŸ§ͺ How to Run Locally

git clone https://github.com/asyelmoteb22-show/anya-shop-guardian.git
cd anya-shop-guardian

# setup env
cp .env.example .env

# install backend deps
pip install -r requirements.txt

# run FastAPI
uvicorn main:app --reload

🌱 Future Roadmap

  • Multilingual support
  • Instagram support
  • Automated SIP + investment plans
  • Emotional-AI personality modes
  • Tax advisory assistant
  • Personalized bill negotiation AI

πŸ“„ License

MIT License
Β© 2025 Anya.fi Team

About

Agentic Financial Co-Pilot on Telegram. Uses GenAI (Groq/Llama3) + Account Aggregator to track expenses, set goals, and curb impulse spending via behavioral nudges. Built with FastAPI, Redis, and PostgreSQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors