Create payroll rows from extra hours form submissions
Each extra-hours form submission is written to your payroll sheet, and your payroll clerks get an email with the submission reference and the sheet to review before payroll runs.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-payroll-rows-from-extra-hours-form-submissions/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · Payroll compensation
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-payroll-rows-from-extra-hours-form-submissions
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-payroll-rows-from-extra-hours-form-submissions/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-payroll-rows-from-extra-hours-form-submissions - 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 create-payroll-rows-from-extra-hours-form-submissions - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-payroll-rows-from-extra-hours-form-submissions
zaps/create-payroll-rows-from-extra-hours-form-submissions/
- 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/gmail.tsThe
gmailaccount it uses - connections/google-sheets.tsThe
google-sheetsaccount it uses - connections/typeform.tsThe
typeformaccount it uses - triggers/entries-resthook.tsWhat starts it:
typeformentries_resthook_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: a Typeform submission arrives for the extra-hours form (
typeform,entries_resthook_v2, New Entry). - Google Sheets looks for a row whose submission ID matches the Typeform response ID. If it finds one, it updates that row. If not, it adds a row with the worker name, date, hours and notes.
- Gmail sends one notification to the payroll clerks: subject "Extra hours submission <submission ID> needs payroll review", with the submission reference, worker, date, hours and a link to the sheet.
The Zap only writes the sheet and sends the notification. Payroll clerks review each row before payroll runs.
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 |
|---|---|
FORM_ID |
The Typeform form ID of the extra-hours form, from the form the user picks. Also set it as the trigger's formId |
SPREADSHEET_ID |
The payroll spreadsheet: the long ID in the sheet's URL, from the sheet the user picks |
PAYROLL_EMAIL |
The email address that gets the payroll clerk notification |
WORKER_NAME_REF |
The Typeform question ref for the worker's name, from the questions in FORM_ID |
DATE_REF |
The Typeform question ref for the date, from the questions in FORM_ID |
HOURS_REF |
The Typeform question ref for the hours, from the questions in FORM_ID |
NOTES_REF |
The Typeform question ref for the notes, from the questions in FORM_ID |
Also review the defaults with them: WORKSHEET_ID ("0" is the first tab). The column keys SUBMISSION_ID_COLUMN to DESCRIPTION_COLUMN (COL$A to COL$E) must match the sheet: column A submission ID, B worker name, C date, D hours, E notes.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-payroll-rows-from-extra-hours-form-submissions, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-payroll-rows-from-extra-hours-form-submissions, 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
typeform(reads the extra-hours form, for the trigger),google-sheets(the Google account that owns the payroll sheet) andgmail(the Gmail account that sends the notification) to the user's connections. Every app in this Zap needs a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/entries-resthook.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. Set the trigger'sformIdtoFORM_ID. - 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 each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test with a sheet and address the user controls, and a sample entry:
{
"id": "test-submission-0001",
"submitted_at": "2026-11-09T15:00:00Z",
"answers": {
"<WORKER_NAME_REF>": "Sample Worker",
"<DATE_REF>": "2026-11-09",
"<HOURS_REF>": "2",
"<NOTES_REF>": "Sample extra hours"
}
}
Use the question refs from config.ts as the keys. Check that:
- A new submission ID adds one row with the worker name, date, hours and notes filled in.
- Running the same entry again updates that row and does not add a second one.
- One email arrives at
PAYROLL_EMAILwith the submission reference in its subject and body.
If run-status tools aren't available, check the result in Google Sheets and Gmail directly. Ask the user to delete the test rows and email; the agent does not delete them. Then publish, confirm the trigger is active, and give the user the trigger's webhook_url if one is shown.
Notes
- The notification links to the sheet's tab, not to the exact row.
- The Typeform New Entry output has no answer fields, so the form values are read from an
answersobject keyed by question ref. Confirm that shape on the first sample before relying on it. - To alert the team somewhere faster, swap Gmail for any team chat or SMS provider. To keep the rows somewhere else, swap Google Sheets for a time-tracking table or HR database. Neither is built here.
- Never commit a real spreadsheet ID, form ID or email address.