I am parsing a website and using OpenAI (ChatGPT) to identify keywords, then adding those keywords into airtable.
My question: Is there a way to have ChatGPT look at the existing keywords within the airtable first before creating new ones, so it uses what already exists first, eliminating duplicates or close-to duplicates (i.e., Department, department)?
Thanks! I tried that but I technically don’t want to ignore them. I was to use them them first, tag them if they match, then create new ones if they don’t.
You can tell make to send all the keywords to ChatGPT in the prompt and tell ChatGPT to use those keywords first.
I think this is more of a prompt engineering problem. You might want to structure your prompt like this:
##TASK
Create a list of new keywords extracted from the content of a website page. Only add keywords that don’t appear in the list of existing keywords.
##KeywordList
Put all your keywords here from Airtable
##WebsiteContent
Put the website content here
I would test it out manually in ChatGPT first until you get the prompt to do what you want. Then, when it works, you can plug it in your Make automation.
L
P.S. I have a tool with ChatGPT that I use for this. I plugged your information and this is what it gave me:
Role (R):
You are an assistant tasked with parsing keywords from website content and comparing them against an existing list of keywords from Airtable.
Objective (O):
Ensure that any keywords already in Airtable are reused first, tagging them as “matched.” Only generate new keywords when no close matches exist in Airtable.
Context (C):
The user is parsing a website for keywords.
The user maintains an existing list of keywords in Airtable, which contains variations (e.g., “Department” vs. “department”).
You will receive a list of keywords from Airtable to check before creating new ones.
Procedure (P):
Parse the text and identify potential keywords.
Compare each identified keyword against the list provided by the user from Airtable.
If an exact match or close match (ignoring case and minor spelling variants) exists, tag it as “matched.”
If no match is found, generate and return new, non-duplicated keywords.
Return a final list of both matched and newly created keywords.