Skip to content
FlowHubFluxonLab
B
AI Automationfree

Personalize marketing emails using customer data and AI

by n8n Communityadapted from n8n official workflow galleryUpdated Aug 2026
RequiresBBasic LLM ChainHTMLHTMLHTTP RequestHTTP RequestOpenAI Chat ModelOpenAI Chat ModelSend EmailSend EmailStructured Output ParserStructured Output Parser
Share Post Share
MaWhen clicking "Execute Workflow"When clicking "…EFExtract from FileExtract from Fi…SeSome Options for the CampaignSome Options fo…IEInformation ExtractorInformation Ext…OpenAI Chat Model1OpenAI Chat Mod…SAAI did fail us1SeFake couponHRDownload dummy dataDownload dummy …MeAI Output + Prev DataAI Output + Pre…IfIs the result valid?Is the result v…IfCoupon them or not to Coupon themCoupon them or …HtHtml Template for our EmailHtml Template f…MeThe composed E-Mail + Prev DataThe composed E-…HtHtml Template for our Email with a CouponHtml Template f…MeThe composed E-Mail with Coupon + Prev DataThe composed E-…ESSend Email12345678910111213141516171819
1/5
STEPS · 19
Run manually by an operator

This workflow uses AI to analyze customer sentiment from product feedback. If the sentiment is negative, AI will determine whether offering a coupon could improve the customer experience. Upon completing the sentiment analysis, the workflow creates a personalized email templates. This solution streamlines the process of engaging with customers post-purchase, particularly when addressing dissatisfaction, and ensures that outreach is both personalized and automated. This workflow won the 1st place in our last AI contest. Note that to use this template, you need to be on n8n version 1.19.4 or later.

Tags

n8nreference-onlychain-llmemail-sendhtmllm-chat-open-aioutput-parser-structured
Connects
BBasic LLM ChainhtmlHTMLWHTTP RequestopenaichatmodelOpenAI Chat ModelsendemailSend EmailstructuredoutputparserStructured Output Parser
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes16
AddedNov 14, 2023

Related workflows

See all AI Automation
BsheetsWopenaichatmodel
free

Scrape and score Amazon products with Apify, OpenAI, and Google Sheets

Quick overview This workflow manually scrapes product results from an Amazon search URL via the Apify Amazon Crawler actor, uses OpenAI to generate a structured product analysis (category, key feature, verdict, value score), and appends the enriched results to a Google Sheets spreadsheet. How it works Runs when you manually click “Test workflow” in n8n. Sends the configured Amazon search URL and scraping limits to the apify Amazon Crawler actor and retrieves the dataset items. Filters out any scraper items that are missing a title or contain an error. Uses OpenAI to analyze each product’s title, brand, price, rating, and review count and returns a structured category, key feature, buyer verdict, and 1–10 value score. Combines the scraped fields and AI analysis into a single row format and adds a timestamp. Appends each enriched product as a new row in Google Sheets. Setup Create an apify API token and add it as an HTTP Header Auth credential used by the Apify request. Add an OpenAI API key as an OpenAI credential and choose the model to use in the configuration. Connect a Google Sheets OAuth2 account and select the target spreadsheet, sheet tab, and columns for appending rows. Upda

by Dr. Firas
autofixingoutputparserBopenaichatmodelstructuredoutputparser
free

Force AI to use a specific output format

This workflow is for anyone looking to automatically fetch, validate, and parse complex language-based queries into a structured format. Its unique capability lies in not only processing language but also fixing invalid outputs before structuring them. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team