Course · Build apps with AI · Session 1

Build your first app

Build a log you can open, fill in and return to. AI will help with the code; you will connect the pieces and check the result. You will first deploy it with restricted access.

Format
Online, at your own pace
Estimated time
About 2.5 hours, over one or more sittings
Essential
Save, retrieve and update an app
Optional
Improvements and access for other people
One app, one practice spreadsheet: each project uses its own document. If you prepared a blank one in session 0, use it now. For another app, create another spreadsheet.

Before you start: use fictional data and an authorised account, and do not paste customer data or credentials into the chat. You can paste the prompts into whichever AI assistant you are authorised to use: the Gemini button is a shortcut, not a requirement.

The result: after saving a record, you will see it in the spreadsheet and it will still be there when you reload the app. You will finish by changing a detail and deploying a new version at the same link.
Choose what you want to build

Before you finish…

Check the result before marking the exercise complete. You do not need to memorise the code, but you should know what each part does and what you have tested.

My app gallery

When you publish the app, paste its link (/exec) here. It is saved in your browser and will be here when you return. If you start others, they will appear here.

The takeaway: the dining room collects the request, the kitchen checks it and the pantry keeps the data. You verify that the whole journey works.
In the next session: we will extend one of these apps with more logic, guided improvements and the test → fix → redeploy loop.

Check your understanding

This is for you, not an exam or a grade. Think through your answers, then compare them below.

  1. What are the two files in an Apps Script app, and what does each do?
  2. What must you configure so the backend can find the spreadsheet and data?
  3. What do you do if an unexpected permission is requested?
  4. How do you test and update the app without changing its link?
See the answers ▾

1. Index.html is the dining room in the browser and Codi.gs is the kitchen in Apps Script. They communicate through google.script.run.

2. The document ID, the Registres tab and the headers in row 1. The backend opens the document using SpreadsheetApp.openById.

3. Stop and review the account, project, code and permissions. If it is an organisational restriction, consult the administrator.

4. Check valid input, invalid input, persistence and access. Then update the existing deployment through Manage deployments → Edit → New version and repeat the tests at the same /exec.