AI lifestyle photos for every new Shopify product, sent to Slack

By General Input

When a new product is created in Shopify, generate an on-brand lifestyle image, attach it to the product, and drop it in your marketing Slack channel.

Integrations

  • Shopify
  • Generate Image
  • Slack Bot

Type

Agentic Task

Categories

  • Marketing
  • Operations

Build me an agent that turns every new Shopify product into a social-ready lifestyle photo and hands it to my marketing team in Slack.

Trigger: the Shopify products/create webhook. The agent should run once per newly created product.

For each new product:

1) Call Shopify Get Product to pull the full title, body description, product type, tags, and the current images list.

2) Check the image skip guard. If the product already has more than IMAGE_SKIP_THRESHOLD images (default 3, make this a workflow input I can edit), skip the rest of the steps and log that it was skipped.

3) Write a vivid scene prompt for the image model. Think editorial flat lay or in-context lifestyle shot, not a sterile studio cutout. Use the product's title, description, type, and tags to ground the scene in what the product actually is and who it's for. Always append a reusable BRAND_AESTHETIC snippet (also a workflow input I can edit) describing mood, color palette, lighting, props, and setting so every image stays on brand. Default the BRAND_AESTHETIC to something tasteful and editorial I can rewrite later.

4) Call Generate Image with that prompt at 1:1 aspect ratio so the output is Instagram-ready. Generate Image returns base64 image data plus a MIME type — keep the bytes in memory and pass them through to the next two steps.

5) Call Shopify Update Product to append the new image to the product's images list. Do not replace or reorder existing images — the existing primary photo must stay primary. Just add the new one to the end.

6) Call Slack Bot Upload a File to send the image to the marketing Slack channel (make the channel a workflow input). The caption should name the product, link to its Shopify admin page (https://{shopDomain}/admin/products/{productId}), and tell the marketing team the image is ready to grab for posts and ads. Keep the caption short and friendly.

Workflow inputs I want to be able to edit later without rebuilding: the destination Slack channel, the image skip threshold, and the BRAND_AESTHETIC snippet that gets appended to every scene prompt.

Error handling: if Generate Image fails or returns nothing usable, do not update Shopify and do not post to Slack — just log the failure so we can investigate. If the Slack upload fails after the image is already attached to the product in Shopify, log it but don't roll back the Shopify update.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them