agentskit.js
ToolsIntegrations

notion

Notion API — search workspace, create pages. Pair with RAG to turn Notion into agent-queryable memory.

import { notion } from '@agentskit/tools'

const runtime = createRuntime({
  adapter,
  tools: [...notion({ token: process.env.NOTION_TOKEN! })],
})

Sub-tools

NamePurpose
notionSearchSearch pages + databases by query
notionCreatePageCreate a page inside a parent page or database

Bundled: notion(config).

Config

type NotionConfig = {
  token: string           // Integration internal token
  version?: string        // API version (defaults to latest tested)
  fetch?: typeof fetch
}
const runtime = createRuntime({
  adapter,
  systemPrompt: 'Answer from the engineering Notion; always cite the page title + URL.',
  tools: [...notion({ token })],
})

await runtime.run('What\'s our on-call escalation policy?')

Credentials

  • Create integration at notion.so/my-integrations.
  • Share the target pages + databases with the integration (Notion gates access).

Pair with RAG

For semantic search across Notion, use loadNotionPage to ingest content into a vector store — faster + cheaper for repeated queries than calling the API every turn.

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page