Run synthetic campaign focus groups with Claude and Google Sheets and SendGrid
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model. It also calls sheets.googleapis.com and api.sendgrid.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set - Prepare Campaign Context (Edit Fields (Set)): sets 12 fields: campaignName, campaignChannel, campaignCopy…
- JS - Build Persona Panel (Code): runs custom JavaScript code
- Wait: pauses before continuing
- AI - Generate Persona Panel Reactions (AI Agent): runs an AI agent, with model: Anthropic - Persona Reaction Model
- JS - Parse Persona Reactions Output (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- JS - Calculate Aggregate Campaign Scores (Code): runs custom JavaScript code
- Respond to Webhook: sends the response back to the webhook caller
- Wait: pauses before continuing
- AI - Generate Focus Group Synthesis & Recommendation (AI Agent): runs an AI agent, with model: Anthropic - Synthesis Model
…plus 8 more steps. See the full node list below.
Services it uses
Other Anthropic + Google Sheets templates (261) · Other Google Sheets + SendGrid templates (49) · Other Anthropic + SendGrid templates (14)
HTTP calls to: sheets.googleapis.com, api.sendgrid.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI - Generate Persona Panel Reactions (v1.6), AI - Generate Focus Group Synthesis & Recommendation (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI - Generate Persona Panel Reactions (v1.6), AI - Generate Focus Group Synthesis & Recommendation (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives marketing campaign copy via webhook, simulates reactions from weighted ICP-based AI personas using Anthropic Claude, calculates an explainable 0–100 appeal score, writes a launch recommendation, logs results to Google…