Skip to main content

Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini

Workflow preview

Workflow preview
100%
Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n workflow template automates the process of collecting and delivering the "Top Deals of the Day" from MediaMarkt , tailored to user preferences. By combining user ...

Best for

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

Tools used

n8n-nodes-brightdata.brightdata, n8n-nodes-document-generator.documentgenerator, n8n-nodes-base.splitout, n8n-nodes-base.emailsend, n8n-nodes-base.form, n8n-nodes-base.html, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.formtrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini
Workflow name
Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini

This n8n workflow template automates the process of collecting and delivering the "Top Deals of the Day" from MediaMarkt, tailored to user preferences. By combining user-submitted forms, Bright Data web scraping, GPT-4o-mini deal generation, and email delivery, this workflow sends personalized product recommendations straight to a user’s inbox.

> ⚠️ Note: This workflow uses community nodes (Bright Data and Document Generator) which only work on self-hosted n8n instances.


🚀 What It Does

  • Collects user preferences via a form (categories + email)
  • Scrapes MediaMarkt’s deals page using Bright Data
  • Uses GPT-4o-mini (OpenAI) to recommend top deals
  • Generates a structured HTML email using a template
  • Sends the personalized deals directly via email

🧩 Community Node Integration

We created and used the following community nodes:

  • Bright Data – To scrape MediaMarkt deals using proxy-based scraping
  • Document Generator – To generate a templated HTML document from deal data

These nodes are not available in n8n Cloud and require self-hosted n8n.


🛠️ Step-by-Step Setup

  1. Install Community Nodes
    Make sure you're on a self-hosted n8n instance. Install:

    • n8n-nodes-brightdata
    • n8n-nodes-document-generator
  2. Configure Credentials

    • Bright Data API Key (Proxy + Scraping setup)
    • OpenAI API Key (GPT-4o-mini access)
    • SMTP Credentials for sending emails
  3. Customize the Form
    Adapt the form node to collect desired categories and email addresses. Typical categories include appliances, phones, laptops, etc.

  4. Design Your HTML Template
    In the Document Generator node, you can tweak the HTML/CSS to change how deals appear in the final email.

  5. Test the Workflow
    Submit the form with test data and check that the entire flow—from scraping to email—executes as expected.


🧠 How It Works: Workflow Overview

  1. User Interaction via Form
    Users select product categories and enter their email. This triggers the workflow.

  2. Data Extraction via Bright Data
    Bright Data scrapes the MediaMarkt offers page and returns HTML content.

  3. HTML Parsing
    Key elements like product names, prices, and links are extracted for processing.

  4. GPT-4o-mini Recommendation Generation
    The extracted data is sent to OpenAI (GPT-4o-mini), which filters, ranks, and enhances deals based on the user’s preferences.

  5. Data Structuring & Split
    The result is split into individual deal items to be formatted.

  6. HTML Document Creation
    Document Generator populates a clean HTML template with the top recommended deals.

  7. Email Delivery
    The final document is emailed via SMTP to the user with a friendly message.


📨 Final Output

Users receive a custom HTML email featuring a curated list of top MediaMarkt deals based on their selected categories.


🔐 Credentials Used

  • Bright Data API – Web scraping with proxy support
  • OpenAI API – Generating personalized recommendations
  • SMTP – Sending personalized deal emails

Customization Tips

  • Change the Data Source: You can adapt this to scrape other e-commerce sites.
  • Update the Email Template: Make it match your branding or include images.
  • Extend the Form: Add preferences like price range or specific brands.
  • Add Scheduling: Use Cron to run the workflow daily or weekly.

❓Questions?

Template and node created by Miquel Colomer and n8nhackers.com.

Need help customizing or deploying? Contact us for consulting and support.

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 - Get MediaMarkt Offers Website

Type / Role
n8n-nodes-brightdata.brightData - brightData
Config choices
Version 1

Block 2 - Create HTML for Email

Type / Role
n8n-nodes-document-generator.documentGenerator - documentGenerator
Config choices
Version 1

Block 3 - Extract items from results

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

Block 4 - Notify End User by Email

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

Block 5 - Show Form Results Page

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

Block 6 - Extract Body and Title from Website

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

Block 7 - Generate List of Deals by Category

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - When User Completes Form

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

3. Summary Table

Workflow Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini
Complexity intermediate
Nodes 8
Categories Social Media, AI Summarization
Author Miquel Colomer
Published 24 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3304/3304.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 Custom deal recommendations by email using Forms, Bright Data & GPT-4o-mini do?

This n8n workflow template automates the process of collecting and delivering the "Top Deals of the Day" from MediaMarkt , tailored to user preferences. By combining user ...

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, AI Summarization use case.