DiscoveryVIP · Hands-On AI
PROJECT 08

Meeting Minutes Generator

Meeting notes and actions become scattered.

Try interactive applicationDownload complete source

What this teaches

Convert structured notes into readable minutes. Team meetings, clubs and project reviews.

Start without an account in the local application. Read/edit the input, predict a result, run the current source and verify output. A local document preview is not a real Google Doc; a fixture is not a live model response.

Input and expected result

Input tab: Meeting. Entry function: generateMinutes().

SpeakerNoteOwnerDue
AlexPrepare slidesAlex2026-12-01
JamieReview budgetJamie2026-12-03
SamNext meeting Friday

Expected baseline: Three notes and two action items.

Exact Workspace setup

  1. Download and unzip this project. Use one separate bound script per lesson.
  2. Create a dedicated Drive folder. Create a native Google Sheet inside it, and import starter.csv into a tab named Meeting. Check the exact headers above.
  3. Open the Sheet → Extensions → Apps Script. Paste finished Code.gs into the script editor. Save.
  4. Choose generateMinutes in the function selector → Run. Review actual requested permissions. Reload the Sheet for the Workshop menu.
  5. Compare output with the baseline above. Check generated documents/drafts manually. No email should be sent.
  6. Perform the original challenge, investigate a failure and test duplicate/partial runs before scheduling. Do not install a trigger just because one manual run succeeded.

Understand the implementation

Append notes, then filter rows with owners into an action table.

Key operations: appendParagraph(); setHeading(); appendTable(); moveTo()

Focused source spotlight

This is an excerpt, not a standalone script. The complete implementation follows.

function generateMinutes(){
// Separate discussion notes from assigned actions.
const rows=input('Meeting');const d=DocumentApp.create('Meeting Minutes');const b=d.getBody();rows.forEach(r=>b.appendParagraph(r[0]+': '+r[1]));b.appendParagraph('Action items');b.appendTable([['Action','Owner','Due'],...rows.filter(r=>r[2]).map(r=>[String(r[1]),String(r[2]),day(r[3])])]);d.saveAndClose();const f=DriveApp.getFileById(d.getId());f.moveTo(folder());output('Generated',['URL'],[[f.getUrl()]]);
}

Complete Code.gs

// Meeting Minutes Generator
// Entry point: generateMinutes; source data stays intact unless explicitly noted.
function onOpen(){SpreadsheetApp.getUi().createMenu("Workshop").addItem("Run application","generateMinutes").addItem("Check permissions","checkPermissions").addToUi();}
function generateMinutes(){
// Separate discussion notes from assigned actions.
const rows=input('Meeting');const d=DocumentApp.create('Meeting Minutes');const b=d.getBody();rows.forEach(r=>b.appendParagraph(r[0]+': '+r[1]));b.appendParagraph('Action items');b.appendTable([['Action','Owner','Due'],...rows.filter(r=>r[2]).map(r=>[String(r[1]),String(r[2]),day(r[3])])]);d.saveAndClose();const f=DriveApp.getFileById(d.getId());f.moveTo(folder());output('Generated',['URL'],[[f.getUrl()]]);
}
function input(name) { const s=SpreadsheetApp.getActive().getSheetByName(name); if(!s) throw Error('Missing tab: '+name); return s.getDataRange().getValues().slice(1).filter(r=>r.some(v=>v!=='')); }
function output(name,headers,rows) { const ss=SpreadsheetApp.getActive(); const s=ss.getSheetByName(name)||ss.insertSheet(name); s.clearContents(); s.getRange(1,1,1,headers.length).setValues([headers]).setFontWeight('bold'); if(rows.length) s.getRange(2,1,rows.length,headers.length).setValues(rows.map(r=>r.map(v=>typeof v==='string' && /^[=+@-]/.test(v)?"'"+v:v))); s.setFrozenRows(1); return s; }
// Resolve this spreadsheet's actual folder; metadata is informational only.
function folder() {
  const ss = SpreadsheetApp.getActiveSpreadsheet();
  if (!ss) throw new Error('Open the lesson spreadsheet first.');
  const parents = DriveApp.getFileById(ss.getId()).getParents();
  if (!parents.hasNext()) throw new Error('Move the spreadsheet into a dedicated lesson folder.');
  const actual = parents.next();
  if (parents.hasNext()) throw new Error('Ambiguous parent folder.');
  if (actual.getId() === DriveApp.getRootFolder().getId()) throw new Error('Move the spreadsheet and sample files into a dedicated lesson folder, not My Drive root.');
  return actual;
}
function checkPermissions() {
  const ui = SpreadsheetApp.getUi();
  try {
    const target = folder();
    ui.alert('Folder access passed: ' + target.getName() + '\n' + target.getUrl() + '\nWrite access is checked when the application runs.');
  } catch (e) { ui.alert('Access check failed: ' + e.message); }
}
function day(v){return v instanceof Date?Utilities.formatDate(v,SpreadsheetApp.getActive().getSpreadsheetTimeZone(),'yyyy-MM-dd'):String(v).slice(0,10);}

