By the end of this lesson you will have a one-page plan for a leave approval app on Google Sheets: its four parts, its tabs and statuses, and an honest answer to "is a sheet the right tool for this?".
You need: a Google account, any AI chat (for example the Playground), and a process you now run on WhatsApp and a spreadsheet (leave, attendance, expense claims) · Time: 7 minutes
In many offices, leave works like this: someone sends "Sir, need leave on 24th and 25th" on WhatsApp, the manager replies "ok" two days later, and somebody copies it into a sheet, sometimes. A mini app replaces that with a small system: a form to ask, a sheet that remembers, rules that run on their own, and emails that tell people what happened.
It has four parts:
Four parts. You already know the sheet; the AI writes the script. The script is Apps Script, the tool you met in Google Sheets and Apps Script automations. There you made a script that emails a summary. Here the script reacts to people: a form is sent, a manager clicks Approve. You will not write code yourself: the AI writes each small piece, and you paste, test and check.
The same design works for attendance (a form or a page where staff mark in and out, a sheet per month, a script that flags late marks) and expense claims (a form with amount and bill photo, an approval step). We build leave because it has every part.
Why?Naming the four parts keeps each AI request small: "write the form-submit script" is a clear job; "make me a leave app" is not, and gives you one big script that nobody can check.
A Sheets app is free, quick and already inside your Google account. It is also a spreadsheet underneath, with a spreadsheet's limits. Be honest before you build:
Do it now A Sheets mini app is right if you can tick all of these
If you could not tick one of them, a real app with a database and logins is the better tool; the Build apps track shows how to build one with AI. If you ticked all five, carry on: a Sheets app is the fastest way to get it working.
Why?The worst Sheets apps are the ones that grew past their limits: 300 users, salary data in a hidden tab, the person who built it gone. Deciding up front costs a minute and saves a painful rebuild.
Your spreadsheet gets four tabs, each with one job:
- Form Responses 1: created by Google Forms. Nobody edits it, and nobody adds columns to it. It is the untouched record of what was submitted.
- Requests: the working tab. One row per request, with columns
Request ID, Submitted, Email, Name, Type, From, To, Days, Reason, Status, Decided by, Decided at, Note. - Staff:
Email, Name, Approver email. Who works here and who approves their leave. - Settings: a few cells the script reads, like the admin email. Change the setting, not the code.
Every request gets an ID like
LR-0007, so that people can talk about "LR-0007" instead of "Rahul's leave from last week". And every request has a status that changes in only one direction:Pending is the only status that can change. Decided rows are history. Why?IDs and one-way statuses are what make a sheet behave like an app. The script can refuse to approve something twice, and a month later you can still answer "who approved LR-0007, and when?".
Before any script, write down how the app should behave. Let the AI interview you and write it, the way Let the AI ask first teaches:
Prompt · copy it into your AI agentI want to build a small leave approval app on Google Sheets with a Google Form and Apps Script. I cannot code; you will write the scripts later, one small piece at a time. Context: [an office of 25 staff in Pune]. Today staff ask for leave on WhatsApp. Leave types: Casual, Sick, Earned. Each staff member has one approver (their manager). Tabs: Form Responses 1 (never edited), Requests, Staff (Email, Name, Approver email), Settings. Statuses: Pending, Approved, Rejected, Cancelled. Only Pending can change. No row is ever deleted. Ask me up to 8 short questions, one at a time, about anything unclear (who approves when the manager is on leave, half days, what emails say, who may see what). Then write SPEC.md, one page: the tabs and their columns, what happens on each event (form sent, approve, reject, cancel), every email with its subject, and a "Done when" test list I can run with dummy data. Do not write any code yet.
Keep
SPEC.md(or paste it into a Google Doc). You will paste it at the top of every script prompt in this course.Why?A spec is the memory the AI does not have. Each new chat starts from zero; with the spec pasted in, the menu script in lesson 3 and the approval page in lesson 4 follow the same columns and statuses as the form script in lesson 2.
The course builds the app in small pieces, each tested before the next:
Put in order Put the build steps of the leave app in the order this course follows
Tap the steps in the order you would do them. Tap a placed step to remove it.
- 1
Two habits for every piece: work on a copy of the spreadsheet (File → Make a copy) until it works, and test with dummy people, like "Test Staff 1" with your own second email address, never with real staff.
- A Sheets mini app has four parts: form (screen), sheet (database), script (rules), email (messages).
- Use it for small teams and non-sensitive data; otherwise build a real app.
- Four tabs: Form Responses 1 untouched, Requests, Staff, Settings; every request has an ID and a one-way status.
- Write a one-page SPEC.md with AI first, then build in small, tested pieces on a copy.
- Next: From a Google Form to a Requests tab.
Create a free account to save your progress and open every lesson. Create free account