Trigger: Outsource onchain complexity to AI agents.
Main Goal
The purpose of Trigger is to create an agent-enabled crypto experience. For too long have we accepted a wallet-driven crypto UX, where in a world of public and callable smart contracts, better options exist.
What Problems Does Trigger Solve?
- Wallet UX Limitations:
Current wallet systems require manual effort and technical knowledge to execute on-chain transactions.
- Lack of Collaboration:
Group decisions and multi-user actions are cumbersome without a centralized collaboration system.
- On-Chain Complexity:
Managing assets, executing trades, or participating in DAOs requires expertise that many users lack.
How Trigger Works
- Single Chat:
- Command personal AI agents to:
- Handle token transfers.
- Monitor markets and execute trades.
- Automate repetitive on-chain tasks.
- Group Chat:
- Collaborate with AI agents from multiple users to:
- Split bills or manage shared treasuries.
- Propose and vote on DAO actions.
- Simplify multi-party decision-making.
Why Choose Trigger?
- AI-Driven Efficiency:
Agents autonomously interpret user intent and execute on-chain actions with minimal input.
- Collaboration Power:
Group chats enable decentralized collaboration with real-time AI coordination.
- Enhanced Usability:
Simplifies complex tasks, making crypto accessible for all users.
Security and Trust
- Trigger incorporates:
- Secure smart contract interactions.
- End-to-end encrypted communication.
- Full transparency in agent actions.
Vision
Trigger aims to democratize crypto by lowering the technical barriers and fostering collaboration. It’s not just a tool—it’s a transformative step towards an intelligent, user-friendly, and inclusive crypto ecosystem.
Project Architecture
Main Components
1. Trigger Chat App (Frontend)
- Tech Stack: React, Vite, TypeScript
- Features:
- Web3 wallet integration using RainbowKit 2 and Wagmi 2.
- Decentralized chat functionality implemented with Push Protocol.
- Modern UI with UnoCSS (Tailwind-like utility classes).
- File-based routing via vite-plugin-pages.
2. Trigger Agent (AI Backend)
- Tech Stack: Python Flask
- Capabilities:
- AI-powered interactions leveraging OpenAI.
- Multi-agent system for specialized task handling.
- Support for individual and group chat scenarios.
- Blockchain interaction through CDP SDK.
3. Trigger Relayer (Message Bridge)
- Tech Stack: Node.js with Express
- Responsibilities:
- Acts as a bridge between Push Protocol and the AI backend.
- Handles message encryption and decryption.
- Manages real-time communication streams.
Key Technologies & Integrations
Push Protocol Integration
- Provides a decentralized messaging layer.
- Implements:
- Group chat functionality.
- Encrypted messaging.
- Real-time message streaming.
Web3 Integration
- RainbowKit for wallet connection UI.
- Wagmi hooks for blockchain interactions.
- Supports:
- Multiple networks (mainnet and testnet).
- ERC20 token payments.
AI System Architecture
- Multi-Agent System:
- Specialized agents for different tasks.
- Blockchain-aware responses.
- Real-time message processing for chat scenarios.
Notable Technical Implementations
1. Message Routing System
- Enables three-way communication between:
- Frontend
- Relayer
- AI backend
- Features:
- Encrypted message handling.
- Real-time bidirectional communication.
- Push Protocol stream management.
2. State Management
- Custom Chat Context Provider:
- Synchronizes real-time messages.
- Manages wallet states.
- Coordinates group chats.
3. Smart Contract Integration
- Key Functionalities:
- TypeScript types generated for smart contract interactions.
- Integration with ERC20 payments.
- Support for multi-chain operations.
- Automated ABI handling.
Partner Technologies
1. Push Protocol
- Capabilities:
- Decentralized communication infrastructure.
- End-to-end encryption.
- Real-time message delivery.
- Group chat functionality.
2. OpenAI
- Capabilities:
- Powers AI agents.
- Provides natural language processing and context-aware responses.
- Coordinates multi-agent interactions.
3. CDP SDK
- Blockchain Interaction Layer:
- Handles smart contract deployment.
- Manages assets and transactions.
Unique Features
This project distinguishes itself by combining decentralized messaging, AI capabilities, and blockchain integration into a cohesive Web3 chat platform. It offers AI-assisted interactions for both individual and group scenarios while ensuring robust Web3 and messaging support.