Agents-MCP-Hackathon/Web3WealthManagement
๐ Web3WealthManagement
  
An innovative, AI-powered platform that empowers cryptocurrency investors with personalized insights and expert guidance through a sophisticated multi-agent system.
๐ฅ Video Demo
<iframe width="560" height="315" src="https://www.youtube.com/embed/rgSSn563c_w?si=Q1txXjioDkiO1L3w" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
https://www.youtube.com/watch?v=rgSSn563c_w
๐ Table of Contents
- ๐ Introduction
- โจ Key Features
- ๐๏ธ System Architecture
- ๐ Quick Start
- โ๏ธ Configuration
- ๐ ๏ธ Technologies
- ๐ Usage Examples
- ๐ค Contributing
- ๐ License
๐ Introduction
Web3WealthManagement simplifies the complex world of Web3 investments by providing a structured approach to risk assessment and portfolio management through an intuitive Gradio interface. The platform leverages advanced AI agents to deliver personalized investment strategies tailored to your risk tolerance and portfolio composition.
Why Web3WealthManagement?
- Personalized Approach: Tailored recommendations based on your unique risk profile
- Real-time Data: Live blockchain data integration via Etherscan API
- AI-Powered Insights: Advanced analysis using Mistral LLM
- User-Friendly Interface: Intuitive Gradio-based web application
- Comprehensive Analysis: Multi-dimensional portfolio evaluation
โจ Key Features
๐ฏ Core Capabilities
๐ Supported Assets
- ETH (Ethereum)
- ERC20 Tokens: USDC, DAI, USDT, LINK
- Sample Wallets: Pre-configured wallets for testing
๐ Analysis Metrics
- Portfolio volatility assessment
- Asset concentration analysis
- Diversification scoring
- Risk-profile alignment evaluation
๐๏ธ System Architecture
graph TD
A[User Input] --> B[Risk Survey Agent]
B --> C[Portfolio Import Agent]
C --> D[Analysis Agent]
D --> E[Expert Consulting Agent]
E --> F[Recommendations]
G[Etherscan API] --> C
H[Mistral AI] --> E
I[SerpAPI] --> EAgent Workflow
- Risk Survey Agent ๐
- Collects investment preferences
- Calculates risk profile (Conservative/Moderate/Aggressive)
- Validates user responses
- Portfolio Import Agent ๐ผ
- Fetches Ethereum asset balances
- Integrates with Etherscan API
- Handles API rate limiting and errors
- Analysis Agent ๐ฌ
- Processes portfolio data against risk profile
- Generates comprehensive analysis reports
- Calculates key performance metrics
- Expert Consulting Agent ๐ค
- Provides context-aware advice
- Performs external research via Google Search
- Maintains conversation context
๐ Quick Start
Prerequisites
Ensure you have the following installed and configured:
Installation
- Clone the repository
git clone https://github.com/your-username/Web3WealthManagement.git
cd Web3WealthManagement- Create virtual environment (Recommended)
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate- Install dependencies
pip install -r requirements.txtโ๏ธ Configuration
API Keys Setup
Create a `.env` file in the project root:
# Required API Keys
ETHERSCAN_API_KEY=your_etherscan_api_key_here
MISTRAL_API_KEY=your_mistral_api_key_here
SERPAPI_API_KEY=your_serpapi_api_key_here
# Optional Configuration
DEBUG_MODE=false
LOG_LEVEL=INFOObtaining API Keys
๐ Running the Application
python app.pyThe application will start and display:
Running on local URL: http://127.0.0.1:7860Open the URL in your browser to access the Web3WealthManagement interface.
๐ ๏ธ Technologies
Core Stack
- [Python 3.9+](https://python.org) - Primary programming language
- [Gradio](https://gradio.app) - Interactive web interface framework
- [Smolagents](https://github.com/huggingface/smolagents) - Multi-agent system framework
AI & APIs
- [Mistral AI](https://mistral.ai) - Large language model for expert consultation
- [Etherscan API](https://etherscan.io/apis) - Ethereum blockchain data retrieval
- [SerpAPI](https://serpapi.com) - Google search integration
Dependencies
gradio>=5.33.0
smolagents>=0.1.0
python-dotenv>=1.0.0
requests>=2.31.0๐ Usage Examples
Basic Workflow
- Complete Risk Assessment
- Answer investment preference questions
- Receive risk profile classification
- Import Portfolio
- Enter Ethereum wallet address
- Review imported assets
- Analyze Portfolio
- View comprehensive analysis report
- Understand risk alignment
- Consult AI Expert
- Ask specific investment questions
- Receive personalized recommendations
Sample Wallet Addresses
For testing purposes, you can use these sample addresses:
Vitalik Buterin: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
Ethereum Foundation: 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe๐ Security Considerations
- API Key Protection: Never commit API keys to version control
- Rate Limiting: Implement proper API rate limiting
- Input Validation: Validate all user inputs and wallet addresses
- Error Handling: Graceful handling of API failures and network issues
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and add tests
- Commit your changes:
git commit -am 'Add feature' - Push to the branch:
git push origin feature-name - Submit a pull request
๐ License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
<div align="center">
Built with โค๏ธ for the Web3 community
Report Bug โข Request Feature โข Documentation
</div>
