Hi Dharm,
For the Notion part, you could use the “Get a database” module. That will return the database properties, including the dropdown menu. Within the dropdown menu, you will find its “options” (selectable values in Notion). You can compare those options with the folder name, and proceed accordingly.
Then you can use the “Update database property” Notion API endpoint to add a new select option if needed (Update database properties)