See llms.txt for all machine-readable content.

Back to Templates

Send weekly back in stock demand reports with Shopware and Gmail

Quick overview

This workflow runs every Monday to pull Back in Stock demand, recovered revenue, and failed notification data from a Shopware store (Novastrix Back in Stock plugin) and sends a weekly HTML summary email via Gmail, with an optional step to retry failed notifications.

How it works

  1. Runs every Monday morning on a schedule.
  2. Loads configuration values such as the report recipient, the number of top products to list, and whether to retry failed notifications.
  3. Fetches current customer demand per out-of-stock product, recovered revenue totals, and failed Back in Stock notifications from Shopware via the Novastrix Back in Stock API.
  4. Builds an HTML report that totals waiting customers, lists the most requested variants, summarizes recovered revenue by currency, and counts failed notifications.
  5. Sends the report as an email to the configured recipient using Gmail.
  6. If enabled, retries each failed notification in Shopware so customers can receive the restock email on a subsequent attempt.

Setup

  1. Install the Novastrix Back in Stock plugin in Shopware and create a Shopware integration with access to the plugin endpoints.
  2. In n8n, install the community node n8n-nodes-novastrix-shopware and add a Shopware Admin API credential using the integration access key ID and secret.
  3. Add a Gmail OAuth2 credential for sending the report email.
  4. Update the Configuration values for the report recipient email address, the number of top products to include, and whether failed notifications should be retried.