This project integrates with the Notion API to retrieve and process text blocks from a Notion database using Notion API.
It provides functionality to extract textual content from various Notion block types.
Using the page content is then computes a status using Open AI API.
It then updates the status in the Notion DB using Notion API.
demochatgpt.mp4
- Notion Integration: Direct interaction with the Notion API to fetch block details.
- Text Extraction: Extracts and processes text from various Notion block types:
- Paragraphs
- Headings (Levels 1-3)
- Bulleted List Items
- Numbered List Items
- To-Do Items
- Toggle Blocks
- Code Blocks
- ChatGPT Status Computation: After extracting the text, the application processes the content through a ChatGPT prompt to compute a status.
- Clone the repository:
$ git clone <repository-url>
- Install the required dependencies:
$ npm install
- Add secrets to env variables:
- Rename
.env.example
in.env
- Add secrets shared in Dashlane
$ npm start