Notion
How to build a Notion Integration
- Sign up for a Notion account, if you don't have one already.
- Create a new Integration by going to the Notion API page and clicking on "My integrations" in the top-right corner of the page.
- Give your integration a name and click on "Create Integration".
- On the integration page, click on "Add a new integration".
- Select "Internal Integration" and click "Submit".
- On the next page, you will see your "Integration Token". Copy this token as you will need it later.
- Grant your integration access to a database by sharing the database with your integration. To do this, go to the database you want to use with your bot, click on the three-dot menu, and select "Share".
- In the "Connections" field, navigate to "Add connections", find your integration and select it from the list.
- Select the appropriate permissions for your integration and click on "Confirm".
Note: A Notion database must be created using the "New page" option, not the "Add a page" option.
Configuration
After creating a new account, you will have the Integration Token
and Notion database ID
.
Next, place these keys in the environment or configuration file:
WAYBACK_NOTION_TOKEN
: Notion integration token.WAYBACK_NOTION_DATABASE_ID
: Notion database ID for archiving results.