AhmadA
BuildShip3y ago
2 replies
Ahmad

Extracting JSON value from OpenAI node output into Notion

Hi all,

I have a GPT node that I'm asking to produce JSON that I would like to then use to populate the creation of a Notion page but I seem to keep running into trouble with formatting and/or accessing the object's properties in a way that Notion can accept.

I've tried setting the GPT output to a string and then using the Parse JSON node, but that just kept giving me an error of "error": "Unexpected token o in JSON at position 1".

When I've tried accessing the properties directly from the GPT node I keep getting an "undefined" error.

I suspect I just dont know how to properly setup the Notion node.

Any assistance is much appreciated.

Thank you!
Ahmad
image.png
Was this page helpful?