This tool estimates recipe titles and categories with OpenAI, which gets recipe descriptions from the particular notion database, and then estimates the title and category, and updates the notion pages.
rbenv install $(cat .ruby-version)
bundle install
export OPENAI_APY_KEY=xxx
export NOTION_API_TOKEN=xxx
export NOTION_DATABASE_ID=xxx
export OPENAI_MODEL_NAME=gpt-4-turbo-preview
You need to create Notion's integration to get NOTION_API_TOKEN
.
ruby main.rb
You can see like this: