Score and rank ad copy variants with Claude and Google Sheets
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Prepare Evaluation Settings (Edit Fields (Set)): sets 6 fields: brief, icp, brandVoice…
- Normalize Variants Data (Code): runs custom JavaScript code
- Post to Claude for Critic Notes (HTTP Request): calls api.anthropic.com (POST)
- Post to Claude for Scoring (HTTP Request): calls api.anthropic.com (POST)
- Parse and Sort Scores (Code): runs custom JavaScript code
- Append Scores to Google Sheets (Google Sheets): append
- Return Ranked Variants Response (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Other Anthropic + Google Sheets templates (261)
HTTP calls to: api.anthropic.com
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.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives ad copy variants via a webhook, uses Anthropic Claude to critique and then score and rank each variant, appends the results to Google Sheets, and returns the ranked list in the webhook response. How it works 1. Receives a…