Hedera AI Agents

Plain-English AI chat to send HBAR, create tokens/NFTs, and use Hedera consensus services

Hedera AI Agents

Created At

ETHGlobal Buenos Aires

Project Description

Hedera AI Agents is a conversational AI-powered web application that enables users to perform blockchain operations on the Hedera network through natural language chat. Users can interact with either Claude (Anthropic) or Gemini (Google) AI agents to execute cryptocurrency transfers, create and manage tokens and NFTs, utilize the Hedera Consensus Service for immutable logging, and query account information—all without requiring any blockchain or coding knowledge. Built with Next.js, React, and TypeScript, the application bridges the gap between complex blockchain technology and everyday users by providing an intuitive chat interface that makes blockchain operations as simple as having a conversation.

Hedera AI Agents transforms blockchain interaction from technical and complex to conversational and simple. Instead of navigating complicated wallet interfaces, users chat naturally with AI agents (Claude or Gemini) to execute real blockchain transactions on Hedera—transferring cryptocurrency, creating tokens and NFTs, logging immutable data, and checking balances. It's blockchain made accessible for everyone, powered by cutting-edge AI.

How it's Made

How I Built Hedera AI Agents - Technical Details

I built this as a full-stack Next.js 16 application integrating two AI providers (Claude and Gemini) with the Hedera blockchain. The frontend uses React 19 with Tailwind CSS for a responsive chat interface, while Next.js API routes handle the middleware layer connecting AI models to blockchain operations.

AI Integration: I implemented dual AI agents using @anthropic-ai/sdk for Claude and @google/generative-ai for Gemini. Both use agentic loop patterns - the AI receives tool schemas, decides when to invoke blockchain operations, executes them, and generates natural language responses. The trickiest part was making them compatible with the same tool definitions since Claude uses tool-calling and Gemini uses function-calling with different schema requirements.

Particularly Hacky Solution: Gemini's API rejected Zod schemas with metadata properties like _def, ~standard, and _cached that LangChain tools include. I wrote a recursive schema sanitizer that strips these properties while preserving the JSON schema structure, making the tools compatible with both AI providers.

Hedera Integration: I used the hedera-agent-kit v3.4.0 which was a game-changer - it provides LangChain-compatible tools wrapping the official @hashgraph/sdk. This saved massive development time by offering pre-built plugins for account operations, token management, NFTs, and consensus service. I implemented a singleton pattern for the Hedera client to maintain one connection across the app, and configured AUTONOMOUS execution mode for instant transaction processing without approval workflows.

Architecture: User messages flow through the chat UI → API routes → AI agent (with Hedera tools) → blockchain execution → natural language response. I kept state management simple with React hooks, used TypeScript for type safety across tool inputs/outputs, and implemented optimistic UI updates for perceived performance. The entire system processes real blockchain transactions while maintaining a conversational UX that feels like chatting with a helpful assistant.

background image mobile

Join the mailing list

Get the latest news and updates