Skip to main content

Send personalized product recommendations via email after Shopify purchases

Workflow preview

Workflow preview
100%
Send personalized product recommendations via email after Shopify purchases preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Shopify Post Purchase Upsell/Cross sell Email Automation Overview This automation triggers when a new order is placed in your Shopify store. It then waits a short period, intelligently identifie...

Best for

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

Tools used

n8n-nodes-base.shopifytrigger, n8n-nodes-base.wait, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.splitinbatches, n8n-nodes-base.shopify, n8n-nodes-base.merge, n8n-nodes-base.emailsend

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Send personalized product recommendations via email after Shopify purchases
Workflow name
Send personalized product recommendations via email after Shopify purchases

🚀 Shopify Post-Purchase Upsell/Cross-sell Email Automation

Overview

This automation triggers when a new order is placed in your Shopify store. It then waits a short period, intelligently identifies complementary products based on the customer's purchase, retrieves those product details, and finally sends a personalized email showcasing the recommendations.

How it works

This automation triggers when a new order is placed in your Shopify store. It then waits a short period, intelligently identifies complementary products based on the customer's purchase, retrieves those product details, and finally sends a personalized email showcasing the recommendations.

  1. Order Detection: When a customer completes a purchase, the flow begins.

  2. Smart Delay: A brief pause ensures initial order confirmations are sent.

  3. Recommendation Engine: The workflow identifies relevant upsell or cross-sell products based on your predefined rules.

  4. Dynamic Email Creation: It fetches details for the recommended products and builds a visually appealing, personalized email.

  5. Email Delivery: The tailored email is sent to your customer, encouraging their next purchase.

Setup Steps

Getting this automation ready will take approximately 1-2 hours, including populating your product recommendations.

Import Workflow: Import the provided n8n JSON file into your n8n instance.

Configure Credentials: Set up your Shopify API and SMTP (email sending) credentials within n8n. Ensure your Shopify credential has read_orders and read_products permissions.

Define Recommendations: Open the Generate Recommendation IDs (Code) node. Crucially, update the recommendationsMap within this node to define which products should be suggested based on specific purchased product IDs from your Shopify store.

Customize Email & URLs: In the Send Upsell Email node, customize the fromEmail, subject, and the main HTML content to match your brand. Also, update YOUR_SHOPIFY_STORE_URL and YOUR_UNSUBSCRIBE_LINK placeholders in the Format Recommendations HTML (Code) and Send Upsell Email nodes.

Activate & Test: Turn the workflow to Active and place a test order in your Shopify store to verify everything works as expected.

(For detailed descriptions and troubleshooting, refer to the Sticky Notes located directly within the n8n workflow itself.)

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 - Order Created Trigger

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

Block 2 - Wait 10 Minutes

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 3 - Generate Recommendation IDs

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

Block 4 - If Recommendations Exist

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

Block 5 - Split Recommended Products

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 6 - Get Product Details

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

Block 7 - Merge Product Details (v3.2)

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 8 - Format Recommendations HTML

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

Block 9 - Send Upsell Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 10 - Workflow Info

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

Block 11 - Features & Config

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

Block 12 - Business Value

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

3. Summary Table

Workflow Send personalized product recommendations via email after Shopify purchases
Complexity intermediate
Nodes 12
Categories Social Media
Author David Olusola
Published 28 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6579/6579.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 Send personalized product recommendations via email after Shopify purchases do?

Shopify Post Purchase Upsell/Cross sell Email Automation Overview This automation triggers when a new order is placed in your Shopify store. It then waits a short period, intelligently identifie...

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.