Update lesson log row from edited calendar event
When a lesson on your calendar is edited, its row in your lesson log is updated to match, so session details and billing stay accurate.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-lesson-log-row-from-edited-calendar-event/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Education operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-lesson-log-row-from-edited-calendar-event
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-lesson-log-row-from-edited-calendar-event/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-lesson-log-row-from-edited-calendar-event - 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 update-lesson-log-row-from-edited-calendar-event - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-lesson-log-row-from-edited-calendar-event
zaps/update-lesson-log-row-from-edited-calendar-event/
- 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/google-calendar.tsThe
google-calendaraccount it uses - connections/google-sheets.tsThe
google-sheetsaccount it uses - triggers/event-updated.tsWhat starts it:
google-calendarevent_updated - 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 lesson event is created or updated on the chosen Google Calendar (
google-calendar,event_updated). Cancelled events are skipped by the trigger. - Google Sheets looks for the row whose event ID (column A) matches the event's
id. - If a row matches, Google Sheets updates it: session date (the event's start date), duration in minutes, session summary (the event title) and session notes (the event description). The Amount column is left alone, so its formula recalculates from the new duration.
- If no row matches, Google Sheets adds one with the same fields and the event ID.
The Zap never deletes a row.
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 |
|---|---|
REPLACE_SPREADSHEET_ID |
The lesson-log spreadsheet. Find it by name with the user's Google Sheets connection. |
Also review the defaults with them: WORKSHEET_ID ("0" is the first tab) and the column letters in config.ts, from EVENT_ID_COLUMN to NOTES_COLUMN. Column A must hold the event ID. Map the user's headers to their column letters.
Ask these before turning it on:
- Which Google Calendar holds the lessons? This is not a
REPLACE_value: it is set ascalendaridon the trigger when you build it. - Does the sheet already have a billing formula in the amount column? The Zap relies on it. Rows it adds will not have it until it is copied down (see Notes).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-lesson-log-row-from-edited-calendar-event, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-lesson-log-row-from-edited-calendar-event, 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
google-sheets(the account that owns the lesson log) to the user's Google Sheets connection. The trigger'sgoogle-calendaraccount is bound in step 2. No other apps need a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/event-updated.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. Set the trigger'scalendaridto the calendar that holds the lessons, and leaveexpand_recurringon. 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 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 these two sample inputs as draft test runs (run_workflow_draft in Zapier MCP) against a test spreadsheet and a test calendar event the user creates for this. Each sample is the trigger payload shape: id, summary, description, start.dateTime and duration_minutes.
Update path: a row already exists with the event's ID.
{
"id": "67isrck0civk6i0gauq4ehe544",
"summary": "[install-test] Lesson 1 - piano (edited)",
"description": "[install-test] edited notes",
"start": {
"dateTime": "2026-11-02T10:00:00-05:00",
"timeZone": "America/New_York"
},
"end": {
"dateTime": "2026-11-02T10:45:00-05:00",
"timeZone": "America/New_York"
},
"duration_minutes": 45
}
Check that only that event's row changed: date 2026-11-02, duration 45, the new summary and notes, and the amount recalculated from the sheet's formula (30 for this sample, from a formula of C/60*40).
Add path: no row has the event's ID.
{
"id": "mkbqu11emh2cvbirq6kblekfbk",
"summary": "[install-test] Lesson 2 - piano (new)",
"description": "[install-test] new event notes",
"start": {
"dateTime": "2026-11-03T14:00:00-05:00",
"timeZone": "America/New_York"
},
"end": {
"dateTime": "2026-11-03T14:30:00-05:00",
"timeZone": "America/New_York"
},
"duration_minutes": 30
}
Check that a new row appears at the bottom with the event ID, date 2026-11-03, duration 30, the summary and the notes. Its amount cell stays blank.
If run-status tools aren't available, check the result in Google Sheets directly. Ask the user to delete the test rows and events; the agent does not delete them. Then publish, confirm the trigger is active, and leave the Zap on.
Notes
- The session date is the date part of the event's start, in the event's own timezone.
- If two rows share an event ID, only the first is updated.
- The Zap does not write the billing formula. A row it adds has no Amount until the formula is copied down. Adding the formula to the amount column for every row fixes this without changing the Zap.
- To customize: add a filter so only events on a set calendar, or with a tag, continue; or send an internal alert to program coordinators when the billing amount changes by more than a threshold.
- Never commit a real spreadsheet ID.