Four guided activities

Discover and run

Meeting notes and actions become scattered.

  1. Inspect the editable Meeting table. The starter has 3 records.
  2. Write your predicted result in Prediction. Click Run application.
  3. Compare Output with: Three notes and two action items.
  4. Click Verify baseline; explain one result in Notes.

Expected: Three notes and two action items.

Understand and modify

Assign Sam an owner and due date; expect three action rows.

  1. Open Source and read generateMinutes. Select the entry function in the walkthrough.
  2. Return to Application. Click Prepare original challenge to create a separate challenge starting state.
  3. For AI projects inspect the revised recorded fixture: this is supplied response data, not newly generated AI.
  4. Run application and use Verify challenge; approval/sidebar projects show extra required steps.

Expected: Assign Sam an owner and due date; expect three action rows.

Investigate and repair

Unassigned action

  1. Save a snapshot if you want to keep your experiment.
  2. Click Inject investigation. Remove Alex’s Owner value.
  3. Run application and inspect Output and Execution trace. Some investigations produce wrong/stale content rather than exceptions.
  4. Repair it: Restore Alex. Expect two action items; a note with no owner is not an action. Run again and explain the root cause.

Expected: The action table filters on Owner truthiness; it does not infer responsibility.

Extend and automate

Add overdue flags and an agenda section.

  1. Open Prompts. Select Extend and adapt the requirement to your goal.
  2. Build the feature in Source or export the complete project to Apps Script.
  3. Retest baseline and original challenge before considering scheduling.
  4. Use Resources → Automation readiness. Generate after a meeting is marked complete; store a report ID.

Expected: The baseline still works; independent extension checks are designed and reviewed by you.

Original exercise

Assign Sam an owner and due date; expect three action rows.

Debugging and troubleshooting

Unassigned action

Remove Alex’s Owner value.

Hint 1

Check the exact input/response contract and identify the affected field.

Hint 2

Append notes, then filter rows with owners into an action table.

Hint 3 and repair

Restore Alex. Expect two action items; a note with no owner is not an action.

The action table filters on Owner truthiness; it does not infer responsibility.

Missing tab: check its exact name. Missing document: ensure unique native companion Docs share the Sheet’s dedicated folder. Authorization failure: review source and contact your administrator. Recorded response exhausted: add a new explicit fixture; no live AI is running. Invalid JSON: repair syntax before validating schema. Valid but unsupported content: compare each claim with source records.

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.

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.

Knowledge check and answer key

  1. Which input tab does generateMinutes read?
    Answer

    Meeting

  2. Which function starts the original application?
    Answer

    generateMinutes

  3. What is the baseline output you must verify?
    Answer

    Three notes and two action items.

  4. Does this project need runtime Gemini in the real Workspace baseline?
    Answer

    No; Gemini can help during development only.

  5. What limitation matters before scheduling?
    Answer

    Creates a new document each run; no AI summarization.

Safe automation

Generate after a meeting is marked complete; store a report ID.

Known limitation

Creates a new document each run; no AI summarization.

Reflect and extend

Explain the transformation using one actual input row. Which incorrect value could still pass structural validation? What happens if the function runs twice or fails after creating one output? Write your explanation before building this extension: Add overdue flags and an agenda section.

Source alignment

Physical slide 28; printed sequence 19 of 48. Reference source SHA-256 8a9c6af5a668e2119238d134a062d2fe580d962b9a592355e0b5c6eca6c47819.

Slide notes use Workshop Info B2. Verified repository resolves the active spreadsheet parent folder; this build follows the repository. Keep companion files in that dedicated lesson folder.

Pinned repository reference · Full source manifest

Five-minute presenter demonstration

0:00–0:45

Action: Open Input. Read Meeting headers and first row.

Meeting notes and actions become scattered. This application is useful for Team meetings, clubs and project reviews. We will run the verified reference code against fictional data.

0:45–1:30

Action: Ask for predictions. Click Run application, then Verify baseline.

Our baseline is Three notes and two action items. The browser displays local results. It has not connected to Google or a model.

1:30–3:00

Action: Open Source. Select generateMinutes in the code walkthrough.

Append notes, then filter rows with owners into an action table. The complete code is available to edit and download. The excerpt is not a standalone script.

3:00–4:15

Action: Click Prepare original challenge, inspect the changed inputs, and Run application. Complete extra review/sidebar steps if listed.

Assign Sam an owner and due date; expect three action rows. For AI lessons we edit a recorded response as well as source data. That response must be checked, not trusted.

4:15–5:00

Action: Click Verify challenge. Open Guide and read Automation considerations.

The important limitation is: Creates a new document each run; no AI summarization. Before scheduling: Generate after a meeting is marked complete; store a report ID. Explain the result yourself before moving on.

Launch temporary demo