Grow your app
(and learn to fix it)
You already have a deployed app. Now you will learn to identify an error, explain it to AI and check the fix. Then you will add one specific improvement, keeping what already works.
- Format
- Self-paced and online
- Estimated time
- About 2.5 hours, over one or more sittings
- Essential
- Diagnose an error, test an improvement and check access
- Optional
- Present your app in 5 minutes
AI may suggest a function that does not exist, outdated instructions or a fix that introduces another error. Ask what changed and how you could check it. If it says it ran tests, ask which ones and in what environment. Generated code does not prove the app works.
↩From Session 1: you already have a dining room / frontend (Index.html), a kitchen / backend (Codi.gs) and a pantry (your spreadsheet), deployed with a link. Today you are not starting again: you are building on your app.
Choose what you will work on today. This personalises all the prompts below.
Test, read, fix
Coding with AI does not mean getting everything right first time. It is a loop: ask, test, read what happened, fix it and ask again. Record what you expected, what happened and how to reproduce it. Change one thing at a time.
Exercise: introduce an error and fix it ✓▸
You will introduce a small, reversible error in a practice copy. The deployed app will stay available.
First, prepare the test copy
- Copy the Session 1 spreadsheet using fictional data and check that the Apps Script project was copied too. If not, create it and copy both files. Change
ID_DEL_FULLto point to the test spreadsheet; keep the tab and column headers. - Keep a copy of both working files. In Apps Script, open Deploy → Test deployments → Web app and copy the
/devURL. Check it opens before introducing the error.
Now break it and fix it
- If
doGet()loadsIndex, rename only the HTML file fromIndextoInici, without changingdoGet(). Save and reload/dev. Record the exact message: the requested name no longer matches the file. - Send the prompt below with the error, steps and code from the copy. Ask for the cause and the smallest fix. You do not need to replace two files if restoring the name
Indexis enough. - Rename the file back to
Index, save and open/devagain. Save a fictional entry and check it reaches the test spreadsheet. If you cannot recover it, restore the saved copy.
/dev runs the latest saved code and is accessible only to project editors. /exec runs the deployed version: saving in the editor does not update it. You do not need to deploy the broken code for this exercise.The debugging prompt
Use this prompt whenever something goes wrong. Keep it handy.
Choose an improvement to open a guide with a prompt tailored to your app. Start with design or search. Editing data, pagination and photos need more checks. You do not have to complete all six options.
Security, step by step ✓▸
Now that your app is online and may have users, spend a few minutes on these six basic habits.
- Who can access it? Use “Only myself” for personal information; allow anyone only for forms designed for that audience. Do not open an app containing private data to everyone.
- Do not expose other people’s data. In a public registration form, each person should see only their confirmation, not everybody’s names and email addresses.
- Code can be shared; secrets cannot. In Session 3 you will take the code to GitHub. Do not include passwords or personal data.
- Understand what you authorise. Accepting a Drive or email permission lets the app act on your behalf. Check its scope and which function needs it. Generating the code yourself does not make it safe; stop and ask for help if you do not understand it.
- Consider spam. A public form can receive many submissions. If it collects important information, ask for validation or limits and test them.
- Respect personal data. Names and email addresses belong to other people: use them only for the stated purpose and remove them when no longer needed.
Practise with fictional data and an authorised account. For real use, agree with the responsible person what data may be processed, who has access, which services are authorised and who will maintain the app. Workspace alone does not resolve permissions or data protection. See the business guide.
Ask the AI for a security review
The prompt helps identify risks. An AI review does not certify security: check the findings against the code and access tests.
Prepare your best app ✓▸
Explaining what you built helps you understand it. If you want to share it with family, colleagues or a course group, prepare a 5-minute presentation. Choose your best app and use this outline:
- What it does and who it is for (30 s): the idea in one sentence.
- Show it working (1–2 min): open the link and add an entry live.
- How you built it with AI (1 min): which prompt helped and which improvement you like most.
- What failed and how you fixed it (1 min): the loop. This is particularly useful for your audience.
- What you would add (30 s): your next improvement.
Record your checks in the change and test worksheet. You can also download it as Markdown.
Before you finish…
Today’s goal is not to add endless features: it is to improve your app independently and know what to do when it fails. Check these off:
- ✓I introduced an error and fixed it using the debugging prompt.
- ✓I applied at least one improvement and deployed it using “New version”.
- ✓(Optional) If I add photos, I have checked where they are stored and who can open them.
- ✓I have reviewed security: access is appropriate and I expose neither other people’s data nor secrets in the code.
- ✓I have tested the deployed version and checked access. Sharing it is optional.
- ✓If it fails again, I know to read the error and give it to the AI with my code.
- ✓(Optional) I have prepared a 5-minute presentation of my best app.
My improved apps gallery
Your app link: the same address, with your improvements applied.
Check your understanding
This is for you, not an exam or a grade. Think through your answers, then compare them below.
- How do you test a fix without changing the deployed version yet?
- When the app fails, what do you do before sending anything to AI?
- Can AI edit your code? How do you apply an improvement?
See the answers ▾
1. Keep a copy, reproduce the error, review the proposal and test it at /dev. When it works, update /exec with a new version of the existing deployment.
2. Read the error and look for clues such as a file or line number. Then send it with the code.
3. In this session’s chat workflow, you apply the reviewed changes. An agent connected to files may edit them with the relevant permissions; that does not mean it has tested or deployed the app.