n8n

How to Automate Bright Data OpenAI Deal Emails?

Collect shopper preferences with a simple web form and send a tailored email with the best offers. Great for ecommerce and affiliate teams that want quick, targeted deal updates without manual research.

When a user submits the form, the flow fetches the offers page with Bright Data, then pulls the page title and body with an HTML extractor. OpenAI turns that raw content into a clean list of deals with name, description, price, link, and category. The list is split into items, formatted into an HTML email, and delivered to the address from the form. A results page confirms how many deals were sent. The value comes from blending web scraping, AI classification, and email delivery in one path.

Setup needs OpenAI and Bright Data accounts plus an SMTP email sender. Choose the Bright Data zone and country, adjust the AI prompt to match your categories, and edit the email template link to match the source site. Expect to cut manual deal building from hours to minutes and send on demand. Useful for daily deal alerts by category, campaign list growth, and quick product research.

What are the key features?

  • Form trigger collects user email and category preferences on a public path.
  • Bright Data fetches the retailer offers page with country and zone controls.
  • HTML extraction pulls page title and body text for clean downstream input.
  • OpenAI generates a structured JSON list of deals with category tags.
  • SplitOut processes each deal item separately for reliable templating.
  • Document generator builds a simple HTML list for the email body.
  • SMTP email node sends the personalized deals to the user address.
  • Form completion page confirms how many deals were sent.

What are the benefits?

  • Reduce manual deal curation from 2 hours to 5 minutes per request
  • Automate up to 90% of scraping, parsing, and email formatting work
  • Handle dozens of user requests per day without extra staff
  • Connect data scraping, AI enrichment, and email delivery in one flow
  • Improve list accuracy by using a consistent AI schema for every send

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with OpenAI and Bright Data. See the Tools Required section above for links to create accounts with these services.
  3. In n8n Cloud, open the Bright Data node and create a new credential. When prompted, enter your Bright Data API details. Save the credential and select it for the node.
  4. Open the OpenAI node and create a new credential. Add your OpenAI API key from your OpenAI account API page. Save and select the credential.
  5. Open the Email Send node and set your SMTP sender. Create a new SMTP credential using your email provider settings, app password or SMTP user and host. Send a test email to confirm deliverability.
  6. In the Form Trigger node, confirm the path is unique and enabled. Review form fields and make sure the Email field is required.
  7. In the Bright Data node, verify the target URL, zone, and country. Run the node to check a successful fetch and confirm output is not blocked.
  8. Check the HTML Extract node to confirm it captures title and body. Preview the output to ensure the page content is readable.
  9. Review the OpenAI prompt to match your categories and language needs. If you see schema errors later, require a strict JSON array with fields name, description, price, link, and category.
  10. Update the Document Generator template link domain if needed so links point to the correct site. Keep currency symbols consistent with your market.
  11. Execute the workflow from the form path, submit a test category and email, and verify the completion message shows the correct deal count.
  12. If items do not split, check the SplitOut path field and confirm the OpenAI response includes results at message.content.results as expected.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Bright Data

Sign up

Pay as you go: $1.5 per 1K records (Web/LinkedIn Scraper API)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.