Orchestrate sequential Notion task execution for participants with webhooks
Quick overview This workflow retrieves all child blocks from a Notion page or block ID, handling Notion API pagination by recursively calling itself until all content is collected.
How it works Receives an input containing the Notion page or block ID (and optional accumulated results and cursor for pagination). Calls the Notion API to fetch up to 100 child blocks for the given block ID, using the provided cursor when present. Checks the Notion response field has_more to determine whether additional pages of blocks exist. If more blocks exist, re-runs the same workflow with next_cursor and the blocks accumulated so far to continue pagination. When no more pages exist, merges all retrieved blocks into a single results array and outputs the consolidated content.
Setup Add a Notion API credential and ensure it has access to the target page or block. Create an n8n variable named Notion_Version and set it to the Notion API version you want to use. In the “Buscar Próxima Página” step, select this same workflow so it can call itself recursively.
Related Templates
AI Weather Forecasts with MCP Integration
Real-time Weather Forecasts with MCP Tools This n8n workflow demonstrates how to integrate real-time weather intelligen...
Google Sheets UI for n8n Workflow
Google Sheets UI for Workflow Control This n8n template provides a practical and efficient way to manage your n8n workf...
Demo Workflow - How to use workflowStaticData()
This workflow demonstrates how to use the workflowStaticData() function to set any type of variable that will persist wi...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments