Skip to content

kamalbuilds/ava-the-ai-agent

Repository files navigation

🤖 Ava the MultiChain IP powered Defi Portfolio Managing AI Agents Platform

Group of Multiple specialized autonomous AI agents with powerful tools that work together in collaberation to analyze, recommend, and execute the most optimal DeFi strategies while maintaining user-defined risk parameters and portfolio goals currently live on Flow, Hedera , Sui , Base, Avalanche , Mode , Arbitrium, powered by Story Protocol , and LangChain.

📑 Quick Navigation

🚀 Core Sections

🎯 Problem Statement

Managing DeFi portfolios across multiple protocols across different chains can be complex and time-consuming.

Users need to:

  • Monitor multiple positions across different protocols
  • Execute complex multi-step transactions
  • Stay updated with the latest crosschain yield opportunities
  • Maintain desired portfolio allocations
  • React quickly to market changes

💡 Solution

An autonomous group of AI agents that manages your Multichain DeFi portfolio by:

  • Understanding high-level goals in natural language
  • Breaking down complex operations into executable steps
  • Automatically executing transactions when needed
  • Providing real-time updates and progress tracking
  • Maintaining portfolio balance according to user preferences

Docs

https://cryptoinnovators.gitbook.io/ava-the-defai-agent/agents/protocol-specific-agent/lit-agent-wallet

Demo Vid

https://www.youtube.com/watch?v=kYpniQ4neQk

Flow

2025-02-28.23-47-04.mov

🏗 Architecture

Screenshot 2025-02-13 at 12 12 49 PM

Monad Demo Video

Flow

2025-02-28.23-47-04.mov

🌟 Key Features

  1. Natural Language Interface
  • Express portfolio goals in plain English
  • No need to understand complex DeFi terminology
  • AI translates intentions into actions
  1. Autonomous Execution
  • Breaks down complex goals into steps
  • Executes transactions automatically
  • Handles error recovery
  • Provides progress updates
  1. Advanced Trading & Routing

    • Enso Finance integration for smart routing
    • CoW Protocol for MEV-protected trades
    • Gas-optimized transaction bundling
    • Cross-chain bridging via SuperchainBridge
    • Automated slippage protection
  2. Treasury Management

    • Portfolio rebalancing across protocols
    • Yield optimization strategies
    • Risk-adjusted position management
    • Liquid staking automation
    • Cross-chain asset allocation
  3. AI-Powered Decision Making

    • Venice.AI integration for market analysis
    • Multi-model architecture for diverse tasks
    • Real-time market sentiment analysis
    • Autonomous strategy formulation
    • Risk assessment and optimization
  4. Cross-Chain Operations

    • SuperchainBridge for L2 transfers
    • Unified liquidity management
    • Cross-chain yield farming
    • Gas-efficient bridging operations
    • Multi-chain position monitoring
  5. Privacy & Security

    • Lit Protocol for decentralized key management
    • Private transaction execution
    • Secure multi-party computation
    • Zero-knowledge proofs for verification
    • Encrypted agent communication
  6. Real-Time Event Communication

    • WebSocket-based event architecture
    • Bidirectional real-time updates
    • Status tracking and monitoring
    • Autonomous mode support
    • Reliable connection management

🛠 Technology Stack

  • Frontend: Next.js, TypeScript, TailwindCSS
  • AI Engine: Brian AI, LangChain, GPT-4
  • Blockchain: Avalanche C-Chain, Teleporter, Eigenlayer AVS
  • Development: Foundry, Avalanche CLI
  • Indexing: The Graph Protocol

Technology Integrations

  • Multi-Agent Orchestration

    // Eliza coordinates with other agents through event-driven architecture
    
    class ElizaAgent extends BaseAgent {
      async generateInsight({
        position,
        analysis,
        tone,
        powered_by
      }) {
      }
    }
  • Protocol-Specific Adapters

    • Navi Protocol integration for leveraged positions
    • Bluefin interface for perpetual trading
    • Cetus integration for liquidity provision
    • Aftermath connection for DCA and staking
  • User Interaction Layer

    • Casual, friendly communication style
    • Complex strategy simplification
    • Real-time position monitoring
    • Risk alerts and notifications

Agent Collaboration Architecture

Our multi-agent system enables complex DeFi operations through specialized agents:

interface AgentCollaboration {
  observer: Observer;      // Monitors positions and market conditions
  executor: Executor;      // Handles transaction execution
  taskManager: TaskManager;// Coordinates multi-step operations
  suiAgent: SuiAgent;     // SUI-specific operations
  elizaAgent: ElizaAgent; // User interaction and strategy explanation
}