AWS Builder Center
Kite Agent: Building a Delightful, Zero-Cost AI Assistant on AWS Free Tier

Kite Agent: Building a Delightful, Zero-Cost AI Assistant on AWS Free Tier

Kite Agent is a production-ready AI assistant engineered for sub-second interactions and deployed entirely on the AWS Free Tier for $0.00/month. Powered by React 19 and Gemini 3.8-flash, it delivers a delightful experience featuring real-time streaming, transparent reasoning, and proactive error recovery. Using serverless primitives like ARM64 Lambda, API Gateway, CloudFront, and DynamoDB, Kite ensures enterprise-grade scalability while safely avoiding hidden billing traps.

When building modern AI applications, developers often face a difficult choice: sacrifice user experience for simple infrastructure, or build a beautiful, responsive agent that accrues complex Kubernetes overhead and unexpected cloud bills.
I built Kite Agent to prove that you don't have to compromise. Kite is a full-stack, production-grade conversational AI agent engineered for two things: sub-second human-agent interaction, and turnkey deployment strictly within the AWS Free Tier ($0.00/month).
Here is a breakdown of what Kite does, how I built it using AWS serverless primitives, and the specific details that make it a joy to use.

What and Who

What it is: Kite Agent is a highly responsive AI assistant featuring live streaming, robust error recovery, and context-aware follow-ups. It connects a modern React 19 frontend to the Google Gemini (gemini-3.8-flash) reasoning engine via an Express backend. The entire application is packaged with Infrastructure as Code (AWS CDK in TypeScript) to deploy seamlessly onto AWS serverless infrastructure.
Who it is for:
  • Startup Founders & Prototypers: Anyone looking to ship an interactive AI assistant with enterprise-grade latency and high availability, completely protected by verified $0.00/month AWS hosting costs.
  • Full-Stack & Cloud Developers: Builders who want to jumpstart an AI project with production-ready IaC without setting up idle servers.
  • Students & Solutions Architects: Enthusiasts eager to learn best practices for avoiding common AWS billing traps (like NAT Gateways or Secrets Manager) while optimizing ARM64 Graviton2 memory tuning.

The Delightful Detail: Transparency and Proactive Empathy

The one thing I focused on to make Kite truly enjoyable to use was eliminating conversational friction and black-box anxiety.
Most AI agents leave users staring at a loading spinner. With Kite, I implemented Live Streaming and Thought Stream Transparency. Using Server-Sent Events (SSE), the agent streams its thought process in real-time. I added an expandable "Thought Process Accordion" that shows the user exactly what the agent is doing under the hood (e.g., "Checking AWS Free Tier constraints... Reviewing IAM policies... Synthesizing answer").
I know this approach worked because it immediately changes the dynamic from a transactional query to a collaborative partnership. Users aren't left wondering if the app froze; they feel involved in the reasoning process.
To complement this, I engineered a Proactive Error Recovery system. Instead of throwing cryptic  500 Internal Error  codes during network glitches or token limit hits, Kite displays a friendly recovery box explaining the situation in plain English, preserves the user's prompt, and offers a 1-click retry. Adding customizable personas (like "Kite Architect" for cloud governance) and zero-dependency Web Audio synthesizer micro-chimes upon completion elevated the interaction from a simple chat interface to a premium, delightful product experience.

How I Built It

To achieve sub-second latency while strictly adhering to the AWS Always Free and 12-Month Free Tier limits, I designed a 100% serverless architecture driven by AWS Cloud Development Kit (CDK).

The Technology Stack

  • Client Layer: React 19 (SPA), TypeScript, and Tailwind CSS v4.
  • Backend Layer: Express API serving the  @google/genai  SDK.
  • Infrastructure as Code: AWS CDK v2 (TypeScript).

AWS Services Utilized

  1. Amazon CloudFront & Amazon S3: The React SPA is bundled and stored in an S3 bucket (protected by Origin Access Control). CloudFront serves as the global CDN, caching assets at the edge to ensure instant load times anywhere in the world.
  1. Amazon API Gateway (HTTP API): I utilized an HTTP API instead of a REST API. It routes  /api/*  traffic to Lambda with built-in CORS, saving 70% in data costs after the free tier and reducing latency.
  1. AWS Lambda (ARM64 Graviton2): The core reasoning engine and API routing are executed in a Node.js 22 runtime. By running on Graviton2 with 256MB memory, cold-start latencies remain under 200ms. It easily handles 25,000 monthly requests while only consuming ~2.5% of the 1,000,000 free monthly requests.
  1. Amazon DynamoDB: Conversation history and session memory are stored here using  PAY_PER_REQUEST  billing. An automated TTL (Time to Live) attribute automatically cleans up old conversations.
  1. AWS Systems Manager (SSM) Parameter Store: To avoid the $0.40/secret/month charge of AWS Secrets Manager, I used SSM Parameter Store ( SecureString ) to hold the Gemini API Key. Lambda reads this key securely via least-privilege IAM policies at zero cost.
By keeping the Lambda function in default serverless mode (avoiding VPC NAT Gateway charges) and capping CloudWatch log retention to 7 days, Kite safely guards against the most common AWS billing traps.

Proof It Works

See Kite Agent in action! You can explore the sub-second streaming, the Thought Process Accordion, and the Free Tier architecture breakdown below:
Building on AWS doesn't have to be expensive to be exceptional. Kite proves that by pairing human-centered UX design with carefully selected AWS Free Tier primitives, we can build agents that users love.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article