Notion AI Tool

AI-powered tool for creating and managing Notion content. Designed for use with AI Agent Nodes.

Overview

This node operation "Create Page with Content" allows users to create a new page in Notion with structured content generated from natural language input. The node takes a plain text description of the content, including headings, paragraphs, lists, quotes, and other formatting, and automatically converts it into properly formatted Notion blocks (such as headings, bulleted lists, numbered lists, callouts, images, code blocks, etc.). This is particularly useful for automating documentation, note-taking, or content generation workflows where users want to quickly create rich Notion pages without manually formatting each block.

Common scenarios:

  • Automatically generating meeting notes or project documentation from plain text.
  • Creating blog drafts or knowledge base articles with structured formatting.
  • Converting markdown-like or simple text outlines into fully formatted Notion pages.
  • Adding emoji icons or cover images to newly created pages for better visual organization.

Practical example:

Input content:

# Project Plan
This is a paragraph with **bold** and *italic* text.

## Milestones
- First milestone
- Second milestone

> This is an important quote block

The node will create a Notion page titled "Project Plan" under the specified parent, with the content parsed into heading blocks, paragraphs with annotations, bulleted lists, and quote blocks accordingly.


Properties

Name Meaning
Page Title The title of the new page to create.
Parent Page/Database ID ID or URL of the parent page or database where the new page should be created.
Content Natural language content describing the page body. Supports markdown-like syntax; AI structures it into Notion blocks (headings, paragraphs, lists, quotes, images, code, etc.).
Additional Options Collection of optional settings:
- Icon: Emoji icon for the page (e.g., 📝, 🎯, 📊)
- Cover Image URL: URL for the page's cover image
- Max Results: Maximum number of results to return (used in other operations, not relevant here)

Output

The output JSON array contains objects with the following fields:

  • operation: The operation performed, here always "createPageWithContent".
  • success: Boolean indicating if the operation succeeded.
  • pageId: The unique identifier of the created Notion page.
  • title: The title of the created page.
  • url: The public or shareable URL of the created page.
  • message: A human-readable message confirming creation, e.g., Created page "My Title" with content.

If content was provided, it is parsed and added as child blocks to the page, structured according to the input text.

No binary data output is produced by this operation.


Dependencies

  • Requires a valid Notion API key credential configured in n8n to authenticate requests.
  • Uses Notion REST API endpoints /pages and /blocks/{id}/children to create pages and add content blocks.
  • No additional external services are required beyond the Notion API.

Troubleshooting

  • Invalid Notion API credentials: The node validates credentials before execution. If invalid, it throws an error. Ensure your API key is correct and has sufficient permissions.
  • Empty or invalid content: If the content string does not parse into any valid Notion blocks, no content will be added. Make sure the content uses supported markdown-like syntax or natural language that the AI can interpret.
  • Parent ID resolution failure: The parent page or database ID must be valid. You can provide either a raw ID or a full Notion URL. Invalid IDs will cause errors.
  • API rate limits or network issues: Standard Notion API limitations apply. Retry or check network connectivity if requests fail.
  • Malformed additional options: For example, invalid URLs for cover images or unsupported emoji characters may cause unexpected behavior.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion