Skip to content

Page Content Viewer

This component lets you pull the text from a Notion page and use it in your Nappai workflows.
You only need to give it the page’s ID and a Notion integration token, and it will return the page’s content as plain text.

⚠️ DEPRECATION WARNING

This component is deprecated and will be removed in a future version of Nappai. Please migrate to the recommended alternative components.

How it Works

When you run the component, it sends a request to the Notion API to fetch the blocks that make up the page.
It then reads each block (paragraphs, headings, lists, images, etc.) and stitches the plain text together.
If the request fails, the component returns a clear error message so you can see what went wrong.

Inputs

Input Fields

  • Page ID: The unique identifier of the Notion page you want to read.
    Enter the ID exactly as it appears in the page’s URL.

Credential
This component requires a Notion API credential.

  1. In Nappai, go to the Credentials section and add a new Notion API credential.
  2. Provide the Notion Integration Token (you can create one in the Notion developer portal).
  3. In the component, select the credential you just created from the Credential dropdown.

Outputs

  • Data: The plain‑text content of the page, available for use in later steps.
  • Tool: A reusable tool that can be called by agents to fetch page content on demand.

Usage Example

  1. Add the component to your workflow.
  2. Set the Page ID to the ID of the page you want to read.
  3. Select the Notion API credential you created earlier.
  4. Run the workflow.
  5. The Data output will contain the page’s text, which you can feed into a summarizer, a chatbot, or any other downstream component.
  • NotionDirectoryLoader – Browse and list pages in a Notion workspace.
  • NotionDatabaseQuery – Retrieve rows from a Notion database.

Tips and Best Practices

  • Double‑check the Page ID; a typo will cause the component to return an error.
  • Keep your Notion integration token secret; never expose it in public scripts.
  • If you need to read many pages, consider using the NotionDirectoryLoader first to gather IDs automatically.

Security Considerations

  • The Notion integration token is a powerful credential. Store it securely in Nappai’s credential store and avoid sharing it.
  • The component only reads data; it does not modify or delete any Notion content.
  • If you encounter an error, review the error message for clues about permission issues or rate limits.