Quick Overview
This scheduled workflow audits Shopify product images with ShotEdit, uses Google Gemini to generate actionable fix notes, logs issues to Google Sheets, and posts a run summary to Slack.
How it works
- Runs every Monday morning on a schedule.
- Retrieves a limited batch of products from Shopify and splits each product’s image list into one item per image.
- Sends each image URL to the ShotEdit Image Info API to read metadata (format, dimensions, file size) and return an optimization recommendation.
- Filters out images marked as OK so only images needing changes continue.
- Uses Google Gemini to convert the technical recommendation into a one-sentence fix instruction plus a priority.
- Appends or updates the finding in Google Sheets keyed by the image URL, then aggregates the run results and posts a summary message to a Slack channel.
Setup
- Add credentials for Shopify (Admin API access token), Google Sheets, Slack, and Google Gemini.
- Update the audit parameters for your Google Sheet ID, sheet name, Slack channel, and the Shopify product limit.
- Create a Google Sheet tab matching the configured sheet name and include an
image_url column so rows can be updated in place.