> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leme.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Notion

> Let agents search, read, and write the Notion pages you choose to share

Connect Notion and your agents can use your team's knowledge base the way a well-briefed colleague would: find the right page, read it, answer from it, query your databases — and, where you allow it, write new pages and keep databases up to date.

The key thing to understand about Notion: **agents only see what you share**. During connection, Notion asks which pages and databases the Leme integration may access. Everything else stays invisible.

## What agents can do

| Capability              | Details                                                                   |
| ----------------------- | ------------------------------------------------------------------------- |
| Search shared content   | Find pages and databases by name or topic.                                |
| Read pages              | Full page content, including nested structure.                            |
| Read database schemas   | Properties, types, and options — so queries and edits fit your structure. |
| Query databases         | Filter and sort entries, like "everything with status Blocked".           |
| Create pages            | New pages under a shared page or database, written in rich content.       |
| Append to pages         | Add content to the end of an existing page.                               |
| Update database entries | Change property values on existing entries.                               |
| Comment on pages        | Visible to everyone in the workspace.                                     |

Reading runs freely by default; creating, editing, and commenting ask for approval. See [Permissions](#permissions).

## Try asking

* *"What does our onboarding runbook say about granting access to production?"*
* *"In the Projects database, what's blocked and who owns each item?"*
* *"Summarize the meeting notes from last Tuesday's product review."*
* *"Write up this conversation as a decision page under Engineering / Decisions."* — created after approval.
* *"Mark the 'Q3 pricing' entry as Done in the Roadmap database."* — applied after approval.

## Connect Notion

<Steps>
  <Step title="Open Integrations">
    In the Leme dashboard, go to **Integrations** and select **Notion**.
  </Step>

  <Step title="Choose what to share">
    Select **Connect**. Notion's consent screen lets you pick the pages and databases the integration may access — you can select entire sections or individual pages. Choose deliberately; you can always share more later.
  </Step>

  <Step title="Enable it on your agents">
    Attach the connection to the agents that should use it and review **Agent permissions**.
  </Step>
</Steps>

Notion is a **shared** connection: the pages shared with the integration are what every enabled agent can reach.

## Sharing more (or less) later

Access is managed inside Notion, page by page:

* To share a page after connecting: open it in Notion → **•••** menu → **Connections** → add the Leme integration. Sub-pages inherit access from their parent.
* To unshare: remove the integration from the page's connections. The agent loses access immediately.

## Permissions

| Action                                       | Category               | Default      |
| -------------------------------------------- | ---------------------- | ------------ |
| Search, read pages, query databases          | Read                   | Allow        |
| Create pages, append content, update entries | Write                  | Ask approval |
| Comment on pages                             | External communication | Ask approval |

Adjust in **Integrations → Notion → Agent permissions** — see [Permissions & approvals](/permissions). Sharing scope (which pages) and permissions (what can be done with them) compose: an agent needs both.

## Troubleshooting

<AccordionGroup>
  <Accordion title="The agent can't find a page that exists">
    The page isn't shared with the integration. In Notion, open the page → **•••** → **Connections** → add Leme. Remember sub-pages inherit from parents, so sharing a section is often enough.
  </Accordion>

  <Accordion title="A database query returns nothing, but the database has entries">
    Either the database itself isn't shared (sharing a page doesn't automatically share databases linked from elsewhere), or the filter doesn't match your schema. Ask the agent to read the database schema first — it will see the real property names and options.
  </Accordion>

  <Accordion title="An update was rejected for an unknown property">
    Property names must match the database schema exactly. The agent is told the valid list when this happens and will retry — if it keeps failing, the property may have been renamed; ask the agent to re-read the schema.
  </Accordion>
</AccordionGroup>
