Personalize marketing emails using customer data and AI
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model. It also calls let-the-work-flow.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Download dummy data (HTTP Request): calls let-the-work-flow.com
- Extract from File: extracts data from a file (xls)
- Some Options for the Campaign (Edit Fields (Set)): sets 2 fields: Campaign Target, Flavour
- Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
- AI Output + Prev Data (Merge): merges the data from its input branches
- Is the result valid? (If): checks a condition and branches into true / false
- Coupon them or not to Coupon them (If): checks a condition and branches into true / false
- AI did fail us (Stop and Error): stops the run with an error
- HTML: parses or builds HTML
- The composed E-Mail + Prev Data (Merge): merges the data from its input branches
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: let-the-work-flow.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Stop and Error
n8n-nodes-base.stopAndError - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - HTML
n8n-nodes-base.html - Send Email
n8n-nodes-base.emailSend
From the author
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…