AI bot that performs pre-work on Notion TODOs by analyzing tasks and providing relevant links, information, or clarifying questions.
- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env
# Edit .env with your API keys-
Create a Notion integration:
- Go to https://www.notion.so/my-integrations
- Create new integration
- Copy the token to your .env file
- Share your TODO page with the integration
-
Get OpenAI API key:
- Go to https://platform.openai.com/api-keys
- Create new key
- Add to your .env file
npm run build
npm start <notion-page-url>Or for development:
npm run dev <notion-page-url>- Extracts checkbox blocks from the Notion page
- Analyzes each TODO with AI to determine category and needs
- Generates appropriate responses:
- Account tasks: Finds login pages
- Booking tasks: Provides booking links
- Research tasks: Creates search links
- Unclear tasks: Asks clarifying questions
- Adds responses as child blocks under each TODO