Library / AI Agents & Assistants
AI Agents & Assistants
Refine drafts with Claude writer and critic agents and log results to Sheets
Runs a writer and critic loop that revises a draft until it meets a rubric, then logs the result to Google Sheets and sends a notification.
What it does
## Self-critiquing writer: a writer agent and a critic agent loop until the draft clears your rubric ### How it works This workflow runs a self-critiquing writing loop from either chat input or a manual test trigger. It initializes writing rules and loop state, has a writer agent produce a draft, then has a critic agent score it against the rubric. The workflow either builds another revision round or finalizes the accepted draft, logs the run to Google Sheets, and posts a notification. ### Setup steps - Configure the chat trigger and/or manual trigger inputs with the prompt fields the writer should use. - Fill the Settings node with houseRules, rubric, approvalScore, maxRounds, and the notifyWebhook URL. - Add Anthropic chat model credentials for both the writer and critic agent model nodes. - Configure the structured output schemas for the writer and critic so downstream code receives the expected draft, score, and feedback fields. - Connect the Google Sheets node to the target spreadsheet and sheet for run logging. - Verify the HTTP notification endpoint accepts the payload sent by Notify result. ### Customization Adjust the rubric, approval score, and max rounds to make the loop more or less strict. You can also swap the writer or critic chat models, change their schemas, or expand the ledger row fields captured for auditing.
The steps
- Conversation Starter Trigger
- Manual Execution Trigger
- Set Workflow Parameters
- Initialize Loop State
- Prepare Round Data
- Writer Agent
- Writer Claude Model
- Writer Output Schema
- Capture Draft Output
- Critic Agent
- Critic Claude Model
- Critic Output Schema
- Capture Critique Output
- Decision Maker
20 steps in total.
Similar automations
AI Agents & AssistantsImprove AI Output with Critic and Refiner Agent Loops12 stepsChatbots & Messaging BotsAnswer college WhatsApp enquiries with OpenAI, Supabase vector search and a critic review37 stepsAI Agents & AssistantsWeb Query and Semantic Re-Ranking with Claude, Gemini and OpenAI16 stepsLead Generation & EnrichmentLeadPilot Lite — Manual Lead Email Writer6 steps