-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: notion cookbook #8074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+380
−1
Merged
feat: notion cookbook #8074
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2184d38
Add notion cookbook
BekahHW fa10bb3
Add notion draft
BekahHW a7871a2
Add draft notion cookbook
BekahHW e5439a2
Update docs/guides/notion-continue-cookbook.mdx
BekahHW fc605ea
Change cookbook to guide using API since MCP doesn't work
BekahHW 3579d32
Move out of MCP cookbooks in overview
BekahHW 36cd4a8
Merge in main
BekahHW 374ec9b
Apply suggestion from @cubic-dev-ai[bot]
bdougie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,313 @@ | ||
| --- | ||
| title: "Developer & Team Workflows with Notion MCP + Continue" | ||
| description: "Use Continue CLI and the Notion MCP to generate docs, manage tasks, and automate project workflows – all through natural-language prompts." | ||
| sidebarTitle: "Notion with Continue" | ||
| --- | ||
|
|
||
| <Card title="What You'll Build" icon="notion"> | ||
|
|
||
| A workflow that lets you query, update, and create Notion pages or database | ||
| entries from natural-language prompts. Generate PRDs, sprint tasks, meeting | ||
| notes, or status reports automatically – perfect for individual developers | ||
| and cross-functional teams. | ||
|
|
||
| </Card> | ||
|
|
||
| ## What You'll Learn | ||
|
|
||
| - Connect the [Notion MCP](https://hub.continue.dev/notion/notion-mcp) to Continue | ||
| - Securely add both Notion and Continue API keys as Hub secrets | ||
| - Use a pre-built agent (`continuedev/notion-continuous-ai`) for instant productivity | ||
| - Issue advanced prompts to automate docs, tasks, and reporting | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before starting, ensure you have: | ||
|
|
||
| - [Continue CLI](/guides/cli) installed (`npm i -g @continuedev/cli`) | ||
| - A [Notion workspace](https://notion.so) with Editor (or higher) access | ||
| - Node.js 18+ installed locally | ||
| - [Continue account](https://hub.continue.dev) with **Hub access** | ||
|
|
||
| <Warning> | ||
|
|
||
| **Agent usage requires credits** – create a Continue API key at | ||
| [hub.continue.dev/settings/api-keys](https://hub.continue.dev/settings/api-keys) | ||
| and store it as a secret. | ||
|
|
||
| </Warning> | ||
|
|
||
| <Steps> | ||
| <Step title="Install Continue CLI"> | ||
| ```bash | ||
| npm i -g @continuedev/cli | ||
| ``` | ||
| Verify installation: | ||
| ```bash | ||
| cn --version | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create Notion Integration & Get Token"> | ||
| 1. Go to **[Notion Integrations](https://www.notion.so/my-integrations)** | ||
| 2. Click **+ New integration** → give it a name (e.g. "Continue MCP") | ||
| 3. Select your workspace | ||
| 4. Under **Capabilities** enable **Read** / **Write** | ||
| 5. Click **Submit** and Copy the **Internal Integration Token** | ||
|
|
||
| <Info> | ||
|
|
||
| This token is your `NOTION_MCP_TOKEN` secret. | ||
| Keep it safe – you won't be able to view it again. | ||
|
|
||
| </Info> | ||
|
|
||
| 6. In Notion, open each database or top-level page you want accessible → **Share** → **Invite** your new integration → **Full access**. | ||
| </Step> | ||
|
|
||
| <Step title="Add Secrets to Continue Hub"> | ||
| 1. Open **[Continue Hub Secrets](https://hub.continue.dev/settings/secrets)** | ||
| 2. Click **+ New Secret** and add the following: | ||
| - **Key:** `NOTION_MCP_TOKEN` → **Value:** `secret_...` (Your token from Step 2) | ||
| - **Key:** `CONTINUE_API_KEY` → **Value:** `cont_api_...` (Your Continue API key) | ||
|
|
||
| <Tip> | ||
|
|
||
| Continue's secure storage means secrets are available in any prompt as | ||
| `$NOTION_MCP_TOKEN` etc. | ||
|
|
||
| </Tip> | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Notion Continuous AI Workflow Options | ||
|
|
||
| <Card title="🚀 Fastest Path to Success" icon="zap"> | ||
|
|
||
| Skip the manual setup and use our pre-built Notion agent that includes | ||
| optimized prompts, rules, and the Notion MCP for more consistent results. | ||
|
|
||
| </Card> | ||
|
|
||
| <Tabs> | ||
| <Tab title="⚡ Quick Start (Recommended)"> | ||
| **Perfect for:** Immediate results with optimized prompts and built-in workflows | ||
|
|
||
| <Steps> | ||
| <Step title="Load the Pre-Built Agent"> | ||
| Navigate to your project directory and run: | ||
| ```bash | ||
| cn --config continuedev/notion-continuous-ai | ||
| ``` | ||
|
|
||
| This agent includes: | ||
| - **Pre-installed Notion MCP** for seamless integration | ||
| - **Developer-focused rules** for technical documentation | ||
| - **Code-aware prompts** that understand your repository structure | ||
| </Step> | ||
|
|
||
| <Step title="Run Your First Prompt"> | ||
| ```bash | ||
| cn "Create a PRD outline for the new payment flow and save it to my Product Specs database." | ||
| ``` | ||
|
|
||
| That's it! The agent handles everything automatically. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Info> | ||
|
|
||
| **Why Use the Agent?** Results are more consistent and debugging is easier thanks to the Notion MCP integration and pre-tested prompts. | ||
|
|
||
| </Info> | ||
|
|
||
| </Tab> | ||
|
|
||
| <Tab title="🛠️ Manual Setup"> | ||
| <Steps> | ||
| <Step title="Connect Notion MCP Manually"> | ||
| Run the Notion MCP directly: | ||
| ```bash | ||
| npx -y @notionhq/mcp-remote https://mcp.notion.com/sse \ | ||
| --header Authorization:$NOTION_MCP_TOKEN | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create / Edit Your Agent on Hub"> | ||
| 1. Click **New Agent** on **[Continue Hub](https://hub.continue.dev)** | ||
| 2. Add **Notion MCP** under **Tools** | ||
| 3. Add any **rules** / **prompts** you like | ||
| </Step> | ||
|
|
||
| <Step title="Launch With Continue CLI"> | ||
| ```bash | ||
| cn --config user/my-notion-agent | ||
| ``` | ||
| </Step> | ||
| </Steps> | ||
| </Tab> | ||
| </Tabs> | ||
|
|
||
| <Accordion title="Agent Requirements"> | ||
|
|
||
| To use the pre-built agent, you need either: | ||
| - **Continue CLI Pro Plan** with the models add-on, OR | ||
| - **Your own API keys** added to Continue Hub secrets | ||
|
|
||
| The agent will automatically detect and use your configuration. | ||
|
|
||
| </Accordion> | ||
|
|
||
| --- | ||
|
|
||
| ## Example Prompts & Workflows | ||
|
|
||
| Now you can use natural language prompts to automate Notion. The Continue agent automatically calls the appropriate Notion MCP tools. | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="API Documentation" icon="code"> | ||
| **Prompt:** | ||
| ``` | ||
| Generate API documentation for all endpoints in src/api/routes | ||
| with request/response schemas. Create a page in the | ||
| Technical Docs database with authentication requirements. | ||
| ``` | ||
| </Card> | ||
|
|
||
| <Card title="Sprint Planning from Code" icon="list-checks"> | ||
| **Prompt:** | ||
| ``` | ||
| Scan the codebase for TODO and FIXME comments. Create tasks | ||
| in the Engineering Backlog database with code context, | ||
| file paths, and estimated complexity. | ||
| ``` | ||
| </Card> | ||
|
|
||
| <Card title="Launch Week Orchestration" icon="rocket"> | ||
| **Prompt:** | ||
| ``` | ||
| Review commits since last release and my Launch Ideas notes. | ||
| Generate a Launch Week page with: feature announcements, | ||
| daily checklists, draft X/LinkedIn posts, and demo scripts. | ||
| ``` | ||
| </Card> | ||
|
|
||
| <Card title="RFC from Discussion" icon="comments"> | ||
| **Prompt:** | ||
| ``` | ||
| Turn our Slack architecture discussion from #eng-design into | ||
| a proper RFC. Include problem statement, proposed solution, | ||
| alternatives considered, and implementation timeline. | ||
| ``` | ||
| </Card> | ||
| </CardGroup> | ||
|
|
||
| --- | ||
|
|
||
| ## Advanced Workflows | ||
|
|
||
| ### Multi-Tool Workflows | ||
|
|
||
| Combine Notion with other MCPs for powerful automation: | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Notion + GitHub" icon="github"> | ||
| ``` | ||
| "Analyze all merged PRs this sprint, extract feature | ||
| descriptions and breaking changes, then create a | ||
| technical changelog in Notion with links to PRs." | ||
| ``` | ||
| </Card> | ||
|
|
||
| <Card title="Notion + PostHog" icon="chart-bar"> | ||
| ``` | ||
| "Pull feature adoption metrics from PostHog for our last | ||
| release. Create a product insights page with usage graphs, | ||
| user segments, and recommendations for improvements." | ||
| ``` | ||
| See the [PostHog Analytics Guide](/guides/posthog-github-continuous-ai) | ||
| </Card> | ||
|
|
||
| <Card title="Code Review Insights" icon="magnifying-glass"> | ||
| **🎯 Outside the Box:** | ||
| ``` | ||
| "Analyze my code review comments from the past month. | ||
| Create a 'Personal Code Review Patterns' page highlighting | ||
| what I catch most often and blind spots to improve." | ||
| ``` | ||
| </Card> | ||
|
|
||
| <Card title="Notion + Linear" icon="list"> | ||
| ``` | ||
| "Sync Linear issues tagged 'customer-reported' to Notion's | ||
| Customer Feedback database. Add impact scores based on | ||
| number of duplicate reports and affected users." | ||
| ``` | ||
| </Card> | ||
| </CardGroup> | ||
|
|
||
| --- | ||
|
|
||
| ## Security Best Practices | ||
|
|
||
| <Warning> | ||
|
|
||
| **Protect Your API Keys:** | ||
| - Treat `NOTION_MCP_TOKEN` like a password → rotate every 90 days | ||
| - Grant the integration only required page/database access | ||
| - Use Continue's secrets, never commit tokens to git | ||
| - Monitor token usage for unusual activity | ||
|
|
||
| </Warning> | ||
|
|
||
| --- | ||
|
|
||
| ## What You've Built | ||
|
|
||
| After completing this guide, you have a complete **AI-powered Notion automation system** that: | ||
|
|
||
| - **Generates content** - Create PRDs, meeting notes, and documentation with natural language | ||
| - **Manages tasks** - Update databases, track progress, and sync with other tools | ||
| - **Runs autonomously** - Set up GitHub Actions for scheduled documentation updates | ||
| - **Scales with your team** - Handle growing documentation needs automatically | ||
|
|
||
| <Card title="Continuous AI" icon="rocket"> | ||
|
|
||
| Your system now operates at **[Level 2 Continuous AI](https://blog.continue.dev/what-is-continuous-ai-a-developers-guide/)** - | ||
| AI handles routine documentation and task management with human oversight | ||
| through review and approval of generated content. | ||
|
|
||
| </Card> | ||
|
|
||
| --- | ||
|
|
||
| ## Next Steps | ||
|
|
||
| - Add a **GitHub Actions** workflow to run `cn` nightly and publish status pages | ||
| - Combine with **Slack MCP** for bi-directional updates | ||
| - Explore **rule-based guardrails** to enforce doc templates | ||
| - Set up **multi-tool workflows** connecting GitHub, Linear, or other services | ||
|
|
||
| --- | ||
|
|
||
| ## Resources | ||
|
|
||
| <CardGroup> | ||
| <Card title="Notion MCP Docs" icon="book" href="https://developers.notion.com/docs/mcp/"> | ||
| Official documentation for the Notion MCP. | ||
| </Card> | ||
|
|
||
| <Card title="Continue CLI Reference" icon="terminal" href="/guides/cli"> | ||
| A complete guide to using the Continue CLI. | ||
| </Card> | ||
|
|
||
| <Card title="Pre-built Notion Agent" icon="robot" href="https://hub.continue.dev/agents/continuedev/notion-continuous-ai"> | ||
| View the pre-built agent on Continue Hub. | ||
| </Card> | ||
|
|
||
| <Card title="Notion API Documentation" icon="code" href="https://developers.notion.com/reference/intro"> | ||
| Complete Notion API reference and guides. | ||
| </Card> | ||
| </CardGroup> | ||
|
|
||
| Happy automating! | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.