Module 22 · ai · intermediate
Exercises 22 · AI Product Description Generator
Start from workflow/starter.json (triggers, Shopify fetch, product selection) or your finished lesson workflow.
Exercise 1: Notify the reviewer
Task: Replace Notify Reviewer (Exercise 1) with an email or Slack message after each scheduled run: how many drafts are ready, how many need review (with their issues), and the review link.
Done when: the daily run sends one message, and nothing when the batch was empty.
Exercise 2: A Google Sheets review board
Task: Write each draft to a Google Sheet (one row per product: title, description, bullets, SEO fields, issues, a decision column). A second scheduled flow reads rows marked approve or reject and calls the decide endpoint.
Done when: a non-technical reviewer can approve copy by typing "approve" in the sheet.
Exercise 3: SEO fields in Shopify
Task: On approve, also save the SEO title and meta description to Shopify (the product node doesn't expose them).
Done when: the product's search engine listing in Shopify shows the approved SEO title and description.
Hint
Shopify stores them as product metafields global.title_tag and global.description_tag. Use HTTP Request with the Shopify credential (Predefined Credential Type) to POST /admin/api/2024-10/products/{id}/metafields.json.
Stretch: Use the product photo
Send the product's first image to a vision model so the copy can mention what it looks like, and add a guardrail: visual details must be confirmed by a reviewer.