Inspiration
- As an entrepreneur, I don't always have time to read my emails. The unread emails sometimes are important and hard to spend only 1 min to go through those.
- Claude-2 has really long context window that can help here
What it does
- The app reads your unread emails and summarize for you (first with subjects using claude-instant, then with all content in the long context window using claude-2), and give you the action items to perform next
- If you have more question regarding the summary or action items, just ask it will know how to answer them (vector DB similarity search)
How we built it
- Use Gmail API to fetch the unread emails on demand
- Clean and extract the main information from the content of the emails
- Insert the email content as document into chroma DB
- When user asks summarization task
- first bring all the unread email subjects into claude-instant model for quick one sentence summarization
- then bring all the unread emails into claude-2 context for summrization, with prompt engineering to ensure the output listing the prioritized list and action items
- When user asks general question about the email, use vector similarity search to find the most relevant information and answer based on the context
Challenges we ran into
- Gmail response is hard to parse and there are many variants on how the data would organized based on different emails
- Email content is heavy HTML sometimes that really need cleanup before using, otherwise the content is too long to get good latency
Accomplishments that we're proud of
- Get everything working e2e with low latency (with reasonable Wi-Fi speed)
What we learned
- Gmail API is not very straightforward to work with
What's next for Inbox Zero x RealChar
- Publish it as a plugin "Gmail enabled" for RealChar app
Log in or sign up for Devpost to join the conversation.