See llms.txt for all machine-readable content.

Back to Templates

Send weekly competitor price and stock reports with Apify, OpenAI and Gmail

Quick overview

Every Monday this workflow checks the Shopify and WooCommerce stores you compete with using the Store Change Monitor Actor on Apify, has an OpenAI model write a short facts-only analysis of the week's changes, and emails you an HTML report with full change tables through Gmail.

How it works

  1. Runs every Monday at 8:00 on a schedule.
  2. Sends your competitor store URLs and monitoring limits to the Store Change Monitor Actor on Apify and retrieves the resulting dataset: only the changes since last week's run.
  3. Aggregates the last week’s detected changes into lists (price drops/rises, sales, stock changes, added/removed products) and optionally compares competitor prices to your own SKU price map.
  4. If changes are found, prompts an OpenAI chat model to write a brief, facts-only narrative analysis and next-step suggestions.
  5. Renders an HTML email that always includes the full change tables (and includes the AI text when available).
  6. Sends the email report (or a failure notification if the Apify run fails) to the configured address using Gmail.

Setup

  1. Install and configure the Apify community node (@apify/n8n-nodes-apify) and connect an Apify account (OAuth2 or API token).
  2. Add an OpenAI credential for the chat model used to write the weekly analysis.
  3. Connect a Gmail account in the Gmail node for sending emails.
  4. Update the Settings values: competitor store URLs, reportTo email address, businessContext, and optional myPricesBySku JSON, plus any run limits like maxProductsPerStore, maxChargePerRunUsd, and topN.
  5. Run the workflow once to create the initial baseline in Apify, then activate it for ongoing weekly reports.

Requirements

Customization

  • Change the schedule for a daily report, or swap Gmail for Outlook or Slack: the email node receives subject and html.
  • Adjust the prompt in Write the analysis. If the AI step fails, the report is still sent with the full tables.