Writes an SEO meta title and description for each product in your Wix catalog into a spreadsheet for you to review.
Uses
Claude
Google SheetsWix
Draft SEO meta titles and descriptions for Wix products
reviewSheetUrl to blank.Set reviewSheetUrl to blank.seoGuidance to blank.Set seoGuidance to blank.reviewTabName to SEO meta drafts.Set reviewTabName to SEO meta drafts.maxProducts to 25.Set maxProducts to 25.reviewTabName in reviewSheetUrl. Save it as draftedColumn.Read column 'A' of reviewTabName in reviewSheetUrl. Save it as draftedColumn.alreadyDrafted to draftedColumn.values.Set alreadyDrafted to draftedColumn.values.alreadyDrafted is emptyIf alreadyDrafted is emptyYes
reviewTabName in reviewSheetUrl.Add a row to reviewTabName in reviewSheetUrl.No
No steps
catalog.Query Wix Stores products. Save it as catalog.products to catalog.products.Set products to catalog.products.product in products:For each product in products:productName to blank.Set productName to blank.nameErrorIf a step below fails, save the error as nameErrorTry
product.name and save it as productName.Trim product.name and save it as productName.On error
Skipped a catalog entry that has no product name..Show in the output: Skipped a catalog entry that has no product name..productName is emptyIf productName is emptyYes
No
No steps
alreadyDrafted contains productNameIf alreadyDrafted contains productNameYes
No
No steps
draftErrorIf a step below fails, save the error as draftErrorTry
seoGuidance
Product name: productName
Write one meta title of at most 60 characters. Lead with what the product is, work the most relevant search term in naturally, and never invent details such as price, stock, delivery or discounts. Reply with the meta title only - no quotation marks, no labels, no explanation.'. Save it as titleResponse.
Maximum response length: 64titleResponse.response_text and save it as metaTitle.Trim titleResponse.response_text and save it as metaTitle.metaTitle is emptyIf metaTitle is emptyYes
productName - nothing was written to the sheet for it.Show in the output: No meta title came back for productName - nothing was written to the sheet for it.No
No steps
seoGuidance
Product name: productName
Meta title already written for this product: metaTitle
Write one meta description of at most 155 characters. Complement the meta title rather than repeating it, end with a reason to click, and never invent details such as price, stock, delivery or discounts. Reply with the meta description only - no quotation marks, no labels, no explanation.'. Save it as descriptionResponse.
Maximum response length: 200descriptionResponse.response_text and save it as metaDescription.Trim descriptionResponse.response_text and save it as metaDescription.metaDescription is emptyIf metaDescription is emptyYes
productName - nothing was written to the sheet for it.Show in the output: No meta description came back for productName - nothing was written to the sheet for it.No
No steps
reviewTabName in reviewSheetUrl.Add a row to reviewTabName in reviewSheetUrl.On error
productName: draftError.message.Show in the output: Could not draft SEO meta for productName: draftError.message.