Templates / Write and refine drafts with Anthropic writer and critic agents and log results

Write and refine drafts with Anthropic writer and critic agents and log results

Ready for 3.0

by SEVENEDGE ✓ · 26 views · created 2026-08-19 · Content Creation, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 20 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Anthropic Chat Model and Google Sheets.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. Initialize Loop State (Code): runs custom JavaScript code
  2. Set Workflow Parameters (Edit Fields (Set)): sets 6 fields: houseRules, rubric, approvalScore…
  3. Prepare Round Data (Code): runs custom JavaScript code
  4. Writer Agent (AI Agent): runs an AI agent, with model: Writer Claude Model; output parser: Writer Output Schema
  5. Capture Draft Output (Code): runs custom JavaScript code
  6. Critic Agent (AI Agent): runs an AI agent, with model: Critic Claude Model; output parser: Critic Output Schema
  7. Capture Critique Output (Code): runs custom JavaScript code
  8. Decision Maker (Code): runs custom JavaScript code
  9. Check Loop Continuation (If): checks a condition and branches into true / false
  10. Build Next Round Data (Code): runs custom JavaScript code

…plus 4 more steps. See the full node list below.

Services it uses

Anthropic Chat ModelGoogle Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow generates a draft with an Anthropic chat model, critiques it against your house rules and rubric, and iterates revisions until it meets an approval threshold or hits stop conditions, then logs the run to Google Sheets and…

Excerpt from SEVENEDGE's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.