Seamless Notion workspace integration for the PromptlyAgent AI Research Assistant.
Configure and use Notion integration through the PromptlyAgent interface:
Configure Notion API token, browse workspace pages, and enable AI agent tools for Notion operations
- Knowledge import from Notion pages and databases
- AI agent integration with Notion tools
- Artifact storage to Notion pages
- Full CRUD operations support (search, read, create, update, delete)
- Livewire-powered configuration UI
- Automatic content conversion between Markdown and Notion blocks
composer require promptlyagentai/notion-integration:@devThe package will automatically register itself via Laravel's package discovery.
- Navigate to Settings → Integrations → Notion in your PromptlyAgent application
- Add your Notion Internal Integration token
- Grant the required permissions:
- Read content (required for knowledge import and search)
- Create pages (optional, for AI-generated content)
- Update pages (optional, for artifact synchronization)
Import Notion pages as knowledge documents for AI-powered research:
- Go to Knowledge → Add Knowledge → Notion
- Browse your Notion workspace
- Select pages to import
- Configure import options (include children, tags, privacy level)
Enable the Notion agent to interact with your workspace using natural language:
- "Find project notes in Notion"
- "Create a summary page in Notion"
- "Update the status page in Notion"
Automatically sync AI-generated artifacts to Notion:
- Enable artifact storage in integration settings
- Select default parent page
- Artifacts will sync automatically when created or updated
This package demonstrates the integration pattern for PromptlyAgent AI. New integrations (Slack, Google Drive, etc.) should follow this structure.
- Provider:
NotionIntegrationProvider- Implements integration contracts - Services: Content conversion, knowledge import, API communication
- Tools: AI agent tools for Notion operations
- UI: Livewire components for configuration and browsing
src/
├── NotionIntegrationServiceProvider.php # Main service provider
├── Providers/
│ └── NotionIntegrationProvider.php # Integration logic
├── Services/
│ ├── NotionService.php # Core API service
│ ├── NotionBlockConverter.php # Content conversion
│ ├── NotionContentAnalyzer.php # AI analysis
│ └── NotionKnowledgeSource.php # Knowledge operations
├── Tools/ # AI agent tools
└── Livewire/ # UI components
- PHP 8.2 or higher
- Laravel 11.0 or 12.0
- Livewire 3.0 or higher
- Active Notion workspace with Internal Integration
- Notion Internal Integration token with appropriate permissions
# Run package tests
./vendor/bin/pest
# Run specific test
./vendor/bin/pest tests/Feature/NotionIntegrationProviderTest.phpThis package is part of the PromptlyAgent AI ecosystem. For contributions, please refer to the main repository guidelines.
The MIT License (MIT). Please see License File for more information.
- PromptlyAgent AI Team
- Built with Laravel, Livewire, and the Notion API
For issues and questions:
- GitHub Issues: promptlyagentai/notion-integration
- Email: hello@promptlyagent.ai
