Skip to main content

Automated weekly product promotion emails for e-commerce with Algolia and Gmail

Workflow preview

Workflow preview
100%
Automated weekly product promotion emails for e-commerce with Algolia and Gmail preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated Weekly Newsletter for E commerce Promotions (based on Algolia) This workflow automatically sends a beautifully designed HTML newsletter every Sunday at 8 AM, featuring products currently ...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.datetime

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Emir Belkahia.

Original n8n.io source

1.1 Workflow description

Title
Automated weekly product promotion emails for e-commerce with Algolia and Gmail
Workflow name
Automated weekly product promotion emails for e-commerce with Algolia and Gmail

Automated Weekly Newsletter for E-commerce Promotions (based on Algolia)

This workflow automatically sends a beautifully designed HTML newsletter every Sunday at 8 AM, featuring products currently on sale from your Algolia-powered e-commerce store.

Who's it for

Perfect for e-commerce store owners, marketing teams, and anyone running promotional campaigns who wants to automate their weekly newsletter without relying on expensive email marketing platforms.

How it works

  1. Triggers every Sunday at 8:00 AM - Scheduled to start each new promotion week
  2. Fetches discounted products - Queries your Algolia index for 6 products marked with on_sale:true
  3. Calculates promotion dates - Automatically generates the week's date range (Sunday to Saturday)
  4. Builds HTML newsletter - Populates a responsive email template with product images, prices, and descriptions
  5. Retrieves subscribers - Pulls the latest subscriber list from your Google Sheets
  6. Sends personalized emails - Delivers the newsletter to all subscribers via Gmail

Set up steps

Setup time: ~15 minutes

  1. Connect your Algolia credentials (Search API key + Application ID)
  2. Update the Algolia index name to match your store (currently set to dogtreats_prod_products)
  3. Create a Google Sheet with subscriber emails (column named "Email")
  4. Connect your Google Sheets and Gmail accounts
  5. (Optional) Customize the HTML template colors and branding to match your store

Requirements

  • Algolia account with a product index containing on_sale, price_eur, original_price_eur, image, name, and description fields
  • Google Sheets with subscriber list
  • Gmail account for sending emails

How to customize

  • Change promotion criteria: Modify the filter in "Request products from Algolia" node (e.g., category:shoes instead of on_sale:true)
  • Adjust product count: Change hitsPerPage value (currently 6)
  • Modify schedule: Update the trigger node to run on different days/times
  • Personalize email design: Edit the HTML template node to match your brand colors and style
  • Add unsubscribe logic: Extend the workflow to handle unsubscribe requests

đź’ˇ Pro tip: Use the manual execution button to test the workflow mid-week - it's "smart" enough to calculate the current promotion week even when not running on Sunday.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Request products from Algolia

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Extract Discounted Products

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 8 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - On sundays 8.00 am

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 10 - What day are we ?

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sunday ?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Date range generator (low code)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Test trigger for low-code branch

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 16 - Output date of today

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Calculate end of range

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 18 - Output Promo Validity Date Range

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - Find last Monday's date

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 20 - Find last Sunday's date

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 21 - Clean Promo start date

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 22 - Clean Promo end date

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 23 - Put back all hits in one clean array

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 24 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated weekly product promotion emails for e-commerce with Algolia and Gmail
Complexity advanced
Nodes 34
Categories Social Media
Author Emir Belkahia
Published 11 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10730/10730.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated weekly product promotion emails for e-commerce with Algolia and Gmail do?

Automated Weekly Newsletter for E commerce Promotions (based on Algolia) This workflow automatically sends a beautifully designed HTML newsletter every Sunday at 8 AM, featuring products currently ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.