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.
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.
Consider how this block can enhance productivity:
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!