Audit and auto-restructure ad campaigns with Spendict, OpenAI, and Google Sheets
Ready for 3.0What 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”).
- Spendict: audit_campaign_structure (HTTP Request): calls spendict.com (POST)
- Route on verdict (Switch): routes items into 2 branches
- Row: sound (Code): runs custom JavaScript code
- OpenAI: restructure (HTTP Request): calls api.openai.com (POST)
- Collect results (Merge): merges the data from its input branches
- Parse revised structure (Code): runs custom JavaScript code
- Google Sheets: append
- Spendict: re-audit (HTTP Request): calls spendict.com (POST)
- Slack: audit result (HTTP Request): calls hooks.slack.com (POST)
- Row: restructured (Code): runs custom JavaScript code
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets
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…