About the Project
Inspiration
The inspiration behind SmartDraft came from the daily struggle of drafting effective and time-sensitive emails. As students and professionals, we often found ourselves spending too much time on repetitive email tasks, like writing follow-ups, thank-you notes, or responses to inquiries. We wanted to create a tool that could speed up this process while ensuring clarity and professionalism, allowing users to focus on the content rather than the structure. That's how SmartDraft was born—a Chrome Extension designed to automate and simplify email writing using AI.
What We Learned
Throughout this project, we learned a great deal about:
- Integrating AI APIs: Understanding how to leverage the power of Chrome's built-in AI models, including the Write API and Rewrite API, to provide real-time suggestions and content generation.
- Building Chrome Extensions: Navigating the architecture of Chrome Extensions, including manifest files, background scripts, and the popup UI, allowed us to create a seamless user experience.
- User Experience Design: Focusing on building an intuitive interface where users could easily generate, refine, and rephrase content helped us appreciate the importance of UX in AI-based tools.
- Natural Language Processing (NLP): Learning about the capabilities of AI models in processing and generating human-like text was an eye-opener, especially in understanding how to tweak prompts for different results.
How We Built the Project
- Setup: We started by creating the Chrome Extension's basic structure, including the
manifest.json,popup.htmlfor the user interface, andpopup.jsfor handling interactions. - API Integration: Using JavaScript and
fetch, we integrated the Write API to generate email drafts based on user prompts and the Rewrite API to provide alternative phrasings or tone adjustments. - UI Design: The extension's popup includes a text area for input, buttons for generating drafts, refining selected text, and a dropdown for tone selection (e.g., formal, casual).
- Testing and Refining: We tested the extension across different email scenarios, making adjustments to improve the responsiveness and quality of the AI-generated content.
Challenges Faced
- Understanding API Capabilities: One of the initial challenges was understanding the scope of the Write API and Rewrite API, and figuring out how to tailor prompts to get the most relevant email drafts.
- Balancing Simplicity and Functionality: We wanted to keep the interface simple while offering enough flexibility for users to customize their email drafts. Striking this balance required multiple iterations of the UI.
- Real-Time Performance: Ensuring that the API responses were quick enough for a smooth user experience was crucial, especially for real-time email drafting during time-sensitive situations.
- Handling Diverse Writing Styles: Users have different preferences when it comes to tone and style, so ensuring that the rephrasing suggestions from the Rewrite API matched varied needs was a challenge.
Despite these challenges, building SmartDraft was a rewarding experience, and we believe it has the potential to become an essential tool for anyone looking to streamline their email communication.

Log in or sign up for Devpost to join the conversation.