Draft and policy-check Japanese e-commerce review replies with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when someone submits an n8n form (“レビュー返信を作る / Draft a review reply”) (plus 1 other trigger). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (“レビュー返信を作る / Draft a review reply”) (plus 1 other trigger).
- Load Store Policies (Data table): get (row)
- Sample Store Policies (Edit Fields (Set)): sets 1 field: rows
- Combine Policies (Aggregate): combines items into one
- Split Sample Rows (Split Out): splits a list into separate items
- Match Policies (Code): runs custom JavaScript code
- Insert Store Policies (Data table): insert (row)
- Draft Review Reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Draft Reply
- Check Reply Against Policies (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Checked Reply
- Prepare Log Row (Edit Fields (Set)): sets 9 fields: product, channel, rating…
- Save Reply (Data table): insert (row)
…plus 1 more step. See the full node list below.
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Data table
n8n-nodes-base.dataTable - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - n8n Form
n8n-nodes-base.form - Manual Trigger
n8n-nodes-base.manualTrigger - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview This workflow collects a Japanese e-commerce customer review via an n8n form, drafts a polite reply with OpenAI, checks and fixes it against your store policies, then logs the result to n8n Data Tables and displays the final reply with risk and…