Skip to content

OkeyAmy/Axioschat

Repository files navigation

AxiosChat: Your Intelligent Web3 Navigator

AxiosChat Banner

Bridging the gap between complex blockchain technology and everyday users

🚀 Revolutionizing Your Web3 Experience

AxiosChat is a cutting-edge, AI-powered chat interface designed to demystify the complexities of the blockchain. We bridge the gap between the technical world of Web3 and everyday users by enabling seamless interaction with decentralized technologies through intuitive, natural language conversations. Ask questions, execute transactions, and learn about crypto concepts – all within a sleek, responsive, and now exceptionally robust chat environment.

The Challenge Our Solution
Web3 presents a steep learning curve with complex jargon, intricate procedures, and fear of errors that create significant barriers to mainstream adoption. AxiosChat transforms this landscape by providing a user-friendly gateway to blockchain functionalities, empowering both crypto enthusiasts and newcomers to navigate the decentralized web with confidence.

🔗 Live Demo & Pitch

Note: AI functionality may be limited on the live demo due to API key constraints.

✨ Key Features & Recent Enhancements

💬 Core Functionality

  • Conversational Blockchain Operations: Execute transactions (token swaps, transfers) and query data (balances, prices) using simple English.
  • Intelligent Function Calling: Sophisticated AI determines when to call specific blockchain functions based on your requests.
  • Educational Context: Learn as you go! AxiosChat provides explanations for blockchain concepts and transaction details.
  • Secure by Design: Critical operations require user approval via a clear transaction queue, giving you full control.

🎨 Enhanced User Interface (Recent Upgrade!)

  • Dynamic & Engaging: Animated message bubbles and a visually appealing design with modern gradients.
  • Crystal-Clear Code Formatting: Improved readability for technical information.
  • User-Friendly Interactions: Easy message copying and categorized prompt suggestions to guide your exploration.
  • Responsive Design: Smooth experience across all devices.

🛡️ Unprecedented Robustness (Recent Upgrade!)

  • Graceful Error Handling: Advanced error boundaries and try-catch blocks prevent UI freezes or crashes.
  • Fallback Mechanisms: The UI gracefully degrades if optional dependencies (like animation libraries) fail to load, ensuring core functionality remains.
  • Stable Component Architecture: Refactored key components (ChatMessages, SuggestedPromptsPanel, Chat page) for maximum stability and resilience.

🧠 AI Strategy

  • Multi-Model Approach: Leverages both general LLMs (like Llama or Gemini) for conversation and specialized Web3 models (like Flock) for precise function execution.
  • Customizable API Endpoints: Flexibility to configure and use your preferred AI model providers.

🏆 Why AxiosChat Stands Out

AxiosChat isn't just another chatbot. It's a thoughtfully engineered solution addressing a critical pain point in the Web3 ecosystem: accessibility.

Key Strength Why It Matters
Innovation in User Experience We've created an interface that is not only functional but delightful to use, with polished animations, intuitive categorized prompts, and thoughtful visual design.
Technical Excellence & Reliability Our investment in robust error handling and graceful degradation ensures a seamless user journey even when encountering unexpected issues - a maturity rarely seen in hackathon projects.
Real-World Problem Solving AxiosChat directly tackles the barriers to Web3 adoption, making complex technology understandable and usable for a broader audience.
Practical Application of AI We demonstrate a sophisticated, multi-layered AI strategy that intelligently combines different models for optimal performance in a specialized domain.
Clear Vision & Execution The project showcases a deep understanding of user needs and a strong ability to translate that understanding into a functional and impressive application.

🏗️ Architecture & Information Flow

AxiosChat employs a sophisticated dual-model AI architecture:

  1. Conversational LLM (Configurable: Llama, Gemini, etc.): Manages the primary user interaction, understands intent, and determines if a Web3-specific action is required.
  2. Specialized Web3 AI Model (Flock): If a Web3 action is needed, this model interprets the request to identify the precise blockchain function and its parameters.

This system intelligently differentiates between:

  • Read-only operations (e.g., checking a token balance), which can be executed quickly.
  • State-changing operations (e.g., sending tokens), which are routed to a secure transaction queue for explicit user approval.
graph TD;
    A[User Input in Chat UI] --> B{Conversational LLM};
    B -- Understands Intent --> C{Web3 Action Needed?};
    C -- No --> D[Generate Informational Response];
    C -- Yes --> E[Specialized Web3 AI Model];
    E -- Extracts Function & Args --> F{Action Type?};
    F -- Read-Only (e.g., getBalance) --> G[Execute & Display Result];
    F -- State-Changing (e.g., sendToken) --> H[Add to Transaction Queue];
    H --> I{User Approves/Rejects};
    I -- Approved --> J[Execute Secure Transaction];
    I -- Rejected --> K[Notify User of Cancellation];
    D --> L[Display in Chat UI];
    G --> L;
    J --> L;
    K --> L;
Loading

💻 Technical Stack Highlights

Category Technologies
Frontend React, TypeScript, Tailwind CSS, Shadcn UI
State Management React Hooks (useState, useEffect, useContext)
Web3 Interaction Wagmi, Ethers.js (via AI service)
AI Integration Custom service layer for interacting with LLMs (OpenAI, Llama) and specialized Web3 models (Flock)
UI Enhancements Framer Motion (with fallbacks), React Syntax Highlighter, date-fns
Error Handling Custom React Error Boundaries with graceful UI degradation

🚀 Getting Started

  1. Clone the Repository:

    git clone https://github.com/OkeyAmy/Axioschat.git # Replace with your actual repo URL
    cd Axioschat
  2. Install Dependencies:

    npm install

    This will install all required packages including UI enhancements like framer-motion, react-syntax-highlighter, and date-fns.

  3. Configure Environment Variables: Create a .env file in the root directory and populate it with your API keys:

    REACT_APP_OPENAI_API_KEY=your_openai_api_key
    REACT_APP_REPLICATE_API_KEY=your_replicate_api_key
    # Add other variables as needed
  4. Run the Development Server:

    npm run dev

    The application will be available at http://localhost:8081 or another port if specified.

🔮 Future Roadmap & Vision

  • Phase 1 (Achieved & Enhanced): Core conversational AI, Web3 function calling, robust UI, secure transaction handling, support for Ethereum.
  • Phase 2: Expansion to additional EVM chains (e.g., Polygon, BNB Chain, Arbitrum) and popular L2s.
  • Phase 3: Deeper DeFi integrations (e.g., interacting with specific lending protocols, yield aggregators via natural language), NFT management.
  • Phase 4: Browser extension for in-context Web3 assistance and a dedicated mobile application.

📄 License

This project is licensed under the MIT License.


Built with 💜 for the blockchain community

Report Bug · Request Feature

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published