Templates / Audit and auto-restructure ad campaigns with Spendict, OpenAI, and Google Sheets

Audit and auto-restructure ad campaigns with Spendict, OpenAI, and Google Sheets

Ready for 3.0

by Spendict ✓ · 5 views · created 2026-07-24 · Market Research, AI Summarization

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 workflow has 11 nodes and runs when someone submits an n8n form (“Audit a campaign build”). Along the way it connects Google Sheets. It also calls spendict.com, api.openai.com and hooks.slack.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Audit a campaign build”).

  1. Spendict: audit_campaign_structure (HTTP Request): calls spendict.com (POST)
  2. Route on verdict (Switch): routes items into 2 branches
  3. Row: sound (Code): runs custom JavaScript code
  4. OpenAI: restructure (HTTP Request): calls api.openai.com (POST)
  5. Collect results (Merge): merges the data from its input branches
  6. Parse revised structure (Code): runs custom JavaScript code
  7. Google Sheets: append
  8. Spendict: re-audit (HTTP Request): calls spendict.com (POST)
  9. Slack: audit result (HTTP Request): calls hooks.slack.com (POST)
  10. Row: restructured (Code): runs custom JavaScript code

Services it uses

Google Sheets

HTTP calls to: spendict.com, api.openai.com, hooks.slack.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.

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 (6)

From the author

Quick Overview This workflow collects an ad campaign build brief via an n8n form, audits the structure with Spendict, and automatically rewrites failing builds with OpenAI before re-auditing, then logs the outcome to Google Sheets and posts the verdict to…

Excerpt from Spendict'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.