4.2 KiB
import Admonition from "@theme/Admonition";
Setting up a Notion App
To use Notion components in Langflow, you first need to create a Notion integration and configure it with the necessary capabilities. This guide will walk you through the process of setting up a Notion integration and granting it access to your Notion databases.
Prerequisites
- A Notion account with access to the workspace where you want to use the integration.
- Admin permissions in the Notion workspace to create and manage integrations.
Step 1: Create a Notion Integration
- Go to the Notion Integrations page.
- Click on the "New integration" button.
- Give your integration a name and select the workspace where you want to use it.
- Click "Submit" to create the integration.
Step 2: Configure Integration Capabilities
After creating the integration, you need to configure its capabilities to define what actions it can perform and what data it can access.
- In the integration settings page, go to the Capabilities tab.
- Enable the required capabilities for your integration. For example:
- If your integration needs to read data from Notion, enable the "Read content" capability.
- If your integration needs to create new content in Notion, enable the "Insert content" capability.
- If your integration needs to update existing content in Notion, enable the "Update content" capability.
- Configure the user information access level based on your integration's requirements.
- Save the changes.
Step 3: Obtain Integration Token
To authenticate your integration with Notion, you need to obtain an integration token.
- In the integration settings page, go to the "Secrets" tab.
- Copy the "Internal Integration Token" value. This token will be used to authenticate your integration with Notion.
Step 4: Grant Integration Access to Notion Databases
For your integration to interact with Notion databases, you need to grant it access to the specific databases it will be working with.
- Open the Notion database that you want your integration to access.
- Click on the "Share" button in the top-right corner of the page.
- In the "Invite" section, select your integration from the list.
- Click "Invite" to grant the integration access to the database.
Using Notion Components in Langflow
Once you have set up your Notion integration and granted it access to the required databases, you can start using the Notion components in Langflow.
Langflow provides the following Notion components:
- List Pages: Retrieves a list of pages from a Notion database.
- List Database Properties: Retrieves the properties of a Notion database.
- Add Page Content: Adds content to a Notion page.
- List Users: Retrieves a list of users with access to a Notion workspace.
- Update Property: Updates the value of a property in a Notion page.
Refer to the individual component documentation for more details on how to use each component in your Langflow flows.
Additional Resources
If you encounter any issues or have questions, please reach out to our support team or consult the Langflow community forums.