Ailfred: Your Personal DeFi Butler - An AI Agent that Makes Web3 Investing Sophisticated Yet Simple
Prize Pool
This project combines a state channels hub with a browser-based frontend to allow users to interact with DeFi protocols through a sophisticated AI butler interface. The hub is designed to facilitate seamless token deposits, withdrawals, and management across various DeFi protocols, with a focus on AAVE lending operations on the Base network. The butler interface provides an intuitive, conversational way to handle complex DeFi operations while maintaining high security and efficiency.
This project uses the @statechannels browser-based wallet and CDP Wallet Provider behind the scenes to connect to Base network and AAVE protocols. We used React with TypeScript for the frontend and integrated several key technologies:
Agent Framework:
LangChain for AI conversation management OpenAI GPT-3.5 for natural language processing AgentKit from Coinbase for secure wallet operations
DeFi Integration:
AAVE protocol integration for lending operations Base network integration for token management Custom smart contract interaction layer for secure transactions
Frontend Components:
React with TypeScript for UI components MobX for state management Tailwind CSS for styling CDP Wallet Provider for wallet operations
Backend Services:
Node.js with TypeScript Ethers.js for blockchain interactions Custom message formatting system for maintaining butler persona
The unique aspect of this project is the combination of AI-driven conversation with secure DeFi operations, all while maintaining a consistent butler persona that makes complex DeFi operations accessible to regular users. The state channels implementation ensures efficient transaction processing while keeping gas costs minimal.