How can I get collections using dynamic keys?

I’m trying to duplicate Notion pages using a Make automation. Thus far, I’m able to create a new page with the properties of the original page, but I’m stuck trying to copy over the content of the page.

I currently get the original page’s content using the “List Page Contents” module. This returns a bunch of bundles, each containing many keys. One of those keys is “Type”, and its value (paragraph, heading_1, heading_2, heading_3, bulleted_list_item, etc…) is the key for the key:value pair that I have to feed the “Append a Page Content” module so it can copy over the content.

For example, let’s suppose “List Page Contents” is module {{8}}, one of the bundles could be this:

{{8}}

Object: block
Page Content ID: (long string)
parent: (Collection){}
Created Time: January 7, 2025 11:25 AM
Last Edited Time: January 7, 2025 11:25 AM
Created by: (Collection){}
Last Edited by: (Collection){}
Has Children: false
Archived: false
in_trash: false
Type: paragraph     ---> Key to identify the collection below
Paragraph: (Collection){}   ---> Contains the content of the block, need to grab this collection!
Total number of bundles: 33
Bundle order position: 1

The “Paragraph” collection from the example above changes depending on the block, and it’s identified by the value of “Type”.

If I could somehow do something like get( {{8}}; {{8}}.Type) such that I could get the respective content for each block, I’d be golden.

How can I get collections dynamically from a module?

Thank you!