Build and edit with the AI assistant
Add your AI key first
The assistant uses your own AI provider key. If you have not added one, Studio says "To use the AI builder, add your own AI provider key in your PGBHub settings." You can add it on the AI keys page of PGB Agents. It belongs to your account and works in both products.
Ask for a change
In the editor's Assistant panel:
- Type a request, for example: "Add a short testimonials section under the services with two example quotes."
- Press Enter, or choose Send. Shift+Enter starts a new line. Stop cancels a request in progress.
You see status messages, then the assistant's reply, then a box saying "N files changed" with each path marked Added, Changed or Removed, and the lines added (+) and removed (-). Choose a path to open that file. Check the preview.
How it applies changes safely
Studio gives the assistant your file list and the contents of your open files, within a size budget. Before anything changes, it takes a Before an assistant change save point. It checks every proposed change: no unsafe paths, no changes to locked files and no file over 1 MB. Invalid proposals are skipped. All valid changes are applied together as one Assistant change save point. If the total would break a size limit, nothing is applied and you see an error.
Because the assistant works from the files that are open, open the file you want changed before you ask.
Undo
Under the reply, choose Undo. The project returns to how it was before that request, and the button reads Undone. If you want to go back further, use History.
Describe an app from scratch
You can also begin with only an idea. On the Studio home page, type in Describe your app (up to 4,000 characters), for example "A booking site for my dog grooming business with prices and a contact form", and choose Start building (or press Ctrl+Enter). Studio creates a project and the assistant builds the first version. If you are signed out, you are asked to sign in and your text is kept.
Write better requests
- One thing at a time: "make the header darker" and then "add a pricing section".
- Be specific: say where, what words and which colours.
- Review the changes list every time.
- If the result is wrong, undo and rephrase, rather than stacking fixes.
Limits and privacy
The assistant makes one pass per request and cannot run your code. Your account may have a daily AI-edit limit; the message names it. To keep PGB safe from abuse we keep a copy of what you type into AI features for a limited time, with secrets masked, so never paste passwords or keys into the Assistant.
Try it yourself
- Ask the assistant for a testimonials section. Review the file list.
- Choose Undo. Confirm the section disappears.
- Ask again with more precise wording.
Recap
- The assistant edits real files, shows exactly what it changed and creates safety save points.
- Undo reverses a whole request.
- Add your own AI key before you start.
- Small, specific requests give the best results.
Open Access Course
Free
forever- 7 structured lessons across 4 modules
- Interactive knowledge checks with instant feedback
- Verifiable completion certificate & PDF