Integrations

Notion integration for AI agents

Search pages, query databases, and create content

Connect Notion to Langdock and use it in chat, in agents and in workflows.

15 actions · 3 triggers

Notion actions

Each action is one step an agent or workflow can run in Notion.

  • Create comment

    Adds a comment to a Notion page, block, or existing discussion thread. Provide pageId to comment on a page, blockId to comment on a specific block, or discussionId to reply in an existing thread. Content supports inline Markdown (bold, italic, code, links).

  • Create database

    Creates a new Notion database as a child of a page, with a defined column schema. Requires a parent page ID and a properties schema defining the database columns — always construct this from what the user describes. Returns the created database's ID, URL, and metadata.

  • Create page

    Creates a new Notion page as a child of an existing page or as an entry in a database. Requires a parent ID and parent type (page_id or database_id); title, properties, and content are optional. Returns the created page's ID, URL, and timestamps.

  • Find databases

    Searches for Notion databases by title across the workspace. Requires a search query string. Returns a list of matching databases with their IDs, titles, and URLs.

  • Find pages

    Searches for Notion pages by title across the workspace. Requires a search query string. Returns an object `{ count, hasMore, pages }` where `pages` lists matching pages (up to 30) with their IDs, titles, and URLs; `hasMore` is true when more matches exist.

  • Get comments

    Retrieves all comments on a Notion page or block. Returns comment content, authors, timestamps, and discussion thread IDs.

  • Get database details

    Retrieves the schema and metadata of a specific Notion database. Requires a database ID. Returns the database's property definitions, title, and metadata.

  • Get page blocks

    Retrieves the block structure of a Notion page or block, including block IDs, types, and text content. Requires a page or block ID. Returns an object `{ count, blocks }` where `blocks` lists the blocks with their types, content, and nested children up to the specified depth.

  • Get page content

    Retrieves the full content of a Notion page or block, including all nested child blocks, and converts it to Markdown. Requires a page or block ID. Returns an object `{ content: string }` with the page content as Markdown.

  • Get page details

    Retrieves the metadata and properties of a specific Notion page. Requires a page ID or URL. Returns the page's properties, parent, icon, cover, and timestamps.

  • Get users

    Lists all users in the Notion workspace, including their IDs, names, emails, and types (person or bot). Use this to find a specific person's user ID for filtering, assigning, or mentioning.

  • Query database

    Fetches pages from a Notion database with optional filtering, sorting, and pagination. Requires a database ID; filters, sorts, and pagination parameters are optional. Returns a list of matching pages with their properties.

  • Search

    Searches across the entire Notion workspace or within a specific database for pages and databases. Requires a search query; database ID, type filter, and property filters are optional. Returns a list of matching pages and databases with their IDs, titles, and URLs.

  • Update database

    Updates a Notion database's title, description, icon, cover, or property schema. Requires a database ID and at least one field to update. Returns the updated database metadata.

  • Update page

    Updates a Notion page's properties, icon, cover, or trash status. Also appends content to an existing page: omit blockId and provide blockText with blockType 'markdown' to append a full markdown document of any length, or use a specific blockType (paragraph, heading_1, etc.) for a single block. Provide blockId to update an existing block in place instead. Use this action whenever you need to add content to an existing page.

Notion triggers

A trigger starts a workflow when something happens in Notion.

  • New database item

    Triggers when new database items are added.

  • Updated database item

    Triggers when items in the database are updated.

  • Updated page

    Triggers when pages are updated.

Setup and permissions

An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.

All integrations