Just chat money. AI-powered, chain-abstracted treasury management — Discord-native and autonomous.
PigAI Bank turns crypto treasury management into a conversation. Instead of juggling wallets, bridges, and block explorers across multiple chains, you just chat — in Discord — and the AI handles the rest. Built on an autonomous agent loop (Monitor → Decide → Execute → Report), PigAI Bank monitors positions across 11 chains using Circle Gateway for unified USDC balances with sub-500ms cross-chain transfers, tracks prices via Uniswap v4 subgraph data, and executes swaps through a dual-path architecture: Uniswap for same-chain, LI.FI for cross-chain operations and multi-step DeFi via Composer. Every transaction requires human confirmation through Discord, keeping you in control while the AI handles the operational complexity. A live React dashboard at hackmoney2026.smartpiggies.com provides analytics, execution history, alert management, and wallet connectivity via RainbowKit — giving you full visibility alongside the conversational interface. Automated daily reports and price alerts keep your team informed without lifting a finger.
PigAI Bank is built on n8n workflow automation as the orchestration backbone, self-hosted on a Hostinger VPS. The agent loop is implemented as a set of interconnected n8n workflows — Daily Report (cron), Price Monitor (5-min interval), Swap Executor (webhook + Discord confirmation), Get Balance (webhook), Weekly Summary, and an Error Handler. This gave us a visual, modular way to build autonomous agent behavior without a monolithic codebase. The data layer runs on self-hosted Appwrite, handling auth and storing price_history, executions, alerts, and balances collections. The dashboard is a React + Vite + Tailwind + shadcn/ui app deployed to Appwrite Sites with a custom domain and SSL via AWS Route 53 DNS. For partner integrations: Circle Gateway provides chain-abstracted USDC across Ethereum, Arbitrum, and Base — we query unified balances in a single call instead of polling each chain individually. LI.FI powers cross-chain swaps and multi-step DeFi operations through their Composer endpoint. Uniswap v4 subgraph gives us real-time price data and handles same-chain swaps. Discord webhooks serve as both the notification layer and the human-in-the-loop confirmation system for transaction approvals. One notably hacky piece: the entire agent architecture is "just" n8n workflows chained together with webhooks and cron triggers, but it achieves genuine autonomous behavior — monitoring, deciding, executing, and reporting — without writing a traditional agent framework. RainbowKit handles wallet connectivity for the deposit flow on the dashboard side.

