AACFlow

Notion Connector

Sync pages from Notion into your knowledge base

The Notion connector is one of the most versatile connectors, supporting three sync modes: workspace-wide search, database query, and parent page tree traversal.

Authentication

OAuth — requires scopes:

  • read:content
  • read:database

Configuration

FieldTypeRequiredDescription
ScopeDropdownYesWorkspace / Database / Parent Page
DatabaseSelector / InputConditionalRequired for Database scope
Parent PageSelector / InputConditionalRequired for Parent Page scope
Search QueryInputNoFilter pages by title
Max PagesInputNoLimit the number of synced pages

Sync Modes

Workspace

Searches all pages in the workspace. Best for comprehensive syncs.

Database

Queries a specific Notion database. Each database row becomes a document.

Parent Page

Syncs all child pages under a specific page. Uses recursive block traversal.

How It Works

  1. Mode Selection — Different API endpoints per mode: search, database query, or block children
  2. Block Fetching — Fetches all blocks for each page recursively
  3. Rich Text Conversion — Converts Notion rich text to plain text
  4. Block Type Handling — Supports paragraphs, headings, code blocks, equations, to-do items, and more
  5. Content Deferred — Stubs returned during listing; full block content fetched via getDocument

Child page fetching uses configurable concurrency to balance speed and rate limits.

Document Format

Pages are converted from Notion blocks:

Page Title

Paragraph text...

# Heading 1
Paragraph...

## Heading 2
More text...

```python
code block
  • Completed task
  • Pending task

## Metadata Tags

| Tag | Type | Description |
|-----|------|-------------|
| Tags | Text | Notion page tags/properties |
| Last Modified | Date | Last edited time |
| Created | Date | Created time |

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started