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. |
Note: AI functionality may be limited on the live demo due to API key constraints.
- 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.
- 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.
- 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.
- 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.
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. |
AxiosChat employs a sophisticated dual-model AI architecture:
- Conversational LLM (Configurable: Llama, Gemini, etc.): Manages the primary user interaction, understands intent, and determines if a Web3-specific action is required.
- 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;
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 |
-
Clone the Repository:
git clone https://github.com/OkeyAmy/Axioschat.git # Replace with your actual repo URL cd Axioschat
-
Install Dependencies:
npm install
This will install all required packages including UI enhancements like
framer-motion
,react-syntax-highlighter
, anddate-fns
. -
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
-
Run the Development Server:
npm run dev
The application will be available at
http://localhost:8081
or another port if specified.
- 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.
This project is licensed under the MIT License.
Built with 💜 for the blockchain community