Splitting Up ChatGPT Response Into Text That Notion Can Use

Need Help with Parsing ChatGPT responses to be passed back to Notion

I have run into a problem when it comes to parsing the data from ChatGPT so it can be entered into Notion’s database cleanly.

The basic idea is when a bookmark URL is added to my bookmarks database, Notion will pass the URL to ChatGPT, which creates up to 3 labels, and a short description of the website. The labels and description are then passed back to Notion and update the ‘tags’ and ‘description’ fields associated with the Bookmark URL in the Notion database.

This is where the Make AI is failing to either make it clear to me (I’m relatively new at this), or to find a solution that works. Right now it is suggesting a Text aggregator, but I think it’s likely needing to parse out the data?

An example of the ChatGPT output data that would need to be passed into Notion:

Description:
CBC News delivers the latest breaking news and headlines from Canada and around the world.

Labels:
1. Canadian news
2. Latest headlines
3. International coverage

I would want the database in Notion to be updated with the Labels 1, 2, 3, and the Description to be updated with the Description.

Any help is deeply appreciated. Thank you!

Jeremy

1 Like

you can advice chatgpt to use structured json as output and than use label and description as fields for the json.
Than you need the “JSON - Parse JSON” Module right after chatgpt and than you can use those fields for Notion.

3 Likes

Thanks, I’ll give that a shot right now and report back. @NicoN

1 Like

OK, that worked to fix that problem, but now I’m running into a challenge to figure out how to pass this back to the Notion Databases - one for ‘Bookmarks’ field description, and the other to the Tags database, and to add it to the Bookmark Tags field.

Is there an example somewhere of how to do this? I looked for a template but wasn’t able to find one.

1 Like