Inspiration

Over the winter break, I got to see how many emails my dad wrote for his job. I noticed that a lot of his emails were repetitive, and in my opinion, could be drafted with AI if given enough context about you.

For myself, my inbox is always cluttered with emails I don't want to see. Gmail does a good job already of hiding blatant spam from you, but it doesn't do much other than that.

What it does

The way people today use email is a waste of time. Ergo tries to save you time by drafting emails for you, so that all you have to do is read, and click send. For emails that require an opinion or have ambiguities, Ergo creates multiple drafts with place holders so that you can quickly pick one and send.

Ergo can also manage your inbox so that you only see what you want to see. On the automations page, you can tell Ergo what kinds of emails you want to archive and it will do it for you automatically in the background. No more email clutter.

How we built it

I built an LLM agent using the vercel-ai sdk to handle all incoming emails and handle them accordingly based on the personal context you decide to give Ergo about you. Ergo decides to take actions autonomously and then adds labels/drafts to emails using the Gmail API.

Web app was built with NextJs, Supabase, Drizzle ORM

Challenges we ran into

This project was difficult to complete solely because I had many ideas, but not enough time. I am a solo hacker, so it was difficult to stay focused and move fast.

I also wasted a lot of time trying to use an agent framework like LangGraph just to realize that it creates too many complexities for such a basic prototype.

Accomplishments that we're proud of

Building this prototype on my own in 24 hours

What we learned

Its better to keep your software simple, don't overcomplicate it with lots of frameworks and libraries.

What's next for Ergo

  1. Custom labels - Add custom instructions for how to create drafts for very specific emails. Custom actions can be taken on these labels like texting the user when there are important emails, or auto-forwarding certain emails to different people.
  2. Brief - Generate a brief of your emails for the day, view actions ergo took and quickly approve/deny them.
  3. Chat - Chat with your assistant that knows all of your emails. Perhaps useful for data extraction from past emails.

Built With

  • drizzleorm
  • gmail-api
  • nextjs
  • supabase
  • vercel-ai-sdk
Share this project:

Updates