Inventory Template
Click the Send request button on a low-stock record and the reorder request is emailed to your supplier, with the record updated to show it was requested.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/email-inventory-reorder-requests-from-zapier-tables/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Procurement operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/email-inventory-reorder-requests-from-zapier-tables
Set it up with the CLI
- Add it. Copies the folder into
zaps/email-inventory-reorder-requests-from-zapier-tables/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/email-inventory-reorder-requests-from-zapier-tables - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy email-inventory-reorder-requests-from-zapier-tables - Check it. Its recent runs, with status and errors.
npx zap-pack logs email-inventory-reorder-requests-from-zapier-tables
zaps/email-inventory-reorder-requests-from-zapier-tables/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 7 to fill in
- connections/email.tsThe
emailaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/button-click-record.tsWhat starts it:
zapier-tablesbutton_click_record2 to fill in - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: someone clicks the Send request button on a record in the inventory table (
zapier-tables,button_click_record). The trigger brings that record's fields and IDs. - Email by Zapier sends the reorder request to the address in
REORDER_EMAIL: the item, its description, its vendor and the quantity requested, under the subject "New Reorder Request". - Zapier Tables updates the same record: Need More? is unchecked, Reorder Quantity is reset to 0, and Last Reorder Note says how many were requested.
Each click sends one email and changes only that record.
Ask the user
Each REPLACE_… value is set per person. Resolve table and field names to keys with the user's own Zapier Tables connection; don't ask them to paste an ID or key you can look up.
| Setting | Where | What goes there |
|---|---|---|
REPLACE_TABLE_ID |
triggers/button-click-record.ts, table_id |
The inventory table: ask which table it is, then look up its ID with the user's Zapier Tables connection |
REPLACE_BUTTON_FIELD_KEY |
triggers/button-click-record.ts, field_data_key |
The field holding the Send request button, named Send Reorder Request in the template: look up its key in that table |
REPLACE_REORDER_EMAIL |
config.ts, REORDER_EMAIL |
The address that receives reorder requests: the user's own address or a supplier's |
REPLACE_ITEM_FIELD_KEY, REPLACE_DESCRIPTION_FIELD_KEY, REPLACE_VENDOR_FIELD_KEY, REPLACE_REORDER_QUANTITY_FIELD_KEY, REPLACE_NEED_MORE_FIELD_KEY, REPLACE_LAST_REORDER_NOTE_FIELD_KEY |
config.ts |
The key of each field in that table: Item, Description, Vendor, Reorder Quantity, Need More? and Last Reorder Note, matched by name |
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/email-inventory-reorder-requests-from-zapier-tables, replace each REPLACE_… value as this file says, then run npx zap-pack deploy email-inventory-reorder-requests-from-zapier-tables, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Trigger:
zapier-tables,button_click_record, bound to thezapier-tablesaccount (triggers/button-click-record.ts). Settable_idandfield_data_keyfrom the answers above. - Accounts: bind
zapier-tablesto the user's Zapier Tables connection, for the account that owns the inventory table. Bindemailto the user's Email by Zapier connection (connections/email.ts). Both are set in the trigger file andworkflow.ts. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create and publish the workflow. - Fields: inspect the trigger's record fields, the Zapier Tables
update_recordaction's fields and the Email by Zapieroutboundaction's fields with the user's connections before the first test run. Fix any key inworkflow.tsthat doesn't match, including thenew__prefix on record fields if the trigger delivers them without it.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP), with the email set to the user's own address and the table set to a test table:
{
"table_id": "<the test table's ID>",
"record_id": "<the test record's ID>",
"new__<Item field key>": "[install-test] Printer paper",
"new__<Description field key>": "[install-test] A4, 80gsm, 500 sheets",
"new__<Vendor field key>": "[install-test] Test Supplier",
"new__<Reorder Quantity field key>": "5"
}
Use the field keys the user chose, with the new__ prefix. Check that one email arrives at the reorder address with the values above in the body, then that the test record shows Need More? unchecked, Reorder Quantity 0 and the note "requested 5 more". The user deletes the test record, not the agent.
Notes
- Each click sends one email and resets the record, so clicking twice sends two requests.
- The email has the request text only; there is no attachment and no PDF purchase order.
- The email goes from a zapiermail.com address and is limited to 10 emails per hour on paid Zapier plans.
- To send each product to its own supplier, add a Vendor email field to the table and point
REORDER_EMAILat it inworkflow.ts. - Never commit a real email address, table ID or field key.