What is your goal?
I’m building a scenario that watches a Slack channel for messages (varying structures), creates a new Notion database item, and then appends the structured blocks to that page as formatted content (headings and paragraphs).
What is the problem & what have you tried?
I cannot get any content into the body of a Notion page. Every approach I’ve tried either throws an IMLError or a Notion API validation error. The Notion “Append a Page Content” module consistently fails regardless of how the input is formatted. What have I tried?
Notion Append a Page Content with Paragraph type and plain text mapped from Slack — IMLError
Notion Append a Page Content with Paragraph type and sanitised text via Tools Set Variable — same IMLError
Notion Create a Page with Content Objects mapped as array — same IMLError
HTTP module with raw JSON body — InvalidConfigurationError (bad control characters from newlines)
HTTP module with JSON string method — Notion API 400 validation error
OpenAI to output blocks in custom JSON format, parsed via JSON module, mapped into Append — same IMLError
Error messages or input/output bundles
Error messages:
IMLError: Function ‘children’ finished with error!
item[item.type].rich_text.forEach is not a function
RuntimeError [400]: body.children[0].paragraph should be defined,
instead was undefined
Input/Output:
The JSON Parse module outputs a perfectly structured bundle with a title string and blocks array containing type and text keys. The Page ID from the Create Database Item module is correctly mapped into the Append module’s Page ID field.
