Skip to content

Block

Block is a Notion component for working with a page’s blocks: each paragraph, heading, list or quote. It can create a block, add content written in Markdown by converting it into Notion blocks, list a page’s blocks or delete one.

When to use it

  • Adding to the end of a Notion page the summary an agent writes.
  • Listing a page’s content to process it.
  • Deleting a specific block from a page.

Configuration

The Operation field decides what the component does: Create (default) creates a block, Add Markdown adds Markdown content, List lists a page’s blocks and Delete deletes a block.

You need a Notion API credential with your Notion integration token. See Credentials.

FieldWhat it does
Credential (required)The Notion API credential.
OperationWhat the component does.
Parent Page Input TypeExcept with Delete, how you point to the page: Id (default) or Url.
Parent Page IDExcept with Delete, the page, or block, to work in.
Select Block TypeWith Create, the block type: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item or quote.
Markdown TextWith Add Markdown, the Markdown content to add.
Block IDWith Delete, the block to delete.

Output

The Data output holds the blocks created or listed, or confirmation of the deletion.

In tool mode, an agent can use the component by itself. See Tool Mode.

Example

A team keeps each meeting’s minutes in Notion.

  1. Add Block with Add Markdown and the minutes page address in Parent Page ID, with Parent Page Input Type set to Url.
  2. Connect the minutes a model writes to Markdown Text.