AddThisFeature

Notion Database Sync

Create Notion pages from app records with properties mapped and long content split safely.

involved Integrations

What it adds

A sync that writes app records as pages in a selected database, with mapped properties and structured body content.

What your agent is told to do

5
  1. 1

    Confirm at setup, and again before each run, that the selected database is still shared with the integration, because sharing is granted per page and can be withdrawn without any notice to the app.

  2. 2

    Read the database's property identifiers and types from the destination and map each app field by identifier, not by the label a user is free to rename.

  3. 3

    Format each property according to its own type, and treat select, status, relation, and people properties as closed sets. Resolve the value before the page write; do not send an unknown value hoping the provider will create it.

  4. 4

    Split body content into blocks that respect the provider's per-block and per-request limits, and preserve order across the several requests a long record will take.

  5. 5

    Carry a stable app identifier in a dedicated property and look it up before writing, so a retried job updates the existing page rather than creating a second one. This is the same idempotency contract Airtable Record Sync uses; implement it once and share it.

Edge cases it handles

8
  • Access is granted by sharing a database with the integration, and any workspace member can unshare it. The sync must detect the loss and pause with a message rather than retrying against a database it can no longer see.
  • Each property type accepts a different shape. Sending plain text to a date, number, or multi-select property fails, and the error often names only the property, so validate types before the request.
  • Relation, people, select, and status properties reject values that do not already exist. Decide per field whether an unknown value is created, mapped to a fallback, or reported, and make that a setting rather than a guess in code.
  • Long records exceed the block and request limits. Split content into valid blocks, send them in ordered batches, and make a partially written page recoverable rather than leaving half a record behind.
  • Retries and redelivered events create a second page unless the sync looks up its own key first. Query by the identifier property before every create.
  • Properties get renamed and deleted by whoever owns the database. A mapping stored by name breaks invisibly, while a mapping stored by identifier survives a rename and fails loudly on a delete.
  • Rate limits are enforced per integration, so a backfill competes with ordinary writes. Pace the backfill and let user-triggered syncs take priority.
  • Content copied out of the app may carry markup the destination interprets. Convert it into the destination's block structure rather than pasting raw markup into a text property.

Definition of done

8
  • The sync verifies the database is still shared before each run and pauses with a clear message when it is not.
  • Properties are mapped by identifier, so renaming a property in the destination does not break the sync.
  • Each property type receives correctly formatted values, and unknown option values follow a configured rule.
  • Long content is split into valid blocks and written in order, with partial writes recoverable.
  • A stable key property makes repeated runs idempotent, and no retry creates a duplicate page.
  • Backfills respect the provider's rate limits without blocking user-triggered syncs.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.