Write and fact-check Google Docs articles with OpenAI and Lenz
UnknownWhat this workflow does
This AI workflow has 41 nodes and runs when someone submits an n8n form (“Write a fact-checked article”). Along the way it connects OpenAI Chat Model, Google Docs, Google Drive and Lenz (community).
How it runs
Trigger: When someone submits an n8n form (“Write a fact-checked article”).
- The request (Edit Fields (Set)): sets 1 field: topic
- Set your options (Edit Fields (Set)): sets 7 fields: driveFolderId, articleLength, minSources…
- Research and write (AI Agent): runs an AI agent, with model: AI model
- Read the article (Edit Fields (Set)): sets 1 field: article
- Enough sources? (If): checks a condition and branches into true / false
- List the claims (free) (Lenz): extract
- Show that no article was written (n8n Form): shows the next form page
- Check the claims (Lenz): assess
- Pick the red flags (Edit Fields (Set)): sets 1 field: redFlags
- Any red flags? (If): checks a condition and branches into true / false
…plus 27 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-lenz is verified or supports 3.0 (used in List the claims (free), Check the claims, Deep-check the red flags).
Nodes used (14)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Lenz
n8n-nodes-lenz.lenz - n8n Form
n8n-nodes-base.form - Split Out
n8n-nodes-base.splitOut - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Docs
n8n-nodes-base.googleDocs - Convert to File
n8n-nodes-base.convertToFile - Google Drive
n8n-nodes-base.googleDrive - Switch
n8n-nodes-base.switch - Extract from File
n8n-nodes-base.extractFromFile
From the author
Quick overview Fact-check AI-written articles before they go live. Type a topic into an n8n form: OpenAI researches and writes the draft as a Google Doc, Lenz checks the factual claims against independent sources, and the form shows the report with Approve,…