Overview
Hera is a conversational AI barista on the Hedera testnet. You connect a HashPack wallet, chat to order from a nine-item menu, and approve a real HBAR transfer in your wallet. You then get a receipt with a HashScan link.
I built it alone for the Hedera AI Agents Bounty: a Python agent using the Hedera Agent Kit and LangGraph, a FastAPI WebSocket backend, and a React frontend that builds and signs the transaction through WalletConnect.
The challenge
A chat agent that can talk about buying something is easy. One that actually moves money is harder, because the agent runs on a server while the funds and the signing key sit in the customer's wallet. The agent has to ask for payment, wait for a human to approve it, and only then confirm the order.
The bounty also asked for real transactions, so nothing could be simulated.
The goal
Show an AI agent that completes a real purchase on Hedera without ever holding the customer's keys.
- 01Let a customer order in natural language from a fixed menu priced in HBAR.
- 02Pause the agent while the customer approves the transfer in HashPack.
- 03Send a genuine TransferTransaction on Hedera testnet for every order.
- 04Return a receipt with a HashScan link once the transaction is confirmed.
The barista agent
Hera is a LangGraph ReAct agent with a system prompt that keeps her in character as a barista. It runs on a Groq-hosted model and has four tools: read the menu, calculate an order total, check the customer's balance through the Hedera mirror node, and request payment.
Paying through the customer's wallet
When the customer confirms, the payment tool sends a pay message over the WebSocket and the backend waits on an asyncio event. The frontend builds a TransferTransaction with the Hedera SDK, and HashPack shows an approval popup through WalletConnect. Once the wallet returns a transaction ID, the frontend sends it back, the agent resumes and writes the receipt.
- 01The customer signs; the server never sees a private key.
- 02A balance check runs before the request so an underfunded wallet fails early.
01 / 03Payment confirmed receipt card
Frontend and deployment
The React app handles wallet connection, the chat UI, payment signing and a confetti and sound moment on success. The backend is deployed on Railway and the frontend on Vercel, with rewrites that proxy API calls. I also added support for a local Hedera network so the payment flow could be tested without testnet funds.
Tests
The repository includes pytest suites for the agent, tools and app, plus localnet integration tests and concurrent, stress and performance tests, with a virtual wallet helper to stand in for HashPack.
The outcome
Hera is live and takes real HBAR payments on Hedera testnet, with each order ending in a transaction anyone can open on HashScan. It demonstrates a safe pattern for agent commerce: the agent decides and asks, the human wallet signs.


