This is a simple Notion Page Assistant that uses OpenAI's functions to create a Notion page.
It provides a chat-based interface where you can interact with the assistant. Simply enter your message in the chat input and press Enter. The assistant will respond with appropriate actions.
- You need to have Python installed on your machine. You can download it from here.
- You also need to install the
openai
andrequests
Python libraries. You can install them using pip:
pip install -r requirements.txt
- You need to have an OpenAI API key. You can get it from here.
- You also need a Notion API token and a Page ID. You can get them by following the instructions here.
- Please also check here for more information on how to create a Notion integration.
- To get the page ID, click on Share at the top right of your Notion page and copy the link. The page ID is the last part of the link. For example, if the link is
https://www.notion.so/Getting-Started-c51d744605e94cf9b2a74a9692338072
, the page ID isc51d744605e94cf9b2a74a9692338072
.
-
Clone this repository:
-
Navigate to the project directory:
cd openai-notion-page-creator
- Run the script:
streamlit run main.py
Enter your OpenAI API key, Notion API token, and Page ID in the appropriate fields and click on the Submit
button.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.