Template · Protect
Stock-out ad protection
Pauses ads on low stock, resumes on restock, and logs every night.
For agencies and brandsn8n about 30 minReads ✓ · Writes ✓
Or copy the prompt for your AIExample output · placeholder clients
Example outputReads ✓ · Writes ✓
Stock log · last nightWrites ✓
B07KX · Kettle red
3 leftPaused
3 leftPaused
B09XY · Linen shirt
212 leftNo change
212 leftNo change
B08VG · Vase gift
64 leftResumed
64 leftResumed
B06SP · Speaker stand
9 leftPaused
9 leftPaused
2 paused, 1 resumed · undo for 24h
What you need
Three things. It checks them off as you go.
2 of 3 readyA Build keyFree for one account. No card.
ReadyYour accountsAmazon Seller for stock, Amazon Ads to pause.
2 of 2Amazon Seller ✓Amazon Ads ✓
Where the log goesA Google Sheet for the nightly log.
stock-logHow it runs
Whole run: about 45 seconds. Times are estimates.Asleep for you, every night.
2:00
Wakes up
Your schedule starts the run, every night at 2.
about 20 sec
Reads
Units left for every SKU that has live ads.
about 5 sec
Checks
Compares each SKU with your floor, say 5 days of sales.
about 15 sec
Pauses or resumes
Pauses ads under the floor, resumes them after a restock.
about 5 sec
Logs
One row per change in your Sheet.
Wakes up 2:00
Your schedule starts the run.
Reads about 20 sec
Units left, every SKU with ads.
Checks about 5 sec
Each SKU against your floor.
Pauses or resumes about 15 sec
Pauses under the floor, resumes on restock.
Logs about 5 sec
One row per change.
Whole run: about 45 seconds. Times are estimates.
The prompt and the flow
Paste this into your AI.
Works inClaude CodeCursorLovablen8nZapier
Build me an n8n flow that every night checks stock for each SKU with live Amazon Ads, pauses ads when fewer than 5 days of stock are left, resumes them after a restock, and logs every change to the Google Sheet stock-log. Docs: https://build.sellermate.ai/docs. My key is in BUILD_API_KEY.
BUILD_API_KEYYour key, set as a variable. Never paste the key itself.
stock-logThe Sheet the log is written to.
5 days of stockYour stock floor.
Writes, Amazon only
Every change has a net.
CapsNo bid or budget moves past your limit.
Dry runSee every change before it is made.
Undo, 24 hoursOne call puts it all back.
Audit logWho, what and when, for every change.
Change log · Petal & CoWrites ✓
Oct 27 · Brands, Display pausedApplied
Oct 25 · Kettle red resumedApplied
Oct 22 · Vase gift pausedUndone
Undo for 24h · logged
Day two
Change it. Schedule it. Fix it.
Change it
Paste one line to your AI.
Schedule it
Every night at 2. Where you set it:
n8nSchedule node
ZapierSchedule trigger
AI toolsAsk for a scheduled run
If it breaks
A failed run leaves ads as they are and posts a warning.
Pause failed:
campaign_not_found
campaign_not_found
Paste it to your AI
Three questions
Short answers.
Is it free?
The template is free. So is one account, with no card. More accounts are on the pricing page.
Can I change it?
Yes. It is a prompt you own. Ask your AI for any edit, like the three above.
What if it breaks?
A failed run leaves your ads as they are and posts a warning. Anything it changed can be undone for 24 hours. Paste the error to your AI.
Related templates
All templates →More to try.
days of stockreorder by
Sand LNov 4
Navy MNov 19
TrouserDec 8
Days-of-stock and reorder alert
A sheet and an alert with the reorder date.
n8nReads ✓ · Writes — about 20 min
14 proposedclicks · sales
+ vase gift38 · $0
+ free vase22 · $0
Approve allthen applied
Negatives sweep with approval
Proposed negatives, applied after you approve.
Claude CodeReads ✓ · Writes ✓ about 30 min
Lumen budgetend 118%
Budget pacing alert
A Slack line per client with month-end spend.
n8nReads ✓ · Writes — about 15 min
Stop paying for ads on empty shelves.
Free for one account, no card. About 30 minutes.