If you do not already have plugin developer access, please join the waitlist.
To install the required packages for this plugin, run the following command:
pip install -r requirements.txt
Modify the DATA_HOST parameter in app.py
with your actual domain name, for example:
DATA_HOST = "https://<YOUR_REPO>--<YOUR_OWNER>.repl.co"
Important: Please use your own HTTPS domain here.
Refer to domain-verification-and-security for more information.
Use TLS and HTTPS: All traffic with the plugin (e.g., fetching the ai-plugin.json file, the OpenAPI spec, API calls) must use TLS 1.2 or later on port 443 with a valid public certificate.
You can also modify your contact_email in /.well-known/ai-plugin.json
.
To run the plugin, enter the following command:
python app.py
Once the local server is running:
- Navigate to https://chat.openai.com.
- In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
- Select "Plugin store"
- Select "Develop your own plugin"
- Enter in
localhost:5003
since this is the URL the server is running on locally, then select "Find manifest file".
If you are using a VPN or want to run it on a server, I highly recommend trying replit. You can check the project's configuration on replit gpt-2-notion. You need to do the following:
- Copy this project from Github to your replit space
- Modify the
DATA_HOST
parameter in app.py with the HTTPS address of your current project. - open Chatgpt Plugin store,Enter the
replit address
since this is the URL the server is running on locally, then select "Find manifest file".
The plugin should now be installed and enabled! You can start with a question like "What is on my todo list" and then try adding something to it as well!
-
Create a Notion integration at my-integrations and record your Notion integrations key.
-
Create a database in Notion and link it to the integration. The database has three properties, Name: Type is Title, gpt: Type is Text, and Date: Type is Date
-
Find the database_id of your page.
-
During the conversation with GPT, when you need to save the conversation content to Notion, GPT will ask you to provide the integrations and database_id parameters. This operation only needs to be done once.
-
OK! From now on, when you say "Save to Notion" to GPT, it will automatically save the content.
If you run into issues or have questions building a plugin, please join OPENAI Developer community forum.