- Notion - pages and databases
- Confluence - spaces, pages, and labels
- Obsidian - a local vault of markdown notes
nao_config.yaml and pulled in with nao sync.
Notion
Add Notion as a context provider to give your agent access to documentation, wikis, and knowledge bases stored in Notion.Adding Notion
During initialization,nao init prompts for your Notion API key and the page IDs to sync. Manually, add a notion block to your nao_config.yaml:
api_key- Your Notion integration API key.pages- List of Notion pages or databases to sync, as URLs or IDs. You can find a page ID in the page URL:https://notion.so/workspace/Page-ID-here.max_depth- Optional. How many levels of nested pages to follow below each listed page. See Nested pages and database rows.max_pages- Optional. Cap on the number of nested pages and rows discovered in one sync.
What happens at nao sync
nao sync connects to Notion, fetches each configured page and the pages nested under it, and exports them as markdown under docs/notion/ in your nao project. Users can then ask questions like “What does our onboarding doc say about X?” and the agent reads from the synced content.
Databases and embedded views
nao sync exports Notion databases as markdown tables, both when a database is listed directly in notion.pages and when it is embedded inside a synced page.
A database referenced by its plain URL is exported in full. To export a specific view instead, include its ?v=<view_id> in the URL - the export then applies that view’s filters, sorts, row order, and visible columns.
Nested pages and database rows
Available from nao-corev0.4.0. Adding a page to notion.pages also brings in the pages nested under it, so you can point at a hub page (a data wiki, a metrics handbook) instead of listing every child page by hand.
By default, the sync goes one level down only - it is not fully recursive. With the default
max_depth: 1, a listed page brings in its direct sub-pages, but not the sub-pages of those sub-pages. To sync a whole tree, raise max_depth (up to 10).- Pages - the sub-pages of a listed page, including sub-pages placed inside toggles, columns, and other blocks.
- Databases - for a database listed in
notion.pages, its rows, each synced as its own page. Rows with no title and no content are skipped. If the URL targets a view (?v=<view_id>), only the rows in that view are synced.
max_depth- How many levels of nesting to follow below each listed page:0- only the pages you listed, nothing nested.1(default) - the listed pages plus their direct sub-pages (or the rows of a listed database). Nothing deeper.2- also the sub-pages of those sub-pages (or of those database rows).- and so on, up to
10.
max_pages- Maximum number of nested pages and rows discovered across the whole sync, from1to250(default100). The pages you list yourself don’t count toward it. When the cap is reached,nao syncprints a warning and syncs what it found so far.
nao init asks for both values when you add Notion.
Nested pages are written in a folder named after their parent, so the synced files mirror your Notion tree. With max_depth: 2:
notion.pages is written at the top level of docs/notion/ rather than inside its parent’s folder.
nao sync normally deletes files for pages that no longer exist in Notion. If the max_pages cap is reached or a branch of the tree fails to load, it keeps the existing files instead, so a partial sync never removes context.
Upgrading from a version before
v0.4.0: because max_depth defaults to 1, your next nao sync also pulls in the direct sub-pages of each listed page. Set max_depth: 0 to keep syncing only the listed pages.Confluence
Add Confluence to give your agent access to the documentation, wikis, and runbooks your team keeps there. Works with both Confluence Cloud and Confluence Data Center/Server.Adding Confluence
During initialization,nao init prompts for your base URL, deployment flavour, credentials, and what to sync. Manually, add a confluence block to your nao_config.yaml:
confluence extra:
Authentication
Credentials differ by deployment.- Cloud
- Data Center / Server
Cloud uses Basic auth with an Atlassian API token. Both fields are required:Atlassian service accounts work too. Their scoped API tokens go through the Atlassian API gateway, so set Links in the synced pages still point at your Confluence site (
base_url to the gateway URL with your site’s cloud ID, and use the service account’s email and token:https://<site>.atlassian.net/wiki/...), not at the gateway.Choosing what to sync
Four selectors decide which pages are pulled. They combine, and a page selected twice is only synced once. At least one of them must be set - aconfluence block with none of them fails validation.
What happens at nao sync
When you runnao sync, nao resolves every selector into a single set of pages, fetches each page’s body, converts the rendered HTML to markdown, and writes it under docs/confluence/ in your nao project. Each file carries YAML frontmatter with the page’s title, id, space, version, and url, so the agent can cite the source page. Files mirror the Confluence page tree.
- Incremental syncs - nao records each page’s Confluence version. On the next run, a page whose version is unchanged is left alone. Pages that disappear from your selectors are cleaned up, but only after a run that succeeded in full.
- Images - Confluence images need the same auth as the API, so each is replaced with an
[image]placeholder in the exported markdown. - Files under
docs/confluence/are read-only in the File Explorer; edits belong in Confluence itself or in theconfluenceblock.
Obsidian
Add an Obsidian vault as a context provider to give your agent access to the notes and documentation you keep in Obsidian. Obsidian support is included in the corenao-core package and does not require an extra install.
Adding Obsidian
During initialization,nao init prompts for the local path to your vault. Manually, add an obsidian block to your nao_config.yaml:
path- The local path to your Obsidian vault.
What happens at nao sync
nao sync copies the markdown notes from your vault into docs/obsidian/ in your nao project, keeping your folder structure and skipping hidden folders such as .obsidian/ and .trash/. The copied markdown becomes part of your agent’s context.
Next Steps
Context Configuration
Initialize and configure your nao project
Context Providers
Connect databases and other context sources