https://github.com/gabryxx7/notion-master-script
A script manager for Notion API. Attach ONE single script to each of your database and then configure it according to your needs :)
https://github.com/gabryxx7/notion-master-script
javascript nodejs notion-api notion-automation notion-database
Last synced: 15 days ago
JSON representation
A script manager for Notion API. Attach ONE single script to each of your database and then configure it according to your needs :)
- Host: GitHub
- URL: https://github.com/gabryxx7/notion-master-script
- Owner: Gabryxx7
- Created: 2022-05-01T05:03:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T02:45:43.000Z (over 2 years ago)
- Last Synced: 2025-03-17T21:45:29.501Z (about 1 year ago)
- Topics: javascript, nodejs, notion-api, notion-automation, notion-database
- Language: JavaScript
- Homepage:
- Size: 1.16 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Integration: Notion to Email

## About the Integration
This Notion integration sends an email whenever the Status of a page in a database is updated. This sample was built using [this database template](https://www.notion.com/5b593126d3eb401db62c83cbe362d2d5?v=a44397b3675545f389a6f28282c402ae) and emails are sent using [SendGrid's API](https://sendgrid.com).
## Running Locally
### 1. Setup your local project
```zsh
# Clone this repository locally
git clone https://github.com/makenotion/notion-sdk-js.git
# Switch into this project
cd notion-sdk-js/examples/database-update-send-email
# Install the dependencies
npm install
```
### 2. Set your environment variables in a `.env` file
```zsh
NOTION_KEY=
SENDGRID_KEY=
NOTION_DATABASE_ID=
EMAIL_TO_FIELD=
EMAIL_FROM_FIELD=
```
You can create your Notion API key [here](https://www.notion.com/my-integrations).
You can create your SendGrid API key [here](https://signup.sendgrid.com).
To create a Notion database that will work with this example, duplicate [this template](https://www.notion.com/5b593126d3eb401db62c83cbe362d2d5?v=a44397b3675545f389a6f28282c402ae).
### 3. Run code
```zsh
node index.js
```