This app exports Readwise highlights from Notion to mem.ai using their APIs.
Unfortunately, there is still no official integration today, so you need to your own custom exporter like this one.
Please set up a Notion integration to Notion.
-
You need to create a custom integration. Copy the access token to
./.env
→NOTION_TOKEN
-
Open the Readwise database…
-
create a new select property with a name of
memai-sync-status
(or a custom one, you may define a different name asNOTION_SYNC_STATUS
in./env
) with a possible statusSYNCED
-
create a new text property with a name of
memai-sync-id
(or a custom one, you may define a different name asNOTION_SYNC_ID
in./env
) -
create a new date property with a name of
memai-last-sync
(or a custom one, you may define a different name asNOTION_LAST_SYNC
in./env
)
-
You need to create an API token.
Copy it to ./env
→ MEM_TOKEN
#required
NOTION_TOKEN=your Notion token
MEM_TOKEN=your mem.ai token
NOTION_DATABASE_ID=the Readwise database id
# optional
NOTION_SYNC_ID=database property name ?? memai-sync-id
NOTION_SYNC_STATUS=database property name ?? memai-sync-status
NOTION_LAST_SYNC=database property name ?? memai-last-sync
CRON_SCHEDULE=schedule of exporter-run ?? */15 * * * *
MAPPING_ARTICLES=convert 'Articles' to ?? article
MAPPING_BOOKS=convert 'Books' to ?? book
MAPPING_TWEETS=convert 'Tweets' to ?? tweet
MAPPING_PODCASTS=convert 'Podcasts' to ?? podcast
DEFAULT_TAGS=tags for each imported item ?? #readwise-import