Email Service

Loading...
Screenshot 2
Loading...
Screenshot 3

Tools and Technologies

    Next.jsCloudflare AI AgentsTailwind CSSResendOpenAI APISupabase
Project Description

This project is an AI-powered email service built with Cloudflare Workers and the Cloudflare AI Agents SDK, designed to streamline legal outreach campaigns. It automatically generates and sends personalized emails using GPT-4, based on user profile data stored in Supabase. The system is fully serverless, scalable, and structured around specialized agents, each responsible for fetching data, processing email content, or dispatching messages.

Behind the scenes, it uses Cloudflare Queues and Durable Objects to batch and manage parallel workloads efficiently while enforcing rate and token limits. The service also tracks key metrics, including number of emails sent, failed deliveries, and tokens consumed, giving legal teams transparency into both performance and cost.