Power Agents is a collection of AI agents that you can spawn and chat with in an XMTP Group Chat. These agents are powered by Brian and leverage the CDP SDK to have their own wallets and funds to operate on behalf of the user. Each agent when it's created receives a poweragents.eth ENS subdomain, so that the user can easily remember it's handle when creating a new group chat, or when chatting with it outside of a group.
Within the group chat, you can chat with your agents and make them perform tasks. We developed the following Agents:
- conversational Brian Agent: chat with Brian to execute transaction via prompt such as "swap 10$ of eth to usdc on Base"
- recurring tx Agent: set a time interval and execute a transaction in recurring mode
- limit order Agent: sets a price threshold and automatically executes transaction when the condition is reached
- Defi Savings Agent: sets a risk/return preference and automatically finds a defi (multi-chain) protocol to invest in and invests on behalf of the user
This projects uses the following technologies:
- XMTP: for spawning new agents and for the message handling;
- Brian: for generating transactions from natural language prompts;
- CDP SDK: for managing MPC wallets for each agent;
- LayerZero: for managing cross-chain deposits on chains not supported by the CDP SDK;
- Polygon: the default chain of this project, alongside with Base;
- ENS: the main bot is connected to the poweragents.eth domain, all the new agents get a subdomain of it.
We also developed from scracth a nice way to spawn new XMTP bots inside the same repository at runtime without the need of re-deploying the project.