Skip to content

Notion & ChatGPT integration to auto-tag and categorise web pages

Notifications You must be signed in to change notification settings

Praytic/chatgpt-notion-auto-tagging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Build

ChatGPT-Notion-Auto-Tagging

Screenshot 2023-03-23 at 11 55 42 PM

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:

  1. User saves URL via Notion Clipper plugin.
  2. Entry is created in the user's Notion database.
  3. Zapier webhook (on database entry created) is triggered.
  4. Zapier sends webhook payload to the Google function.
  5. Google function sends prompts to ChatGPT.
  6. ChatGPT generates tags.
  7. Google function updates the database entry with auto-generated tags.

Getting Started

Prerequisites

  • Python 3.10, pip
  • A Notion account and API key
  • An OpenAI API key
  • Google Cloud project with billing account

Installation

  1. 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:

Screenshot 2023-03-23 at 11 34 34 PM

  1. Connect https://cloud.google.com/functions and https://cloud.google.com/build to your project
  2. Place you API keys for OpenAI and Notion into https://cloud.google.com/secret-manager
  3. Download and setup gcloud for you project
  4. Run gcloud builds submit --config cloudbuild.yaml to deploy this function to Cloud
  5. Install Notion database poller (e.g. Zapier) and connect it to your google function trigger.

About

Notion & ChatGPT integration to auto-tag and categorise web pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages