Send delivery notices to carrier for new deliveries
When a delivery event comes in, the carrier gets an email with the pickup date, location, address, recipient, delivery window and weight, so dispatch doesn't have to send each one by hand.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-delivery-notices-to-carrier-for-new-deliveries/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Logistics management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-delivery-notices-to-carrier-for-new-deliveries
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-delivery-notices-to-carrier-for-new-deliveries/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-delivery-notices-to-carrier-for-new-deliveries - 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 send-delivery-notices-to-carrier-for-new-deliveries - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-delivery-notices-to-carrier-for-new-deliveries
zaps/send-delivery-notices-to-carrier-for-new-deliveries/
- 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 1 to fill in
- connections/gmail.tsThe
gmailaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - 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: the delivery system POSTs a delivery event as JSON to a catch hook (
webhook,hook_v2). - Filter: events flagged
customer_excludedare skipped, and so are notice types other thannew_pickup,weight_updateandcancellation. - Gmail sends one plain-text email to the carrier. The subject is
New pickup - <delivery_id>,Weight update - <delivery_id>orCancelled delivery - <delivery_id>. The body lists the pickup date, pickup location, delivery address, recipient, phone, delivery window and total weight. Missing fields read "not given".
The Zap only emails the carrier. It never changes the delivery or contacts the customer.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
CARRIER_EMAIL |
The carrier's inbox, the address that receives every notice |
Also review the defaults with them: SKIP_EXCLUDED_CUSTOMERS (true skips events where the payload's customer_excluded is true; false sends them anyway) and NOTICE_PREFIXES (the subject prefix for each notice_type; rename them if the carrier expects other wording).
Confirm these with them too:
- Which fields does the delivery system send, and under what names? The code expects
delivery_id,notice_type,customer_excluded,pickup_date,pickup_location,delivery_address,recipient_name,recipient_phone,delivery_windowandtotal_weight. Rename them in the code if the sender uses other names. - Do excluded or test customers come as a
customer_excludedflag in the payload? If not, add the check that matches the sender's data. - Should the originator be copied on each notice? The Gmail connection can only send to its own address during testing, so the copy is not built; add a CC once the address is known.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-delivery-notices-to-carrier-for-new-deliveries, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-delivery-notices-to-carrier-for-new-deliveries, 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.
- Accounts: bind
gmailto the user's Gmail connection, the account that sends the notices. The webhook trigger needs no connection. - Source: publish
workflow.tsandconfig.ts, withCARRIER_EMAILreplaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect the Gmail action's fields with the user's connection before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test run (run_workflow_draft in Zapier MCP) with test data only, with names prefixed [install-test]:
{
"delivery_id": "[install-test] DEL-1001",
"notice_type": "new_pickup",
"customer_excluded": false,
"pickup_date": "2026-11-02",
"pickup_location": "[install-test] Warehouse 3, 100 Dock Rd",
"delivery_address": "[install-test] 21 Test Ave, New York, NY",
"recipient_name": "[install-test] Test Recipient",
"recipient_phone": "+1 555 0100",
"delivery_window": "09:00-12:00",
"total_weight": "42 kg"
}
Check that the run completes, that one email arrives at CARRIER_EMAIL with subject New pickup - [install-test] DEL-1001, and that its body shows each field from the sample. If run-status tools aren't available, check the result in Gmail directly. Ask the user to delete the test email; the agent doesn't delete it. Then publish, confirm the trigger is active, and give the user their webhook URL to point the delivery system at.
Notes
- Each webhook event sends one email, and nothing matches an event to an earlier notice, so a repeated event sends a repeated notice. Add a lookup on
delivery_idin your tracker first if repeats are a problem. - The notices are plain text. Gmail may show the pickup time in the sender's time zone, not the carrier's.
- To alert on cancellations, post a Slack or team channel message when
notice_typeiscancellation. For a high-weight pickup, create a pickup task in your task tracker whentotal_weightis over a threshold. - Never commit a real carrier address or webhook URL. Anyone with the webhook URL can send carrier notices.