π Orchestrate sequential Notion task execution for participants with webhooks
β‘ 0 views Β· π Project Management
Description
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_moreto determine whether additional pages of blocks exist. - If more blocks exist, re-runs the same workflow with
next_cursorand the blocks accumulated so far to continue pagination. - When no more pages exist, merges all retrieved blocks into a single
resultsarray 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_Versionand 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.
π Nodes Used
HTTP Request, Webhook, Execute Sub-workflow, Execute Workflow Trigger, Filter, Data table
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File