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 ✓
Get your key
Or copy the prompt for your AI
Example output · placeholder clients
Example outputReads ✓ · Writes ✓
Stock log · last nightWrites ✓
B07KX · Kettle red
3 left
Paused
B09XY · Linen shirt
212 left
No change
B08VG · Vase gift
64 left
Resumed
B06SP · Speaker stand
9 left
Paused
2 paused, 1 resumed · undo for 24h
What you need

Three things. It checks them off as you go.

2 of 3 ready
A Build keyFree for one account. No card.
Ready
Your accountsAmazon Seller for stock, Amazon Ads to pause.
2 of 2
Amazon Seller ✓Amazon Ads ✓
Where the log goesA Google Sheet for the nightly log.
stock-log
How it runs

Asleep for you, every night.

Whole run: about 45 seconds. Times are estimates.
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
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.

Stop paying for ads on empty shelves.

Free for one account, no card. About 30 minutes.