dialog.fi

Dialog.Fi - AI-powered DeFi wallet with chat interface for balances, swaps, transfers & approvals.

dialog.fi

Created At

ETHGlobal New Delhi

Project Description

Dialog.Fi - AI DeFi Pilot A minimalistic wallet utility app with ChatGPT-style interface for managing crypto tokens and DeFi operations using natural language commands. 🤖 Natural Language Processing Parse natural language commands for wallet operations Support for balance queries, token approvals, transfers, and swaps Intelligent intent detection with confirmation flows 💼 Wallet Integration Real wallet connection using wagmi (MetaMask, WalletConnect, Coinbase Wallet) Multi-network support (Ethereum, Polygon, Sepolia testnet) Real-time balance and token information Automatic wallet detection and installation prompts 💬 Chat Interface ChatGPT-style conversation UI Interactive transaction cards with confirmation flows Real-time status updates and transaction tracking 🛡️ Safety Features Mock mode for safe testing without real transactions Clear transaction previews before confirmation Comprehensive error handling and user feedback

How it's Made

Dialog.Fi - AI DeFi Pilot is built as a minimalistic wallet utility app with a ChatGPT-style interface that lets users interact with their crypto wallet and perform DeFi operations using natural language commands.

🏗 Tech Stack & Architecture Frontend: React + TypeScript + Vite for a modern, fast development workflow Styling: Tailwind CSS with shadcn/ui components for a clean, minimal UI Wallet Integration: wagmi + viem for MetaMask, WalletConnect, Coinbase Wallet connections State Management: React hooks with TypeScript for predictable state handling NLP Parsing: Custom natural language parser (with AI model support) to interpret commands like swaps, approvals, transfers, and balance queries AI Model Testing: Used Gemma-3 to test command parsing and intent extraction, though integration is still in progress and some issues remain

💡 Features Implemented Natural Language Processing: Parse commands like “Swap 10 USDC for ETH” or “Show my ETH balance” Wallet Integration: Detect installed wallets, connect to user accounts, support multiple networks (Ethereum, Polygon, Sepolia testnet) Chat Interface: A conversational UI that presents parsed commands, previews transactions, and asks for confirmation Mock Mode: Safe development/testing mode that simulates wallet activity and blockchain responses without broadcasting real transactions Safety & Feedback: Clear transaction previews, mock/fake transaction hashes, comprehensive error handling

⚙️ Development Workflow Setup: Built using Bun.js + npm, with environment variables for Infura, Alchemy, and WalletConnect Proxy for APIs: 1inch API calls are proxied through Vite dev server to avoid CORS issues Mock Mode First: By default, runs in mock mode (VITE_MOCK_MODE=true) to simulate wallet and token behavior Real Blockchain Integration: Toggle mock mode off, configure providers in useWallet.ts, and test on Sepolia before mainnet

🚀 Deployment Production build generated with bun run build Preview locally with bun run preview Deployed on Netlify, with environment variables securely configured

🔮 Roadmap Real wallet & DEX integrations (Uniswap V3, 1inch) Price feeds (Pyth Network, Chainlink) Transaction history & portfolio tracking Multi-chain support (Arbitrum, Optimism, Polygon) Advanced DeFi features (liquidity provision, yield farming, MEV protection)

background image mobile

Join the mailing list

Get the latest news and updates