AI development prompt library
All 30 original build and extension prompts from the workshop, plus a builder that generates focused prompts for explaining, debugging, extending, performance, reliability, an HTML interface, safe automation and acceptance tests. Every generated prompt preserves the original input contract and entry point.
Prompt builder
01 — Automated Sales Dashboard
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 01: Automated Sales Dashboard. Input tab Sales, exact headers: Date, Region, Product, Units, Unit price. Create buildDashboard() that reads Sales, converts numeric cells, calculates units × price, and replaces a Dashboard tab with regional totals and grand total. Add a column chart and a menu. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: East 160; West 100; total 260. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point buildDashboard and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/01-automated-sales-dashboard. Base version limitations: No date filter or product breakdown yet.
Original extension prompt
Update the existing app without removing working features. Add product breakdown and date filters; test a blank row. Return complete updated files, explain changes and give regression tests. Automation option: Refresh daily after importing transactions; use an explicit spreadsheet ID in scheduled code. Keep this separate from the baseline exercise.
02 — Smart Data Cleaning Tool
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 02: Smart Data Cleaning Tool. Input tab Contacts, exact headers: Name, Email, City. Create cleanContacts() that trims fields, lowercases emails, flags missing names and invalid emails, deduplicates valid emails and writes Clean and Issues tabs with source row numbers. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: One valid unique contact; three issue rows (invalid email, duplicate, missing name). Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point cleanContacts and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/02-smart-data-cleaning-tool. Base version limitations: Email regex checks shape only, not deliverability.
Original extension prompt
Update the existing app without removing working features. Add configurable required fields and a preview of proposed changes. Return complete updated files, explain changes and give regression tests. Automation option: Run after a batch import; keep Issues for human review. Keep this separate from the baseline exercise.
03 — Custom Spreadsheet Functions
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 03: Custom Spreadsheet Functions. Input tab Orders, exact headers: Item, Quantity, Price, Discount. Implement pure custom function NETPRICE(quantity,price,discount), supporting scalar values and rejecting invalid input; demonstrate =NETPRICE(B2,C2,D2). Add a second function PRICEBAND(net) with Low below 50, High otherwise. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Net prices 45, 96, 60; bands Low, High, High. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point demoFunctions and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/03-custom-spreadsheet-functions. Base version limitations: Blank gaps in Orders can misalign generated formula references; use contiguous rows.
Original extension prompt
Update the existing app without removing working features. Support equally sized range arguments and return a two-dimensional array. Return complete updated files, explain changes and give regression tests. Automation option: Custom formulas recalculate on cell changes; no trigger needed. Keep this separate from the baseline exercise.
04 — External API Data Importer
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 04: External API Data Importer. Input tab Settings, exact headers: URL, Limit. Create importUsers() using the URL and limit from Settings; fetch JSON, check HTTP status, validate array shape, write id/name/email/city to Users. Include an error message without deleting previous results on failure. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Three user rows if endpoint is available; first user Leanne Graham. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point importUsers and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/04-external-api-data-importer. Base version limitations: Only the demo endpoint is allowed; internet availability matters.
Original extension prompt
Update the existing app without removing working features. Add configurable field mapping and a last-refresh timestamp. Return complete updated files, explain changes and give regression tests. Automation option: Schedule periodic refresh with HTTP error logging and a pinned spreadsheet ID. Keep this separate from the baseline exercise.
05 — Automated Inventory Monitor
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 05: Automated Inventory Monitor. Input tab Inventory, exact headers: SKU, Item, Stock, Reorder level. Create checkInventory() that writes items with stock <= reorder level to Alerts; add menu and optional daily trigger installer that avoids duplicate triggers. No email sending. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: A01 and A03 appear in Alerts. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point checkInventory and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/05-automated-inventory-monitor. Base version limitations: Alerts tab only; no email notification. For scheduled execution, save the current spreadsheet ID when installing the trigger and use openById when no active spreadsheet exists. Reinstall in each copy.
Original extension prompt
Update the existing app without removing working features. Add an alert history and notify only when status changes, using drafts. Return complete updated files, explain changes and give regression tests. Automation option: The existing Install daily trigger menu creates a daily check; verify background spreadsheet access. Keep this separate from the baseline exercise.
06 — Personalized Document Generator
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 06: Personalized Document Generator. Input tab People, exact headers: Name, Program, Date. Create generateLetters() that copies Letter Template from the lesson folder for each row, replaces {{NAME}}, {{PROGRAM}}, {{DATE}}, saves and writes output links. Use display values for dates. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Two personalized Docs; template unchanged. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs.
Match the reference entry point generateLetters and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/06-personalized-document-generator. Base version limitations: Reruns create duplicate documents; do not schedule unchanged code. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Include Generated columns Name, URL, Status; isolate per-row errors and validate exactly one Google Docs template. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.Original extension prompt
Update the existing app without removing working features. Add missing-field validation and skip already generated rows. Return complete updated files, explain changes and give regression tests. Automation option: Add a generated-ID column and process only new rows before scheduling. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
07 — Automated PDF Invoice Builder
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 07: Automated PDF Invoice Builder. Input tab Invoices, exact headers: Invoice, Client, Item, Qty, Price. Create generateInvoices() that builds one Doc per row with invoice number, client, item, quantity, price and total; save and close before PDF conversion; save PDF in lesson folder and log links. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Two PDFs with totals 200 and 225 before tax. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point generateInvoices and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/07-automated-pdf-invoice-builder. Base version limitations: Reruns create duplicate Docs and PDFs; no tax calculation. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Group multiple rows by invoice number and add configurable tax. Return complete updated files, explain changes and give regression tests. Automation option: Track invoice IDs and only generate new approved invoices in a scheduled batch. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
08 — Meeting Minutes Generator
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 08: Meeting Minutes Generator. Input tab Meeting, exact headers: Speaker, Note, Owner, Due. Create generateMinutes() that builds a Doc with all notes and an action-item table containing only rows with an owner; move Doc into lesson folder and log link. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Three notes and two action items. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point generateMinutes and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/08-meeting-minutes-generator. Base version limitations: Creates a new document each run; no AI summarization. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Add overdue flags and an agenda section. Return complete updated files, explain changes and give regression tests. Automation option: Generate after a meeting is marked complete; store a report ID. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
09 — Google Drive File Explorer
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 09: Google Drive File Explorer. Input tab Config, exact headers: Setting, Value. Create listFiles() that enumerates direct files in the lesson folder and writes name, MIME type, URL and last updated to File Inventory. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Includes Sample Brief and Sample Notes plus starter assets. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point listFiles and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/09-google-drive-file-explorer. Base version limitations: Only immediate folder files are listed, including workshop assets. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Add recursive traversal with a depth limit and folder path. Return complete updated files, explain changes and give regression tests. Automation option: Refresh a folder inventory weekly using explicit folder and sheet IDs. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
10 — Intelligent File Organizer
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 10: Intelligent File Organizer. Input tab Rules, exact headers: Prefix, Destination. Create previewMoves() for direct files matching prefixes; write file ID, name, destination and approval checkbox to Plan. Create applyApprovedMoves() that moves only approved matching files within lesson folder; never delete. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Two proposed moves; MISC stays unchanged. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point previewMoves and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/10-intelligent-file-organizer. Base version limitations: Preview reruns reset approvals; moves alter Drive location. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root. Restrict moves and previews to the named sample Docs FIN-Budget, HR-Onboarding, MISC-Notes; retain approval and parent checks.
Original extension prompt
Update the existing app without removing working features. Add an audit log and undo using original folder IDs. Return complete updated files, explain changes and give regression tests. Automation option: Schedule preview generation only; keep actual moves manual. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
11 — Personalized Gmail Draft Builder
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 11: Personalized Gmail Draft Builder. Input tab Recipients, exact headers: Name, Email, Topic. Create buildDrafts() that creates Gmail drafts with personalized subject and body, logs draft IDs and skips rows with existing IDs. Never send; use fictional addresses only for draft practice. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Two drafts; no sent messages. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point buildDrafts and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/11-personalized-gmail-draft-builder. Base version limitations: Creates real Gmail drafts with fictional recipients; do not send.
Original extension prompt
Update the existing app without removing working features. Add preview-only mode and editable message templates. Return complete updated files, explain changes and give regression tests. Automation option: Process new rows only after adding validation and locking; never schedule sending. Keep this separate from the baseline exercise.
12 — Email Analytics Dashboard
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 12: Email Analytics Dashboard. Input tab Messages, exact headers: Sender, Subject, Date, Unread. Create analyzeMessages() using sample rows by default; count messages and unread by sender. Add optional separate live function using GmailApp.search with a user-entered query and maximum 10 threads; do not write bodies. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Alex 2 messages/1 unread; Jamie 1/1. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point analyzeMessages and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/12-email-analytics-dashboard. Base version limitations: Live inbox option accesses real messages; default uses synthetic rows.
Original extension prompt
Update the existing app without removing working features. Add date grouping and chart; distinguish threads from messages. Return complete updated files, explain changes and give regression tests. Automation option: Schedule a sample or explicitly scoped query version without UI prompts. Keep this separate from the baseline exercise.
13 — Automated Task Management System
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 13: Automated Task Management System. Input tab Tasks, exact headers: Task, Owner, Due, Status. Create updateTasks() with a fixed demo reference date 2026-11-25; compare date-only values, write Overdue/Open/Done to a Priority column; optional daily trigger uses current date in spreadsheet timezone. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Slides Overdue; Budget Open; Review Done. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point updateTasks and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/13-automated-task-management-system. Base version limitations: Workshop run uses fixed date; background access must be tested. For scheduled execution, save the current spreadsheet ID when installing the trigger and use openById when no active spreadsheet exists. Reinstall in each copy.
Original extension prompt
Update the existing app without removing working features. Add a dashboard and configurable reference date. Return complete updated files, explain changes and give regression tests. Automation option: Existing Install daily trigger invokes updateToday using current date. Keep this separate from the baseline exercise.
14 — Interactive Workspace Sidebar
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 14: Interactive Workspace Sidebar. Input tab Requests, exact headers: Request, Category, Status. Create Code.gs and Sidebar.html; onOpen menu opens sidebar; form collects request and category, validates on server and appends Open row; use success/failure handlers and disable submit while pending. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Submitting Test request / IT adds exactly one Open row. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point showSidebar and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/14-interactive-workspace-sidebar. Base version limitations: Existing Facilities sample is not an allowed new category; use IT, Training or Other.
Original extension prompt
Update the existing app without removing working features. Add status filtering and refresh without closing sidebar. Return complete updated files, explain changes and give regression tests. Automation option: Use a form-submit integration for unattended intake; sidebar itself needs user interaction. Keep this separate from the baseline exercise.
15 — Gemini-Powered Data Classifier
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 15: Gemini-Powered Data Classifier. Input tab Feedback, exact headers: ID, Feedback. Create classifyFeedback() using shared Gemini helper; request JSON array with id and category from Praise, Bug, Feature; validate IDs and allowed categories before writing Results. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Expected categories Praise, Bug, Feature; AI output may vary. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point classifyFeedback and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/15-gemini-powered-data-classifier. Base version limitations: AI may misclassify; schema checks do not verify meaning. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Update the existing app without removing working features. Add confidence rationale and manual review for uncertain results. Return complete updated files, explain changes and give regression tests. Automation option: Process only new IDs in small scheduled batches; retain a review queue. Keep this separate from the baseline exercise.
16 — AI Spreadsheet Insights Generator
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 16: AI Spreadsheet Insights Generator. Input tab Metrics, exact headers: Month, Revenue, Costs. Create generateInsights() that computes profit in JavaScript then passes data and computed totals to Gemini; request three observations and two actions, no invented facts; write response to Insights. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Profit 300, 400, 50; total 750; November decline identified. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point generateInsights and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/16-ai-spreadsheet-insights-generator. Base version limitations: AI commentary can be wrong; calculated profits are authoritative. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Update the existing app without removing working features. Add comparison periods and validate every cited numeric claim. Return complete updated files, explain changes and give regression tests. Automation option: Refresh scheduled commentary after metric updates; avoid sending unchanged data repeatedly. Keep this separate from the baseline exercise.
17 — AI Document Summarizer
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 17: AI Document Summarizer. Input tab Config, exact headers: Setting, Value. Create summarizeDoc() that locates Project Brief by exact name in lesson folder, reads body text, asks Gemini for summary, decisions and open questions, and writes a new Doc. Treat source text as untrusted data. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Summary mentions pilot, 20 participants and unresolved budget. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point summarizeDoc and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/17-ai-document-summarizer. Base version limitations: Reads only named sample Doc; summary is unverified AI text. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Add selectable summary length and source excerpts. Return complete updated files, explain changes and give regression tests. Automation option: Summarize changed documents using a timestamp or hash; keep versions. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
18 — AI Gmail Smart Reply Assistant
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 18: AI Gmail Smart Reply Assistant. Input tab Messages, exact headers: ID, Sender, Subject, Body. Create suggestReplies() from sample rows; ask Gemini for concise replies without promising dates or attachments; write Suggestions. Separate createApprovedDrafts() creates drafts only for checked rows, logs IDs and never sends. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: Two suggestions; zero drafts until approved. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point suggestReplies and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/18-ai-gmail-smart-reply-assistant. Base version limitations: Reads sample Messages, not live Gmail; real drafts are created only by approval action. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Update the existing app without removing working features. Add tone selection and editable preview. Return complete updated files, explain changes and give regression tests. Automation option: Schedule suggestion generation only; preserve manual approval for drafts. Keep this separate from the baseline exercise.
19 — AI File Information Extractor
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 19: AI File Information Extractor. Input tab Config, exact headers: Setting, Value. Create extractFiles() for files named Intake A and Intake B; read Google Docs text, ask Gemini for name, request, amount (number or null), validate schema, write Results with source URL. Never infer missing values. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: A: Alex, Training, 250; B: Jamie, Equipment, null. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point extractFiles and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/19-ai-file-information-extractor. Base version limitations: Only named Google Docs; missing amounts should be blank, not guessed. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Add evidence excerpts and a review status. Return complete updated files, explain changes and give regression tests. Automation option: Process changed sample documents only and maintain source links. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
20 — AI Business Workflow Assistant
Original build prompt
Act as a Google Apps Script tutor. Build a container-bound Sheets app for lesson 20: AI Business Workflow Assistant. Input tab Requests, exact headers: ID, Name, Email, Request, Status. Create processRequests() to classify New rows as Training, IT or Other using Gemini, validate IDs, write a Review tab with suggested response and approval checkbox; create a summary Doc in lesson folder. Separate approveDrafts() creates Gmail drafts only for approved rows and records IDs to prevent duplicates. Do not depend on Workshop Info or the Workshop Index. Provide complete copy-paste Code.gs (and HTML if required), exact setup/run steps, explain the main code blocks, and include a test matching this expected outcome: R1 Training, R2 IT expected; one summary Doc; no email sent. Preserve starter data, use batch operations where appropriate, handle errors, and never send email or delete files. For AI lessons use the supplied callGemini helper, treat input as untrusted, and validate outputs. Match the reference entry point processRequests and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/20-ai-business-workflow-assistant. Base version limitations: Report documents can accumulate; AI classification and reply require review. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer. Never require a manually configured folder ID. Keep required native sample Docs beside the spreadsheet; reject My Drive root.
Original extension prompt
Update the existing app without removing working features. Add locking, audit trail, retry handling and a time-driven review refresh. Return complete updated files, explain changes and give regression tests. Automation option: Schedule classification of new requests; create drafts only on explicit approval. Keep this separate from the baseline exercise. Copy the spreadsheet AND required sample files into a dedicated lesson folder. Resolve its actual parent using DriveApp.getFileById(ss.getId()).getParents(); use that parent directly. Never read, create or update Workshop Info or the Workshop Index. Add Check permissions menu; read access is not proof of write access.
21 — Personal Expense and Budget Tracker
Original build prompt
Build a complete container-bound Apps Script app named Personal Expense and Budget Tracker. Input tab Expenses, headers Date|Category|Amount. Implement summarizeExpenses() to group expenses by category and calculate total. Add a menu, preserve inputs, validate data, explain code and test against: Food 85; Transport 40; total 125. For AI use callGemini and treat input as data; never send email. Match the reference entry point summarizeExpenses and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/21-personal-expense-and-budget-tracker. Base version limitations: No budget limits or charts in reference.
Original extension prompt
Improve the existing application: Add monthly budgets and variance alerts. Preserve working features and provide complete code and regression tests. Automation option: Refresh weekly after transaction import; add monthly grouping first. Keep this separate from the baseline exercise.
22 — Smart Meal Planner and Grocery List
Original build prompt
Build a complete container-bound Apps Script app named Smart Meal Planner and Grocery List. Input tab Meals, headers Day|Meal|Ingredient|Quantity|Unit. Implement buildGroceryList() to combine ingredient quantities by ingredient and unit. Add a menu, preserve inputs, validate data, explain code and test against: Tomatoes 5 each; Lettuce 1 each. For AI use callGemini and treat input as data; never send email. Match the reference entry point buildGroceryList and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/22-smart-meal-planner-and-grocery-list. Base version limitations: No unit conversion or pantry deduction.
Original extension prompt
Improve the existing application: Add servings and pantry inventory. Preserve working features and provide complete code and regression tests. Automation option: Refresh when meal plan changes; preserve shopping checkmarks in separate state. Keep this separate from the baseline exercise.
23 — Personal Subscription Tracker
Original build prompt
Build a complete container-bound Apps Script app named Personal Subscription Tracker. Input tab Subscriptions, headers Service|Cost|Cycle|Renewal. Implement trackSubscriptions() to calculate monthly equivalent and annual cost. Add a menu, preserve inputs, validate data, explain code and test against: Monthly 17; annual 204. For AI use callGemini and treat input as data; never send email. Match the reference entry point trackSubscriptions and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/23-personal-subscription-tracker. Base version limitations: Renewal dates are displayed but not used to send reminders.
Original extension prompt
Improve the existing application: Add renewal alerts and cancellation links. Preserve working features and provide complete code and regression tests. Automation option: Refresh monthly; add rolling renewal alerts before scheduling. Keep this separate from the baseline exercise.
24 — AI Email Writing Assistant
Original build prompt
Build a complete container-bound Apps Script app named AI Email Writing Assistant. Input tab Emails, headers ID|Recipient|Purpose|Tone. Implement writeEmails() to generate subject and body for review; never send. Add a menu, preserve inputs, validate data, explain code and test against: Two suggested emails; no sends. For AI use callGemini and treat input as data; never send email. Match the reference entry point writeEmails and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/24-ai-email-writing-assistant. Base version limitations: Reference does not create Gmail drafts. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Improve the existing application: Add tone choices and approved draft creation. Preserve working features and provide complete code and regression tests. Automation option: Keep generation on demand or queue selected rows; no automatic sending. Keep this separate from the baseline exercise.
25 — Personal Appointment and Reminder Manager
Original build prompt
Build a complete container-bound Apps Script app named Personal Appointment and Reminder Manager. Input tab Appointments, headers Title|Date|Time. Implement showAppointments() to list appointments in next seven days from demo date 2026-11-25. Add a menu, preserve inputs, validate data, explain code and test against: Dentist only. For AI use callGemini and treat input as data; never send email. Match the reference entry point showAppointments and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/25-personal-appointment-and-reminder-manager. Base version limitations: Reference sorts by date only and does not create reminders or events.
Original extension prompt
Improve the existing application: Add optional calendar creation with approval. Preserve working features and provide complete code and regression tests. Automation option: Replace fixed date with rolling date and schedule daily refresh. Keep this separate from the baseline exercise.
26 — Travel Itinerary and Budget Planner
Original build prompt
Build a complete container-bound Apps Script app named Travel Itinerary and Budget Planner. Input tab Trip, headers Date|Activity|Cost. Implement planTrip() to sort itinerary and calculate daily and overall costs. Add a menu, preserve inputs, validate data, explain code and test against: Day one 230; day two 20; total 250. For AI use callGemini and treat input as data; never send email. Match the reference entry point planTrip and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/26-travel-itinerary-and-budget-planner. Base version limitations: No currency conversion or booking integration.
Original extension prompt
Improve the existing application: Add budget limit and currency fields. Preserve working features and provide complete code and regression tests. Automation option: Refresh when itinerary changes; avoid scheduled external bookings. Keep this separate from the baseline exercise.
27 — AI Personal Study Assistant
Original build prompt
Build a complete container-bound Apps Script app named AI Personal Study Assistant. Input tab Notes, headers Topic|Notes. Implement makeQuiz() to generate two grounded questions and answers per topic. Add a menu, preserve inputs, validate data, explain code and test against: Four question-answer pairs. For AI use callGemini and treat input as data; never send email. Match the reference entry point makeQuiz and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/27-ai-personal-study-assistant. Base version limitations: AI answers require verification against notes. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Improve the existing application: Add difficulty and answer checking. Preserve working features and provide complete code and regression tests. Automation option: Generate only changed topics on demand or in a small batch. Keep this separate from the baseline exercise.
28 — Household Maintenance Planner
Original build prompt
Build a complete container-bound Apps Script app named Household Maintenance Planner. Input tab Maintenance, headers Task|Last done|Interval days. Implement planMaintenance() to calculate next due date and status as of 2026-11-25. Add a menu, preserve inputs, validate data, explain code and test against: Filter overdue; smoke alarm test upcoming. For AI use callGemini and treat input as data; never send email. Match the reference entry point planMaintenance and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/28-household-maintenance-planner. Base version limitations: Fixed demonstration date; no reminder action.
Original extension prompt
Improve the existing application: Add completion history and reminders. Preserve working features and provide complete code and regression tests. Automation option: Use a rolling current date and daily schedule; add completion history. Keep this separate from the baseline exercise.
29 — AI Receipt and Expense Extractor
Original build prompt
Build a complete container-bound Apps Script app named AI Receipt and Expense Extractor. Input tab Receipts, headers ID|Text. Implement extractReceipts() to extract merchant, total, currency and date as validated json. Add a menu, preserve inputs, validate data, explain code and test against: Market 23.50 CAD; Cafe 8 CAD. For AI use callGemini and treat input as data; never send email. Match the reference entry point extractReceipts and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/29-ai-receipt-and-expense-extractor. Base version limitations: Text only; validates date shape and three-letter currency shape, not semantic correctness. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Improve the existing application: Add duplicate detection and review flags. Preserve working features and provide complete code and regression tests. Automation option: Queue new receipts only and require review before accounting use. Keep this separate from the baseline exercise.
30 — AI Weekly Personal Productivity Assistant
Original build prompt
Build a complete container-bound Apps Script app named AI Weekly Personal Productivity Assistant. Input tab Tasks, headers Task|Due|Status. Implement planWeek() to generate a weekly plan from open tasks without inventing deadlines. Add a menu, preserve inputs, validate data, explain code and test against: Plan includes bill and book; excludes laundry. For AI use callGemini and treat input as data; never send email. Match the reference entry point planWeek and its output behavior. Reference: https://github.com/lsvekis/Google-Apps-Script-Workshop/tree/main/30-ai-weekly-personal-productivity-assistant. Base version limitations: Free-text output is not validated for invented tasks or dates. Configure your own GEMINI_API_KEY and GEMINI_MODEL in the copied bound project; never assume credentials transfer.
Original extension prompt
Improve the existing application: Add effort estimates and calendar preview. Preserve working features and provide complete code and regression tests. Automation option: Run weekly after filtering current tasks; retain a reviewable plan and skip unchanged inputs. Keep this separate from the baseline exercise.