Check and fix Japanese PR TIMES press releases with rule tables and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“プレスリリースの点検 / Check a press release”) (plus 1 other trigger). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (“プレスリリースの点検 / Check a press release”) (plus 1 other trigger).
- Load Release Rules (Data table): get (row)
- Sample Release Rules (Edit Fields (Set)): sets 1 field: rows
- Combine Rules (Aggregate): combines items into one
- Split Sample Rules (Split Out): splits a list into separate items
- Check Against Rules (Code): runs custom JavaScript code
- Insert Release Rules (Data table): insert (row)
- Fix Release Draft (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Fixed Draft
- Verify Fixed Draft (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Verification
- Show Check Result (n8n Form): shows the next form page
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 - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - n8n Form
n8n-nodes-base.form - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview This workflow collects a Japanese press release draft via an n8n form, checks it against rules stored in an n8n Data Table, uses OpenAI to revise the text to match those rules, then runs a second OpenAI review and shows the findings and…