cs-icon.svg

Notion

Notion is an all-in-one productivity and collaboration platform, combining note-taking, task management, databases, and project organization in a single, customizable space – ideal for both individual and team workflows.

The Notion connector enhances your Notion experience by enabling automated content management through creation, deletion, addition, and retrieval of data in your workspace via Automate. By integrating multiple tools in one space, it streamlines workflows for optimized productivity, seamless collaboration, and efficient knowledge management.

This guide provides step-by-step instructions for using the Notion Automate connector. For instance, you can set up automation with a Contentstack Entry Trigger and Notion’s "Create a Page" action. When a user publishes an entry in a selected environment, a new page with entry details is automatically generated in your Notion workspace.

Prerequisites

Connect your Notion Account to Automate

Perform the following steps to set up the Notion account:

  1. Click Configure Action Step from the left navigation panel.
  2. Click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the Notion connector.Select_Connector.png
  4. Under Choose an Action tab, select any one action from the list. Here, we are selecting the Create a Page action.Create_Page_Action.png
  5. On the Configure Action page, click the + Add New Account button to add your Notion account.Create_Page_Add_Account.png
  6. Select the permission level needed to access your pages in Notion, then click the Authorize button.
    Authorize_Button.png
  7. Log in to your Notion workspace using your email ID. You can also opt for Single Sign-On if preferred.Login_Notion.png
  8. In the pop-up, go to the top-right corner, select your workspace, and click the Select Pages button.Select_Pages.png
  9. Pick the specific pages to grant Automate access to in your Notion workspace.Allow_Access.png
  10. Provide an Account Name and then click Save.

This sets up your Notion account for the Notion connector.

Set up the Notion Connector

Perform the following steps to set up the Notion action connector:

  1. From the left navigation panel, click Configure Action Step.
  2. Then, click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the Notion connector.Select_Connector.png
  4. Under Choose an Action, you will see these actions: Add Content to a Page, Create a Page, Delete a Database, Delete a Page, and Get Page Details.Select_Actions.png

Once done, you can go ahead and set up your Notion connector.

Action 1: Select the Add Content to a Page action

  1. Under Choose an Action tab, select the Add Content to a Page action.
  2. On the Add Content to a Page Configure Action page, enter the details given below:
    1. Click + Add New Account button to connect your Notion account as shown in the Connect your Notion Account to Automate step.
    2. Select a parent Page Name where you wish to add the content.
    3. In the Select Content Schema Type field, select the format for the content either Text or JSON.
    4. In the Text/JSON Content Type field, enter the content to be added. If you select JSON as the Content Schema Type, you can click the Template icon to fetch the predefined schema template for your page.

      Note: The Content Schema Type has a maximum character limit of 2000 characters.

      Select_Fields.png
    5. Optionally, enable the Show Optional Fields toggle button to select the Block Name. This ensures that the content is added to your page after the selected block.Select_Block.png
  3. Click Proceed.
  4. Check if the details are correct. If yes, click Test Action.Test_Action.png
  5. Once set, click Save and Exit.Save_Exit.png

Action 2: Select the Create a Page action

  1. Under Choose an Action tab, select the Create a Page action.
  2. On the Create a Page Content Configure Action page, enter the details given below:
    1. Click + Add New Account button to connect your Notion account as shown in the Connect your Notion Account to Automate step.
    2. Select the Parent Type for the new page. You can create the page within an existing parent page or database.Select_page_Database.png

      When Selecting Parent as Page

      1. In the Select Page Name field, select a parent page where the new page will be created. Enter a page title for the new page in the Page Title field.
        Select_Fields.png
      2. Optionally, enable the Show Optional Fields toggle button to view the following fields:
        1. In the Select Content Schema Type field, select the content format as either Text or JSON format.
        2. In the Text/JSON Content Type field, enter the content you wish to add. If you select JSON as the Content Schema Type, you can click the Template icon to fetch the predefined schema template for your page.

          Note: The Content Schema Type has a maximum character limit of 2000 characters.

        3. Enter the URLs for the Page Icon and Cover Image.
          Show_Optional_Fields.png

      When Selecting Parent as Database

      1. In the Select Database Name field, select an existing database where the new page is created.
      2. In the Database Properties field, enter the content for the appropriate database columns. Ensure the data is in JSON format or use the predefined template for your database.
        Select_Fields_Database.png
      3. Optionally, enable the Show Optional Fields toggle button to view the following fields:
        1. In the Select Content Schema Type field, select the content format as either Text or JSON.
        2. In the Text/JSON Content Type field, enter the content you wish to add.
        3. If you select JSON as the Content Schema Type, you can click the Template icon to fetch the predefined schema template for your database.

          Note: The Content Schema Type has a maximum character limit of 2000 characters.

        4. Enter the URLs for the Page Icon and Cover Image.
          Show_Optional_Fields_Database.png
    3. Click Proceed.
    4. Check if the details are correct. If yes, click Test Action.
      Test_Action.png
    5. Once set, click Save and Exit.
      Save_Exit_dATABASE.png

Action 3: Select the Delete a Database action

  1. Under Choose an Action tab, select the Delete a Database action.
  2. On the Delete a Database Configure Action page, enter the details given below:
    1. Click + Add New Account button to connect your Notion account as shown in the Connect your Notion Account to Automate step.
    2. Select a Database Name to delete.

      Warning: This action will permanently remove all the content within the database.

      Select_Fields.png
  3. Click Proceed.
  4. Check if the details are correct. If yes, click Test Action.
    Test_Action.png
  5. Once set, click Save and Exit.
    Save_Exit.png

Action 4: Select the Delete a Page action

  1. Under Choose an Action tab, select the Delete a Page action.
  2. On the Delete a Page Configure Action page, enter the details given below:
    1. Click + Add New Account button to connect your Notion account as shown in the Connect your Notion Account to Automate step.
    2. Select a Page Name to delete.

      Warning: This action will permanently remove all the content within the selected page.

      Select_Page_Name.png
  3. Click Proceed.
  4. Check if the details are correct. If yes, click Test Action.
    Test_Action.png
  5. Once set, click Save and Exit.Save_Exit.png

Action 5: Select the Get Page Details action

  1. Under Choose an Action tab, select the Get Page Details action.
  2. On the Get Page Details Configure Action page, enter the details given below:
    1. Click + Add New Account button to connect your Notion account as shown in the Connect your Notion Account to Automate step.
    2. Select a Page Name to fetch its details.
    3. Optionally, enable the Show Optional Fields toggle button to check the Include page content box. This retrieves details of all the child elements within the page.
      Select_Fields.png
  3. Click Proceed.
  4. Check if the details are correct. If yes, click Test Action.
    Test_Action.png
  5. Once set, click Save and Exit.
    Save_Exit.png

This sets the Notion connector.

Was this article helpful?
^