Opal
A no-code Social AI Agent Launcher for Community Managers across Telegram & Discord
Problem Statement
Opal is the simplest way to create AI agents — smart automations that integrate with all your channels, from Telegram to Discord, to save you hours a week and help you grow your community.Core Purpose:Enables users to create and manage AI-powered social bots without codingProvides DeFi analytics and multi-platform bot managementFacilitates intelligent data processing and GraphQL query handlingBot Integration:Multi-platform support (Telegram, Discord)Automated bot configuration and managementReal-time transaction and wallet trackingAI-powered responses using gpt-4o-miniDeFi Features:Uniswap subgraph data analytics integrationReal-time trading volume and statisticsGraphQL query debugging and optimizationCoinbase AgentKit integration for USDC transactionsKey Features:No-code bot creation interfaceReal-time DeFi analytics dashboardMulti-platform bot managementAutomated polling and giveaway systemsAI-powered response generationUSDC transaction handlingAdvanced GraphQL query managementThe project combines social bot management, DeFi analytics, and AI capabilities into a unified platform, allowing users to create and manage sophisticated bots without coding knowledge while accessing real-time blockchain data and analytics.
Solution
Frontend Architecture:Built with React + TypeScript for type safetyUses shadcn/ui for a comprehensive component library (40+ components)State management: Combination of React Query for server state and Zustand for local stateForm handling through react-hook-form with Zod validationCustom wizard component for guided bot creationBackend Structure:Express.js with TypeScriptPostgreSQL with Drizzle ORM for type-safe database operationsSession management using express-session with PostgreSQL storeAuthentication via Passport.js with local strategyBot Platform Integration:Telegram integration using Telegraf frameworkMulti-bot orchestration through bot-manager.ts serviceReal-time updates via WebSocket (ws package)Scheduled tasks using node-scheduleDeFi & Blockchain Integration:Coinbase AgentKit integration for USDC transactionsDirect Uniswap subgraph querying via GraphQLCustom GraphQL query generation and optimizationEthers.js and Viem for blockchain interactionsNotable Technical Decisions:Query Management:Custom GraphQL query builder in graph-service.tsQuery caching and rate limiting implementationError handling and retry mechanismsBot Management:Modular bot architecture allowing easy platform expansionShared state management between botsDynamic bot configuration loadingSecurity & Performance:Rate limiting on API endpointsWebSocket connection poolingPrepared statements for SQL queriesSession security with secure cookiesDynamic Query Generation:Built a custom natural language to GraphQL query transformerUses pattern matching and template literals for query constructionHandles edge cases through fallback mechanismsBot State Management:Implemented a custom state machine for bot conversationsUses Redis-like in-memory storage with PostgreSQL backupState recovery mechanism for crashed botsUSDC Transaction Handling:Custom retry mechanism for failed transactionsGas estimation optimizationTransaction batching for multiple payoutsPartner Technologies & Benefits:Coinbase AgentKit & Base:Simplified USDC transaction handlingReduced implementation complexity for wallet operationsBuilt-in security featuresThe Graph Protocol:Real-time DeFi data accessReduced backend complexityOptimized query performanceTelegram Bot API:Rich message formattingInline keyboards and commandsWebhook support for real-time updatesThis architecture allows for scalable bot management, reliable DeFi operations, and a smooth user experience while maintaining code quality and type safety throughout the stack.
Hackathon
Agentic Ethereum
2025
Prizes
- 🏆
AgentKit Pool Prize
Coinbase Developer Platform
Contributors
- stevysmith
282 contributions