Exploring On-Device AI with Gemini Nano.

Tushar Tiwari
2 min readJan 6, 2025

--

The world of AI is constantly evolving, and it’s more important than ever to stay informed about the latest developments. One area that’s particularly exciting is on-device AI, which offers numerous benefits over traditional cloud-based AI, including enhanced privacy, speed, and offline functionality. Recently, an innovative project called Email Revamp, a Chrome extension that leverages on-device AI to rewrite emails in various styles, has emerged as a practical application of this cutting-edge technology.

This tool was developed as part of Google Chrome Built-in AI Challenge.

Here’s a glimpse of what we’ll cover:

  • What is Email Revamp?
  • Technical Deep Dive: An inside look at the technology powering this innovation.
  • Challenges and Triumphs: A look at the development journey.
  • The Future of Email Revamp: Exploring potential future enhancements and its impact.
  • Key Takeaways: Understanding the broader implications of on-device AI.

What is Email Revamp?

Email Revamp is a Chrome extension that harnesses the power of on-device AI to help users rewrite email drafts in various styles, making communication more effective and adaptable. This innovative tool leverages the experimental Prompt API in Chrome Canary, allowing AI processing to occur directly on the user’s device. This ensures that your email content remains private and is never sent to a server.

The extension offers three distinct rewriting styles to cater to diverse communication needs:

  • Formal Business: Perfect for professional correspondence.
  • Casual: Ideal for friendly or informal emails.
  • Bullet Point/Concise: Ideal for quick, to-the-point messages.

Email Revamp utilizes a combination of web technologies including HTML, CSS, JavaScript, and the Chrome Extension API to deliver its functionality. The heart of its AI capabilities lies in prompt engineering. This technique involves crafting concise and effective prompts to guide the AI model in generating relevant and accurate email suggestions. This careful prompt design is crucial, especially given the token limitations of the Prompt API.

Challenges and Triumphs

Developing Email Revamp was not without its hurdles. The experimental nature of the Chrome AI API, coupled with the challenges of Chrome extension development, presented initial obstacles. However, through persistent experimentation, troubleshooting, and leveraging debugging tools in Chrome Canary, a seamless user experience was achieved. This journey underscores the power of community support and shared problem-solving in navigating the complexities of new technologies.

The Future of Email Revamp

The future of Email Revamp is bright, with plans to launch it on the Chrome Web Store, making it accessible to a wider audience. Gathering user feedback will play a crucial role in shaping future enhancements, which may include:

  • Adding more writing styles
  • Implementing advanced AI-powered rewrites
  • Supporting multiple language translations

Key Takeaways

Email Revamp stands as a testament to the growing potential of on-device AI. It demonstrates the ability of this technology to enhance productivity, streamline communication, and empower users with control over their data. By staying informed about such advancements, we can unlock new possibilities and shape the future of AI-powered solutions.

Resources:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Tushar Tiwari
Tushar Tiwari

Written by Tushar Tiwari

Finding insights from data | Fascinated by how Markets works.

No responses yet

Write a response