Integrations
Notion

Notion Integration

No sections found for this integration
The integration documentation may not have the expected structure

Overview

The Notion integration in Lamatic automates content management and page operations with Notion workspaces. This integration enables both trigger-based workflows that respond to Notion events and action-based operations for creating, updating, and managing Notion pages, comments, and content.

This integration connects to your Notion workspace to sync and manipulate content for processing in Lamatic Flow.

Features

✅ Key Functionalities

  • Event Trigger Support: Responds to Notion workspace events via webhook endpoints for real-time content processing.
  • Action Operations: Supports comprehensive Notion operations including page creation, updates, content management, and comment operations.
  • Multiple Action Types: Provides various actions like Add Content to Page, Archive Page, New Comment, New Page, Page Added to Page, and Page Updated.
  • Flexible Configuration: Each action type has specific parameters tailored to its functionality.
  • Real-time Processing: Processes Notion content in real-time when triggered by workspace events.
  • Comprehensive Page Management: Supports operations across multiple Notion pages and databases.

✅ Benefits

  • Automated Workflows: Enables automated content processing triggered by Notion events, reducing manual effort.
  • Bidirectional Integration: Supports both reading from and writing to Notion workspaces for comprehensive content management.
  • Flexible Operations: Provides multiple action types for diverse Notion management needs.
  • Real-time Processing: Processes content immediately when Notion events trigger the flow.
  • Scalable Integration: Handles operations across multiple pages and databases efficiently.
  • Customizable Actions: Each action type offers specific parameters for precise control over operations.

Prerequisites

Before setting up the Notion integration, ensure you have the following:

  • Notion Account: Access to a Notion account with appropriate permissions.
  • Integration Token: Valid Notion integration token with necessary permissions for target workspaces.
  • Page Access: Read/write permissions on target Notion pages and databases.
  • Webhook Endpoint: For trigger mode, access to the flow's webhook endpoint URL.
  • Notion Integration: For trigger mode, ability to create and configure Notion integrations.

Setup

Step 1: Set Up Notion Credentials

Please refer to the Notion Integration documentation (opens in a new tab) to complete the setup and obtain the necessary credentials.

Step 2: Set Up Lamatic Flow

For Trigger Node:

  1. Add Notion Node: Drag the Notion node to your flow as a trigger
  2. Setup Notion Credentials: Setup your Notion Credential

For Action Node:

  1. Add Notion Node: Drag the Notion node to your flow as an action
  2. Setup Notion Credentials: Setup your Notion Credential
  3. Select Action: Choose the desired action type
  4. Configure Parameters: Set up action-specific parameters

Step 3: Testing

For testing, you need to manually provide test data based on your selected action type. Once deployed, the integration will automatically connect to your configured Notion workspaces and pages.

Configuration Reference

Event Trigger Configuration

ParameterDescriptionRequiredExample
CredentialsNotion integration token for authenticationNotion Connection
ActionAction to perform on Notion (see available actions below)New Page

  1. Setup Notion Credentials: Setup your Notion Credential
  2. Select Event Types: Choose from available event types:
    • All Page Events
    • New Comment
    • New Page
    • Page Added to Page
    • Page Updated

Action Configuration

Configure the Notion integration by selecting the desired action and providing the necessary parameters.

ParameterDescriptionRequiredExample
CredentialsNotion integration token for authenticationNotion Connection
ActionAction to perform on Notion (see available actions below)New Page

Available Actions

1. Add Content to Page

Adds content to an existing Notion page.

ParameterDescriptionRequiredExample
Page IDThe ID of the Notion pagepage_id_here
ContentThe content to add to the page{"type": "paragraph", "text": "New content"}
2. Archive Page

Archives a specific Notion page.

ParameterDescriptionRequiredExample
Page IDThe ID of the Notion page to archivepage_id_here
3. New Comment

Creates a new comment on a Notion page.

ParameterDescriptionRequiredExample
Page IDThe ID of the Notion pagepage_id_here
Comment TextThe text content of the commentThis is a comment
4. New Page

