[PR #703] [MERGED] Feat Notion #1501

Closed
opened 2026-02-16 10:23:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/703
Author: @lcandy2
Created: 4/11/2025
Status: Merged
Merged: 4/14/2025
Merged by: @crazywoola

Base: mainHead: feat/lcandy/notion


📝 Commits (3)

  • f9fd586 Feat Notion
  • f1b906c Remove requests dependency from requirements.txt to streamline package management.
  • 56656f7 Update requirements.txt

📊 Changes

35 files changed (+3119 additions, -0 deletions)

View changed files

tools/notion/.difyignore (+178 -0)
tools/notion/.env.example (+4 -0)
tools/notion/LICENSE (+201 -0)
tools/notion/PRIVACY.md (+57 -0)
tools/notion/README.md (+128 -0)
tools/notion/_assets/docs/connections.png (+0 -0)
tools/notion/_assets/docs/integrations-capabilities.png (+0 -0)
tools/notion/_assets/docs/integrations-creation.png (+0 -0)
tools/notion/_assets/icon.svg (+9 -0)
tools/notion/main.py (+6 -0)
tools/notion/manifest.yaml (+56 -0)
tools/notion/provider/notion.py (+34 -0)
tools/notion/provider/notion.yaml (+53 -0)
tools/notion/requirements.txt (+1 -0)
tools/notion/tools/create_comment.py (+80 -0)
tools/notion/tools/create_comment.yaml (+55 -0)
tools/notion/tools/create_database.py (+89 -0)
tools/notion/tools/create_database.yaml (+74 -0)
tools/notion/tools/create_page.py (+125 -0)
tools/notion/tools/create_page.yaml (+90 -0)

...and 15 more files

📄 Description

Related Issue or Context

This PR introduces a comprehensive Notion integration plugin for Dify, allowing users to interact with their Notion workspaces directly from Dify applications. The plugin provides a unified interface to search, query, create, and update Notion pages, databases, and comments.

Type of Change

  • Bug Fix (non-breaking change which fixes an Issue)
  • New Feature (non-breaking change which adds Functionality)
  • Breaking Change (fix or feature that may cause existing Functionality to not work as expected)
  • Documentation Update
  • Code Refactoring
  • Other

Version Control (if applicable)

  • Version bumped in Manifest.yaml (top-level Version field, not in Meta section)

Test Evidence (if applicable)

Important

Visual Proof is required for Bug Fixes, New Features, and Breaking Changes:

Screenshots or Video/GIF:

Note

For Non-LLM Models Changes:

  • Bug Fixes:
    • Show the Fix working
  • New Features:
    • Demonstrate the Functionality
  • Breaking Changes:
    • Show both Old and New Behavior

For LLM Models Changes:

  • Bug Fixes:
    • Show the Fix working with Example Inputs/Outputs
  • New Features:
    • Demonstrate the Functionality with Example Inputs/Outputs
  • Breaking Changes (requires comprehensive Testing):
    • Conversation & Interaction:
      • Message Flow Handling (System Messages and User→Assistant Turn-taking)
      • Tool Interaction Flow (Multi-round Usage and Output Handling if applicable)
    • Input/Output Handling:
      • Multimodal Input Handling (Images, PDFs, Audio, Video if applicable)
      • Multimodal Output Generation (Images, Audio, Video if applicable)
      • Structured Output Format (if applicable)
    • Metrics:
      • Token Consumption Metrics
    • Others:
      • e.g., Reasoning Process for Claude 3.7 Sonnet, Grounding for Gemini (if applicable)

Environment Verification

Important

At least one environment must be tested.

Local Deployment Environment

Local Deployment Dify Version: 0.5.0

  • Changes tested in a Clean Environment that matches Production Configuration

SaaS Environment

  • Testing performed on cloud.dify.ai
  • Changes tested in a Clean Environment that matches Production Configuration

The plugin has been tested with various operations including:

  • Searching Notion workspace for pages and databases
  • Creating and updating pages with custom content
  • Querying and filtering databases
  • Creating databases with custom properties
  • Adding comments to pages
  • Retrieving page content and database structures

All operations follow Notion API specifications with proper error handling and formatting.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/703 **Author:** [@lcandy2](https://github.com/lcandy2) **Created:** 4/11/2025 **Status:** ✅ Merged **Merged:** 4/14/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `feat/lcandy/notion` --- ### 📝 Commits (3) - [`f9fd586`](https://github.com/langgenius/dify-official-plugins/commit/f9fd586a24338b188c088b94fd30f46d1a12eeac) Feat Notion - [`f1b906c`](https://github.com/langgenius/dify-official-plugins/commit/f1b906c4bdae73ed9551c27fe0019f03377ae582) Remove requests dependency from requirements.txt to streamline package management. - [`56656f7`](https://github.com/langgenius/dify-official-plugins/commit/56656f760056a79a2806b918c4daf73cf1d02c55) Update requirements.txt ### 📊 Changes **35 files changed** (+3119 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tools/notion/.difyignore` (+178 -0) ➕ `tools/notion/.env.example` (+4 -0) ➕ `tools/notion/LICENSE` (+201 -0) ➕ `tools/notion/PRIVACY.md` (+57 -0) ➕ `tools/notion/README.md` (+128 -0) ➕ `tools/notion/_assets/docs/connections.png` (+0 -0) ➕ `tools/notion/_assets/docs/integrations-capabilities.png` (+0 -0) ➕ `tools/notion/_assets/docs/integrations-creation.png` (+0 -0) ➕ `tools/notion/_assets/icon.svg` (+9 -0) ➕ `tools/notion/main.py` (+6 -0) ➕ `tools/notion/manifest.yaml` (+56 -0) ➕ `tools/notion/provider/notion.py` (+34 -0) ➕ `tools/notion/provider/notion.yaml` (+53 -0) ➕ `tools/notion/requirements.txt` (+1 -0) ➕ `tools/notion/tools/create_comment.py` (+80 -0) ➕ `tools/notion/tools/create_comment.yaml` (+55 -0) ➕ `tools/notion/tools/create_database.py` (+89 -0) ➕ `tools/notion/tools/create_database.yaml` (+74 -0) ➕ `tools/notion/tools/create_page.py` (+125 -0) ➕ `tools/notion/tools/create_page.yaml` (+90 -0) _...and 15 more files_ </details> ### 📄 Description ## Related Issue or Context <!-- - Link related Issues if applicable: #issue_number - Or provide Context about why this Change is needed --> This PR introduces a comprehensive Notion integration plugin for Dify, allowing users to interact with their Notion workspaces directly from Dify applications. The plugin provides a unified interface to search, query, create, and update Notion pages, databases, and comments. ## Type of Change <!-- Put an `x` in all the boxes that apply --> - [ ] Bug Fix (non-breaking change which fixes an Issue) - [x] New Feature (non-breaking change which adds Functionality) - [ ] Breaking Change (fix or feature that may cause existing Functionality to not work as expected) - [ ] Documentation Update - [ ] Code Refactoring - [ ] Other ## Version Control (if applicable) - [x] Version bumped in Manifest.yaml (top-level `Version` field, not in Meta section) <!-- Version format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Major Releases with widespread Breaking Changes - MINOR (x.0.x): For New Features or limited Breaking Changes - PATCH (x.x.0): For backwards-compatible Bug Fixes and minor Improvements - Note: Each version component (MAJOR, MINOR, PATCH) can be 2 digits, e.g., 10.11.22 --> ## Test Evidence (if applicable) > [!IMPORTANT] > Visual Proof is required for Bug Fixes, New Features, and Breaking Changes: ### Screenshots or Video/GIF: <!-- Provide your evidence here --> > [!NOTE] > For Non-LLM Models Changes: > - **Bug Fixes**: > - [ ] Show the Fix working > - **New Features**: > - [ ] Demonstrate the Functionality > - **Breaking Changes**: > - [ ] Show both Old and New Behavior > > For LLM Models Changes: > - **Bug Fixes**: > - [ ] Show the Fix working with Example Inputs/Outputs > - **New Features**: > - [ ] Demonstrate the Functionality with Example Inputs/Outputs > - **Breaking Changes** (requires comprehensive Testing): > - **Conversation & Interaction**: > - [ ] Message Flow Handling (System Messages and User→Assistant Turn-taking) > - [ ] Tool Interaction Flow (Multi-round Usage and Output Handling if applicable) > - **Input/Output Handling**: > - [ ] Multimodal Input Handling (Images, PDFs, Audio, Video if applicable) > - [ ] Multimodal Output Generation (Images, Audio, Video if applicable) > - [ ] Structured Output Format (if applicable) > - **Metrics**: > - [ ] Token Consumption Metrics > - **Others**: > - [ ] e.g., Reasoning Process for Claude 3.7 Sonnet, Grounding for Gemini (if applicable) <!-- LLM Models Test Example: --> <!-- https://github.com/langgenius/dify-official-plugins/blob/main/.assets/test-examples/llm-plugin-tests/llm_test_example.md --> ### Environment Verification > [!IMPORTANT] > At least one environment must be tested. #### Local Deployment Environment Local Deployment Dify Version: 0.5.0 - [x] Changes tested in a Clean Environment that matches Production Configuration <!-- - Python virtual env matching Manifest.yaml & requirements.txt - No breaking changes in Dify that may affect the testing result --> #### SaaS Environment - [x] Testing performed on cloud.dify.ai - [x] Changes tested in a Clean Environment that matches Production Configuration <!-- - Python virtual env matching Manifest.yaml & requirements.txt --> The plugin has been tested with various operations including: - Searching Notion workspace for pages and databases - Creating and updating pages with custom content - Querying and filtering databases - Creating databases with custom properties - Adding comments to pages - Retrieving page content and database structures All operations follow Notion API specifications with proper error handling and formatting. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:23:07 -05:00
yindo closed this issue 2026-02-16 10:23:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1501