Create a new Notion page where you’d like the outputs of your LLM to live
Open the ‘Manage connections’ modal by selecting the three-dots menu on the top right corner, scrolling down to ‘Connect to’ and then selecting ‘Manage connections’
Scroll down and select ‘Develop or manage integrations’
Select ‘New integration’
Give your integration a name, select the Notion workspace you want to use and then click ‘Save’
Select ‘Configure integration settings’
Click ‘show’ next to the Internal Integration Secret then click ‘Copy’. This is the value you will use in the code block inside your Wordware code block.
Now go back to the Notion page you want to use and refresh it. Then once again open the ‘Connect to’ menu and select your newly created connection
Take the URL of the page, extract the ID from it and set it in the code block for the NOTION_PARENT_PAGE_ID
. The id is the last part of the URL e.g. for
https://www.notion.so/wordware/Wordware-WordApp-outputs-c32b00d3df4e4ab48289427537063a69 the id is c32b00d3df4e4ab48289427537063a69
Set USE_PUBLIC_PAGE
to false
this will make the returned URL be for your internal page