Inspiration
Nowadays, even with powerful AI tools like ChatGPT, users still spend extra time copying and pasting content multiple times to create a satisfactory email. We thought it would be amazing to customize these commonly used features into a browser extension, enabling users to complete their email tasks with just a few clicks—all on the same page.
What it Does
- Auto-Generate Subject Lines: Craft concise, relevant subject lines effortlessly, ensuring every email grabs attention. Provides 3 options for users to choose from.
- Auto-Reply: Generate thoughtful, context-aware replies instantly, helping users respond faster while maintaining a personal touch.
- Auto-Write Emails: Compose complete, tailored emails based on user instructions, ideal for professionals managing multiple tasks.
- Polish Text: Refine email content for clarity, tone, and professionalism, leaving a lasting impression.
- Summarize Emails: Transform lengthy emails into clear, concise summaries, helping users quickly grasp key information.
How We Built It
Our extension is written in JavaScript and built using Webpack. It leverages Gemini Nano's Prompt API, where we customized prompts to match each feature's goal. These prompts are encapsulated as buttons, enabling users to simply click and achieve their desired tasks.
Challenges We Faced
- Customizing Prompts: It was challenging to craft effective prompts. We had to iterate through multiple sample inputs to create prompts that generated satisfactory results. Additionally, the raw output often needed cleaning before being presented to users.
- Error Handling: As the Prompt API is still in the testing phase, errors like "Untested language" were common. We handled this by providing users with clear error messages such as "AI model is not available for now. Please try again later," and added detailed instructions for crafting good inputs.
- UI Integration: Embedding buttons directly on Gmail and Outlook pages was tricky. Our goal was to provide easy-to-use features without interfering with the original page functionality. Through extensive end-to-end testing, we ensured compatibility and independent functionality for each feature.
Accomplishments We're Proud Of
- Seamless Integration: Works natively within Gmail and Outlook, offering a consistent, intuitive experience with built-in buttons for effortless access.
- AI-Optimized Assistance: Pre-set prompts and smart suggestions simplify tasks, enabling users to get started quickly and efficiently.
- User-Centric Design: A clean, thoughtfully designed interface boosts engagement and productivity for all users.
What We Learned
- How to customize AI prompts effectively.
- How to build extensions that integrate seamlessly into existing web pages.
- How to utilize built-in AI APIs for intelligent assistance.
What's Next for EmailPilot
- Platform Expansion: Currently, EmailPilot is built for Gmail and Outlook as they are the most widely used platforms. Based on user feedback, we plan to extend support to other email services.
- User Customization: While the extension is usable without signing in, we are exploring the option to allow users to sign in. This would enable features like personal shortcut customization, saving user-defined prompts, and more.
Built With
- babel
- css
- gemininano
- html
- javascript
- promptapi
- webpack
Log in or sign up for Devpost to join the conversation.