- Add autotask-architecture.svg showing intent classification flow - Convert all designer-panel format to wa-chat (WhatsApp style) - Remove emojis and icons per PROMPT.md standards - Convert ASCII diagrams to tables - Delete CODER-PROMPT.md and implementation.md - Rename chapter from 21 to 17 - Add 6 SVG diagrams for chapter 17 - Fix book.toml: devchat-panel.css to designer-panel.css - Update SUMMARY.md with correct paths
9.6 KiB
Designer
Designer is an AI assistant that appears alongside your application. Use natural conversation to modify any aspect of your app without writing code.
How It Works
Designer understands the context of your application. When you make a request, it knows which app you are viewing, which page is active, and what tables exist.
Change the schedule button to blue
Updating schedule.html:
.btn-schedule { background-color: #3498db; }
Button color changed to blue.
What Designer Can Modify
| Category | Examples |
|---|---|
| Styles | Colors, layout, fonts, spacing |
| HTML Pages | Forms, lists, buttons, elements |
| Database | Add fields, create tables |
| Tools | Voice commands, chat triggers |
| Schedulers | Automated tasks, reports |
Editing Styles
Make the colors more modern, blue tones
Updating styles.css:
Primary color: #2563eb
Secondary color: #3b82f6
Background: #f8fafc
Visual style updated.
Adding Form Fields
Add an insurance field to the patient form
Making two changes:
1. tables.bas - new field:
insurance AS STRING
2. patients.html - new input added
Insurance field added to form.
Creating Voice Commands
Create a command to see today's appointments
Creating .gbdialog/tools/todays-appointments.bas
Triggers: "today's appointments", "daily schedule"
Command created. Say "today's appointments" to use it.
Creating Schedulers
Every day at 9am send reminders to today's patients
Creating .gbdialog/schedulers/daily-reminder.bas
Schedule: Every day at 9:00 AM
Action: Send reminder to patients with appointments today
Scheduler configured.
Adding Database Fields
Add SSN field to the patients table
Updating tables.bas:
Adding: ssn AS STRING UNIQUE INDEX
Database synchronized.
Field available in all apps.
Context Awareness
Designer tracks your current location and correlates follow-up requests.
| Context | How It Is Used |
|---|---|
| Current app | Edits apply to that app's files |
| Current page | Defaults edits to that file |
| Recent changes | Correlates follow-up requests |
| Available tables | Knows your data structure |
| Existing tools | Knows voice commands already created |
Change the button to green
Changing button in schedule.html to green.
Button updated.
And add a notes field
Adding notes field to the same form.
Field added.
Handling Sensitive Information
When Designer needs API keys or credentials:
Integrate with Stripe for payments
To integrate with Stripe, I need the API Key.
Do you want to provide it now or later?
Later
Saved as pending item.
Pending: Stripe API Key
You can provide it in Settings, Pending Items.
Payment structure created. When you provide the key, it will work automatically.
Preview Before Changes
Designer shows what will change before applying destructive operations.
Remove the email field from the form
I will remove the email field from patients.html.
Note: The field will remain in the database. Existing data will not be lost.
Confirm?
Yes
Field removed from form.
Safety Features
| Feature | Description |
|---|---|
| Preview changes | Shows what will change before applying |
| Confirm destructive actions | Asks before deleting |
| Change history | All changes are logged |
| Undo support | Can undo recent changes |
Limitations
| Limitation | Reason |
|---|---|
| Cannot delete entire app | Safety protection |
| Cannot access external systems without credentials | Security |
| Cannot modify system files | Isolation |
| Cannot execute arbitrary code | Security |
Available Keywords
Designer uses GB BASIC keywords to implement changes:
| Category | Keywords |
|---|---|
| Communication | TALK, HEAR, SEND MAIL, SEND TEMPLATE |
| Data | FIND, SAVE, UPDATE, DELETE |
| Automation | SET SCHEDULE, ON CHANGE, ON EMAIL |
| AI | LLM, USE KB |
| Web | SCRAPE, GET, POST, RSS |
| Memory | SET BOT MEMORY, GET BOT MEMORY |
| Control | IF/THEN/ELSE, FOR EACH/NEXT, WHILE/WEND |
Undoing Changes
Undo the last change
Last change: Removed email field from patients.html
Do you want to undo?
Yes
Email field restored.
Tips for Better Results
Be Specific
| Less Effective | More Effective |
|---|---|
| "improve the form" | "add email validation to the form" |
| "change the colors" | "change the main button to green" |
| "fix this" | "increase the font size in the table" |
Combine Requests
Add SSN field to patient form with mask and validation, and show it in the list too
Making 3 changes:
1. tables.bas - new SSN field
2. patients.html - input with mask XXX-XX-XXXX
3. patients.html - SSN column in the table
All changes applied.
Next Steps
- App Generation — How apps are created
- Task Workflow — How tasks are processed
- Data Model — TABLE keyword reference