This project integrates Notion, OpenAI's GPT-4, and Slack to create a real-time, context-aware knowledge bot. Users can ask questions in Slack, and the bot will provide answers based on the content stored in a Notion page.
- Python 3.x
- Notion Account
- Slack Workspace
- OpenAI API key
Create a .env
file in your root directory and add the following:
SLACK_APP_TOKEN=your_slack_app_token
SLACK_BOT_TOKEN=your_slack_bot_token
NOTION_API_KEY=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_id
OPENAI_API_KEY=your_openai_api_key
-
Clone the repository:
git clone https://github.com/hollaugo/notion-ai-knowledge-.git
-
Navigate to the project directory:
cd notion-ai-knowledge-
-
Install the required packages:
pip install -r requirements.txt
Run the following command to start the bot:
python app.py
openai
requests
python-dotenv
slack_bolt