ComponentsActions

Notion

Create and read Notion pages, read databases, and search your workspace from inside an agent workflow.

Notion actions let an agent work with your workspace directly in a flow. An agent can create and read pages, read databases, and search the workspace, then pass the results to later steps.

Supported actions

GroupActions
PageCreate, Get
DatabaseGet
SearchSearch

Prerequisites

How to use these actions

  • Map text inputs from earlier steps. Inputs such as Query and the JSON fields accept a value mapped from a previous step.
  • Page Size takes a fixed value. Enter Page Size as a fixed value.
  • Create a page under a database or another page. Supply either a Parent Database ID to create the page inside a database, or a Parent Page ID to create it under another page.
  • Properties and children are JSON. Page properties and block children are provided as JSON.
  • List and search results page with a cursor. Pass the Start Cursor to page through more results.

Actions

Page

Notion Page Create

Creates a new page.

You must supply either a Parent Database ID or a Parent Page ID.
InputRequiredDescription
Parent Database IDConditionalThe database to create the page inside. Provide this or Parent Page ID.
Parent Page IDConditionalThe page to create the new page under. Provide this or Parent Database ID.
Properties JSONYesThe page properties as JSON.
Children JSONNoThe block children as JSON.
IconNoAn emoji or an external URL.
Cover URLNoA cover image URL.

Notion Page Get

Retrieves a page by ID.

InputRequiredDescription
Page IDYesThe unique identifier of the page to retrieve.

Database

Notion Database Get

Retrieves a database by ID.

InputRequiredDescription
Database IDYesThe unique identifier of the database to retrieve.

Searches your workspace for pages and databases.

InputRequiredDescription
QueryNoThe search text to match.
Filter Object TypeNoLimit results to one type, either page or database.
Sort DirectionNoThe sort direction, either ascending or descending.
Sort TimestampNoThe timestamp to sort by, last_edited_time.
Page SizeNoMaximum number of results to return, from 1 to 100.
Start CursorNoPagination cursor. The cursor to start from.

Example

An agent that logs a meeting summary to a Notion database:

A Notion Search action with Filter Object Type set to database lets a model step confirm the target database ID.

A Notion Page Create action sets Parent Database ID to that database and maps Properties JSON to the meeting title, date, and owner, with the summary supplied through Children JSON.

A model step summarizes the created page, including its returned identifier, for the activity log.

Troubleshooting

For issues common to every vendor, see the Actions overview.

Was this page helpful?

On this page