Overview
The Notion integration connects your Notion workspace to Hissuno, letting you import pages as knowledge sources. Your documentation, wikis, and internal notes become part of the knowledge graph - searchable by agents and queryable through CLI and API.
Prerequisites
- A Notion workspace with pages you want to import
- Workspace admin access (for OAuth) or the ability to create internal integrations
- An active Hissuno project
Connection Methods
Notion supports two connection methods:
OAuth (recommended)
One-click authorization through Notion. Requires OAuth environment variables on self-hosted instances.
- Navigate to Integrations in the sidebar
- Click Configure on the Notion card
- Select the OAuth tab
- Click Connect with Notion
- Select which pages to share and authorize access
Integration Token
No server-side configuration needed. Works on any Hissuno instance.
- Go to notion.so/profile/integrations and create an internal integration
- Copy the Internal Integration Token (starts with
ntn_orsecret_) - In Notion, share the pages you want to import with your integration
- Navigate to Integrations in the sidebar
- Click Configure on the Notion card
- Select the Integration Token tab
- Paste your token and click Connect
From the CLI
hissuno integrations add notion --access-token <token>
Self-Hosting Setup
For Integration Token connections, no environment variables are needed.
For OAuth connections, create a Notion integration:
- Go to notion.so/profile/integrations and create a Public integration
- Set the Redirect URI to:
{NEXT_PUBLIC_APP_URL}/api/integrations/notion/callback - Note the OAuth client ID and OAuth client secret
NOTION_CLIENT_ID=your-notion-client-id
NOTION_CLIENT_SECRET=your-notion-client-secret
Importing Pages
After connecting Notion, import pages as knowledge sources:
- Go to Configuration in the sidebar
- Under knowledge sources, click Add Knowledge and select Notion
- Browse your workspace and select pages to import
- Selected pages are added as knowledge sources and analyzed
Imported pages become part of Hissuno's knowledge packages (business, product, or technical) and are available for semantic search and agent queries.
How It Works
When you import a Notion page:
- The page content is fetched through the Notion API
- Content is converted to a format suitable for analysis
- The knowledge analysis workflow processes the page
- The page is embedded for semantic search
- It becomes available through CLI and API queries
Keeping Pages Updated
Notion pages are imported at a point in time. To refresh a page with updated content, re-import it from the Configuration page. The existing knowledge source will be updated with the latest content.
Disconnecting
To disconnect Notion:
- Open the Notion integration dialog
- Scroll to Danger Zone
- Click Disconnect
Previously imported pages will remain as knowledge sources in your project.