Extract Notion Database Properties
Overview:
The Extract Database Properties
block is designed to retrieve all properties and their types from a Notion database. This functionality is especially valuable when generating content using LLMs, as having clear property definitions enables the generation of accurate content shapes that can be directly integrated into your Notion database.
To run this block, you will first need to authenticate your Notion account with Keyflow. Navigate to your credentials page and connect your Notion.
Inputs & Outputs
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | database_id | string | The link or unique ID of your Notion database that you wish to extract properties from. |
output | properties_json | object | Returns a JSON object containing property names along with their corresponding field types in the database. |
output | raw_json_response | object | Provides the raw JSON response fetched from the Notion API, reflecting current database structure. |
The block outputs are variable for Read Notion Page because it depends on the
notion database and its specific properties. When setting the database_id
,
all relevant properties will be automatically included as separate handles for
direct connections to other blocks.
Use Cases
Consider how this block can enhance productivity:
- Content Generation Facilitation: By clearly defining the structure of user-generated databases, this tool allows LLMs to create tailored content that fits seamlessly within existing data frameworks.
- Dynamic Workflow Automation: Integrating with various APIs, users can automate workflows involving content updates or modifications based on updated property information pulled directly through this block.
- Database Structure Understanding: For teams managing extensive databases, extracting property details simplifies communication regarding data usage and modification across departments.
- Enhanced Content Curation: Whether synthesizing ideas for new articles or organizing research materials, understanding each property’s type allows better categorization based on intended use.
In summary, whenever there’s a need for clarity in gathering detailed metadata about a Notion database’s structure, the Extract Database Properties
block proves invaluable!