Allows to send notes taken with reMarkable2 to a Notion database using a Gmail address, and Google Apps Script platform.
Anyone can set up this automation in a few minutes, and it's free to use.
You will need a Gmail account as we're going to use Google Apps Script to run the code needed for the sync to work. You can create one for free here.
👉 I have created a new dedicated account for this automation, but you can use an existing one if you like.
- Create two labels in Gmail, named
NotionToSync
&SyncedToNotion
. - Setup a filter to automatically tag as
NotionToSync
all incoming emails from[email protected]
.
- Setup integration by going in Settings & Members > Connexions > Develop or manage integrations:
- Click on
Add a new integration
. - Name it
reMarkable Integration
. - Give it
Insert Content
&No user information
permissions. - Finally copy the generated secret key and save it for later.
- Click on
- Create a new database to store your notes, or use an existing one1:
- Copy the database link, and retrieve the database ID from it, saving it for later.
Ex:
https://www.notion.so/acme/853bfb7d652e412b8d327af945b8cd7c?v=795767a84df041418092cc2c2b44863e
→853bfb7d652e412b8d327af945b8cd7c
- Copy the name of the primary title database property (usually called
Name
)
- Copy the database link, and retrieve the database ID from it, saving it for later.
Ex:
- On the database main page, go to the page settings by clicking the three dots on your window upper right corner, then click Add connections, and then search for
reMarkable Integration
and select it.
- Log in to Apps Script using the same Gmail account.
- Create a new project, and name it
reMarkable to Notion
. - In the Editor panel, create 3 files named
main
,utils
, andconfig
. Google will add the.gs
extension on its own - Copy the content of the files in scripts in their respective files and save.
- Replace the placeholders in
config.gs
by the values you copied earlier. - Finally, in the Triggers panel, click Add a trigger:
- Select
gmailToNotion
as the function to execute. - Setup the event source to be on a time basis
- Configure the interval you would like your script to poll emails in your inbox.
- Then save the new trigger
- Select
That's it! You can now test your automation by sending your notes by email!
1 If you are using an existing database, only the primary field (usually Name
) will be populated. You can extend this script to add your properties by providing the argument pageProperties
to the createPageInDatabase
function call.
// Any email tagged with this label will be processed
const INCOMING_LABEL = 'NotionToSync';
// Any processed email will have it's label updated with this one
const SYNCED_LABEL = 'SyncedToNotion';
// Notion secret key obtained by setting up a Notion integration
const NOTION_SECRET_KEY = '<Paste your secret key here>';
// Destination Notion Database ID to store new notes
const NOTION_DATABASE_ID = '<Paste the target notion database ID here>';
// Key of the primary database property used for the page name
const NOTION_DATABASE_NAME_KEY = 'Name';
See config.js