Chrome extension for creating custom Smart Replies in Gmail
Gmail has a feature called "Smart Reply," where users can select from a list of recommended responses when replying to an email. But Gmail doesn't allow you to create your own smart replies. Smarter Reply for Gmail is a Chrome extension which does let you create custom replies, and will learn to recommend the right reply for a given email.
You can download the extension on the Chrome web store. Or you can install the development version of the extension by cloning the repo, navigating to chrome://extensions/, selecting "Load Unpacked" in the top-left corner, and uploading the repo.
Before using Smarter Reply, go to your Gmail settings and enable Smart Compose. It is usually enabled by default.
To create a Smarter Reply, open an email that already has smart replies. Click the "+" button and you should see a prompt for creating a new smart reply. Enter the title and body of your message and then click "Create."
To use your Smarter Reply, simply click it as you would a regular smart reply. An email draft should be created and autofilled with your smart reply.
To delete a Smarter Reply, click the "-" button and then select the Smarter Reply(ies) that you would like to delete. Then click the "-" button again.
Smarter Reply is written in pure Javascript and has no dependencies. The event loop is pretty straightforward:
background.js
) detects when a user opens an email and sends a signal to the content script (content.js
)* Smarter Replies are recommended by a unigram model, which calculates the similarity of the received email to the set of emails associated with each Smart Reply. Here's how it works: