Quick overview
This workflow runs monthly to identify slow-selling Shopify products with no sales in the last 30 days, generates fresh on-model product imagery using Dreem.ai, appends the new photos to the products in Shopify, and posts status updates to Slack.
How it works
- Runs on a schedule at 09:00 on the first day of each month.
- Pulls the most recent 250 Shopify orders (any status) and fetches all Shopify products.
- Compares orders and products to find up to five products with no sales in the last 30 days that already have at least one image.
- For each selected product, sends the first product image to Dreem.ai to generate a new on-model shot and waits for Dreem.ai to call back with the render result.
- If the render completes, updates the Shopify product by keeping existing images and appending the newly generated Dreem.ai image URLs.
- If the render is not completed within the wait window, posts a “skipped” message to Slack for that product.
- After the batch finishes, posts a completion recap to a Slack channel.
Setup
- Add a Shopify Admin API access token credential with permission to read orders and read/write products.
- Install the Dreem community node and add a Dreem.ai API key credential, then select the talentId and shotCodes you want to generate.
- Add a Slack OAuth2 credential and choose the Slack channel for both the per-item “skipped” message and the final recap message.
- (Optional) Adjust the sales lookback window, the per-run cap (default 5 products), and the monthly schedule to match your merchandising cadence.
Requirements
- Dreem account + API key, Shopify store with Admin API access, Slack access
Customization
- Adjust the sales window, the per-run cap, the schedule, or the talent, pose, and styling on the Dreem node.