Skip to main content

E-commerce product fine-tuning with Bright Data and OpenAI

Workflow preview

Workflow preview
100%
E-commerce product fine-tuning with Bright Data and OpenAI 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 workflow contains community nodes that are only compatible with the self hosted version of n8n. This workflow automates the process of scraping product dat...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @brightdata/n8n-nodes-brightdata.brightdata, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
E-commerce product fine-tuning with Bright Data and OpenAI
Workflow name
E-commerce product fine-tuning with Bright Data and OpenAI

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

This workflow automates the process of scraping product data from e-commerce websites and using it to fine-tune a custom OpenAI GPT model for generating high-quality marketing copy and product descriptions.

Main Use Cases

  • Fine-tune OpenAI models with real product data from hundreds of supported e-commerce websites for marketing content generation.
  • Create custom AI models specialized in writing compelling product descriptions across different industries and platforms.
  • Automate the entire pipeline from data collection to model training using Bright Data's extensive scraper library.
  • Generate marketing copy using your custom-trained model via an interactive chat interface.

How it works

The workflow operates in two main phases: model training and model usage, organized into these stages:

  1. Data Collection & Processing

    • Manually triggered to start the fine-tuning process.
    • Uses Bright Data's web scraper to extract product information from any supported e-commerce platform (Amazon, eBay, Shopify stores, Walmart, Target, and hundreds of other websites).
    • Collects product titles, brands, features, descriptions, ratings, and availability status from your chosen platform.
    • Easily customizable to scrape from different websites by simply changing the dataset configuration and product URLs.
  2. Training Data Preparation

    • A Code node processes the scraped product data to create training examples in OpenAI's required JSONL format.
    • For each product, generates a complete training example with:
      • System message defining the AI's role as a marketing assistant.
      • User prompt containing specific product details (title, brand, features, original description snippet).
      • Assistant response providing an ideal marketing description template.
    • Compiles all training examples into a single JSONL file ready for OpenAI fine-tuning.
  3. Model Fine-Tuning

    • Uploads the training file to OpenAI using the OpenAI File Upload node.
    • Initiates a fine-tuning job via HTTP Request to OpenAI's fine-tuning API using the GPT-4o-mini model as the base.
    • The fine-tuning process runs on OpenAI's servers to create your custom model.
  4. Interactive Chat Interface

    • Provides a chat trigger that allows real-time interaction with your fine-tuned model.
    • An AI Agent node connects to your custom-trained OpenAI model.
    • Users can chat with the model to generate product descriptions, marketing copy, or other content based on the training.
  5. Custom Model Integration

    • The OpenAI Chat Model node is configured to use your specific fine-tuned model ID.
    • Delivers responses trained on your product data for consistent, high-quality marketing content.

Summary Flow:

Manual Trigger → Scrape E-commerce Products (Bright Data) → Process & Format Training Data (Code) → Upload Training File (OpenAI) → Start Fine-Tuning Job (HTTP Request) | Parallel: Chat Trigger → AI Agent → Custom Fine-Tuned Model Response

Benefits:

  • Fully automated pipeline from raw product data to trained AI model.
  • Works with hundreds of different e-commerce websites through Bright Data's extensive scraper library.
  • Creates specialized models trained on real e-commerce data for authentic marketing copy across various industries.
  • Scalable solution that can be adapted to different product categories, niches, or websites.
  • Interactive chat interface for immediate access to your custom-trained model.
  • Cost-effective fine-tuning using OpenAI's most efficient model (GPT-4o-mini).
  • Easily customizable with different websites, product URLs, training prompts, and model configurations.

Setup Requirements:

  • Bright Data API credentials for web scraping (supports hundreds of e-commerce websites).
  • OpenAI API key with fine-tuning access.
  • Replace placeholder credential IDs and model IDs with your actual values.
  • Customize the product URLs list and Bright Data dataset for your specific website and use case.
  • The workflow can be adapted for any e-commerce platform supported by Bright Data's scraping infrastructure.

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 - When clicking 'Execute workflow'

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

Block 2 - BrightData

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

Block 3 - Code

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

Block 4 - OpenAI

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

Block 5 - HTTP Request

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

Block 6 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 7 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 8 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 9 - Sticky Note

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

3. Summary Table

Workflow E-commerce product fine-tuning with Bright Data and OpenAI
Complexity intermediate
Nodes 9
Categories Content Creation, Multimodal AI
Author Daniel Shashko
Published 24 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5199/5199.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 E-commerce product fine-tuning with Bright Data and OpenAI do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. This workflow automates the process of scraping product dat...

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 Content Creation, Multimodal AI use case.