Creates a new page in a Notion workspace.

ParameterDescriptionRequiredExample
Parent Page IDThe ID of the parent page or databasepage_id_here
Page TitleTitle of the new pageNew Page Title
Page ContentInitial content for the page (optional){"type": "paragraph", "text": "Page content"}
5. Page Added to Page

Handles when a page is added to another page.

ParameterDescriptionRequiredExample
Parent Page IDThe ID of the parent pagepage_id_here
Child Page IDThe ID of the child page being addedpage_id_here
6. Page Updated

Updates an existing Notion page.

ParameterDescriptionRequiredExample
Page IDThe ID of the Notion page to updatepage_id_here
PropertiesObject containing updated page properties{"title": "Updated Title"}
ContentUpdated content for the page (optional){"type": "paragraph", "text": "Updated content"}

Low-Code Example

Event Trigger Example

triggerNode:
  nodeId: triggerNode_1
  nodeType: notionNode
  nodeName: Notion
  values:
    credentials: ''
    action: ''
    database_id: ''
    page_id: ''
  modes: {}

Action Node Example

nodes:
  - nodeId: notionNode_983
    nodeType: notionNode
    nodeName: Notion
    values:
      credentials: 'Notion Connection'
      action: NOTION_NEW_PAGE
      pageId: 'page_id_here'
      databaseId: 'database_id_here'
      blockId: 'block_id_here'
      content: '{"type": "paragraph", "text": "New content"}'
      title: 'New Page Title'
      parent: 'parent_page_id'
      parentDatabase: 'parent_database_id'
      properties: '{"title": "Page Title"}'
      query: 'search_query'
      commentText: 'This is a comment'
      commentId: 'comment_id_here'
      userId: 'user_id_here'
      rowId: 'row_id_here'
      propertyId: 'property_id_here'
      getAll: false
      getDatabases: false
      getPages: false
      queryFetchData: 'query_data'
    modes: {}
    needs:
      - triggerNode

Troubleshooting

Common Issues

ProblemSolution
Authentication FailedVerify Notion integration token is valid and has appropriate permissions
Page Not FoundCheck page ID and ensure the token has access to the specified page
Permission DeniedEnsure integration token has read/write permissions for the target workspace
Webhook Not TriggeredVerify webhook URL is correct and Notion integration is properly configured
Content Format ErrorVerify content format matches Notion's block structure requirements
Rate Limit ExceededImplement appropriate delays between API calls to respect Notion rate limits

Debugging

  • Check Lamatic Flow logs for detailed error messages
  • Verify Notion integration token permissions and validity
  • Test integration token using Notion's API documentation
  • Validate page IDs exist and are accessible
  • Confirm webhook URL is reachable from Notion
  • Monitor Notion integration logs for trigger issues
  • Test with simple operations before complex workflows
  • Check Notion API rate limits and implement appropriate delays

Best Practices

  • Use specific page IDs when referencing Notion pages
  • Implement error handling for API rate limits
  • Test webhook endpoints before deploying integrations
  • Use appropriate content formats for Notion blocks
  • Regularly monitor integration token permissions
  • Implement retry logic for failed API calls
  • Use efficient content structures for large pages
  • Keep content payloads within Notion's size limits
  • Test integrations with sample data before production use

Example Use Cases

Content Management Workflows

  • Documentation Automation: Automatically create and update documentation pages
  • Project Management: Sync project updates and task management
  • Knowledge Base: Maintain and organize knowledge base content
  • Meeting Notes: Automate meeting note creation and organization

Automation Workflows

  • Form Submissions: Process form data and create Notion pages
  • Email Integration: Create pages from incoming emails
  • Calendar Integration: Sync events and create meeting pages
  • Social Media Monitoring: Track mentions and create engagement pages

Data Processing Workflows

  • Content Validation: Validate and clean incoming content before storage
  • Content Transformation: Transform content formats for different systems
  • Reporting: Generate reports from Notion data
  • Backup and Archival: Automate content backup and archival processes

Was this page useful?

Questions? We're here to help

Subscribe to updates