Integration between ChatGPT and Notion. The main idea of this repo is to enhance Notion Clipper plugin with auto-tagging based on the web page summary.
Steps:
- User saves URL via Notion Clipper plugin.
- Entry is created in the user's Notion database.
- Zapier webhook (on database entry created) is triggered.
- Zapier sends webhook payload to the Google function.
- Google function sends prompts to ChatGPT.
- ChatGPT generates tags.
- Google function updates the database entry with auto-generated tags.
- Python 3.10,
pip
- A Notion account and API key
- An OpenAI API key
- Google Cloud project with billing account
- Make sure your Notion database has these properties: Tags and Category. Category is a predefined set of tags, Tags is a dynamic set of tags created for each web page by GPT model. Example:
- Connect https://cloud.google.com/functions and https://cloud.google.com/build to your project
- Place you API keys for OpenAI and Notion into https://cloud.google.com/secret-manager
- Download and setup
gcloud
for you project - Run
gcloud builds submit --config cloudbuild.yaml
to deploy this function to Cloud - Install Notion database poller (e.g. Zapier) and connect it to your google function trigger.