Speech to Notion (Thomas Frank coded method) Body Validation error

I am trying to get this to work to create new pages in my Notion. If I use his No-Code workflow, I get empty pages in Notion that just have headings that say Undefined. If I use the Code version, I get this error:

APIResponseError

body failed validation. Fix one: body.parent.page_id should be defined, instead was undefined. body.parent.database_id should be defined, instead was undefined.

Here is a link to the workflow (hoping I did this correctly!): https://pipedream.com/new?h=tch_wEvfXQ

Hi @ginawolfco,

It looks like you’re trying to create new pages in Notion. Based on the error message, it seems that either the page_id or database_id is not defined in the request body.

To create a new page in Notion, you can use the “Create Page from Database” action. Here’s how to use it:

  1. Search for the Notion app from the step menu
  2. Select the Create Page from Database action
  3. Connect your Notion account
  4. Select a Parent Database ID or pass a string from a previous step.
  5. Select a Page Content or pass a string from a previous step.
  6. At the bottom of the step, click Test to run the action and test the configuration.

You can also configure optional fields like Meta Types and Property Types if needed.

Make sure you provide the required Parent Database ID and Page Content when using this action. If you still encounter issues, please visit https://pipedream.com/support for more support options.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.