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
- Runs every Monday morning on a schedule.
- Loads configuration values such as the report recipient, the number of top products to list, and whether to retry failed notifications.
- 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.
- Builds an HTML report that totals waiting customers, lists the most requested variants, summarizes recovered revenue by currency, and counts failed notifications.
- Sends the report as an email to the configured recipient using Gmail.
- If enabled, retries each failed notification in Shopware so customers can receive the restock email on a subsequent attempt.
Setup
- Install the Novastrix Back in Stock plugin in Shopware and create a Shopware integration with access to the plugin endpoints.
- 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.
- Add a Gmail OAuth2 credential for sending the report email.
- Update the Configuration values for the report recipient email address, the number of top products to include, and whether failed notifications should be retried.