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

1,427 views · 📱 Social Media & Email Marketing

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

image.png

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


🧩 Community Node Integration

We created and used the following community nodes:

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


Customization Tips


❓Questions?

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

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

🔗 Nodes Used

Send Email, n8n Form Trigger, OpenAI, n8n Form

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup