Resource library
Every copy-ready prompt, the glossary, and how the same skills apply to other organisations.
100 results
Explain a term simply (M1)
Explain [term] to me as if I run a small business and have never written code. Use one everyday comparison and one example from a clinic or salon. Maximum 80 words.
Ask AI to check your thinking (M1)
I am learning how business web apps work. Here is my breakdown of a real business website into domain, hosting, web application, public website, admin dashboard and database: [paste notes]. Tell me what I got right, what I got wrong, and explain any mistake in one simple sentence.
Module 1: Understanding AI App Building
By the end of this lesson, you will be able to explain what a website, web application, Admin Dashboard, database, hosting and domain are — and say which jobs AI does and which jobs you must do yourself.
Hello project for Railway (M2)
Create a minimal Node.js web app for Railway that shows a page saying 'Hello from ClientDesk' and the current date. Listen on process.env.PORT. Include package.json with a start script and a .gitignore excluding node_modules and .env. Give me a single downloadable zip and the exact human steps to upload to GitHub (web only) and deploy on Railway.
Explain a setup screen (M2)
I'm on [service]'s [page name] screen and I see these options: [describe]. I am a beginner setting up [goal]. Which option should I choose and why? If a choice affects cost or security, tell me.
Generate the test project (M2)
Create a minimal Node.js web app for Railway that shows a page saying 'Hello from ClientDesk' and the current date. Requirements: listen on process.env.PORT; include package.json with a start script; include a .gitignore that excludes node_modules and .env; no secrets anywhere. Give me everything as a single downloadable zip, then list the exact human steps to upload it to a new private GitHub repository using the GitHub website (no terminal) and deploy it on Railway from GitHub.
Module 2: Preparing the Tools
By the end of this lesson, you will be able to create and secure your Claude (or ChatGPT), GitHub and Railway accounts, connect GitHub to Railway, and put a first test page live on the internet.
10-part build prompt template (M3)
PURPOSE: Build [app name] to help [business] [solve problem]. USERS: [visitors / staff / owner]. PAGES: [list every page]. FEATURES: [for each page, what it does]. ROLES: [who can see/do what; visitors can never open the Admin Dashboard]. DATA: Store in Railway PostgreSQL: [record types and their fields]. SECURITY: Secure server-side login with hashed passwords; secrets only in environment variables; never expose secrets in front-end code; validate all form input. APPEARANCE: [style, colours, mobile-friendly]. OUTCOME: When finished, [describe the working result]. TESTING: Give me a checklist of tests a non-programmer can click through, with expected results, and list every human action I must do (accounts, variables, deployment). Before writing code, summarise your plan and ask me up to five questions.
Fix a missing part (M3)
Your plan is missing [part]. Add it, explain the change in one sentence, and show me the updated plan only — no code yet.
Ask for a plan, not code (M3)
Before writing any code, summarise your build plan as a numbered list and ask me up to five questions about anything unclear.
Module 3: Writing Effective AI Prompts
By the end of this lesson, you will be able to write a complete build prompt that tells AI the purpose, users, pages, features, roles, data, security rules, appearance, expected outcome and tests for a business app.
ClientDesk Admin Dashboard (full) (M4)
Build the first version of ClientDesk, a business web app for a fictional cleaning company, using Next.js (App Router) and TypeScript, ready to deploy on Railway from GitHub. Start with ONE integrated, protected Admin Dashboard at /admin with a sidebar: Overview (summary statistic cards), Customers, Enquiries, Bookings, Staff and Settings. SECURITY: a /login page; server-side sessions in an httpOnly secure cookie signed with SESSION_SECRET; the first admin comes from ADMIN_EMAIL and ADMIN_PASSWORD environment variables and the password is hashed with bcrypt; every /admin page and admin API checks the session on the server and redirects to /login if missing; limit login attempts; friendly error for wrong details; a Sign out button. Never put secrets in front-end code or files. APPEARANCE: dark navy with teal accents, clear and mobile-friendly. Leave lists empty for now with friendly empty states. Give me a downloadable zip, a .gitignore (node_modules, .env), the exact Railway Variables to add (names only), and a click-through test checklist with expected results.
Diagnose a login problem (M4)
My ClientDesk login always says 'invalid details' even with the right password. I set Railway Variables ADMIN_EMAIL, ADMIN_PASSWORD and SESSION_SECRET (I won't share values). Here are the last 30 lines of the Railway deploy logs with secrets removed: [paste]. What are the three most likely causes, and how do I check each one without sharing secrets?
Generate the dashboard (M4)
Build the first version of ClientDesk, a business web app for a fictional cleaning company, using Next.js (App Router) and TypeScript, ready to deploy on Railway from GitHub. Start with ONE integrated, protected Admin Dashboard at /admin with a sidebar: Overview (summary statistic cards), Customers, Enquiries, Bookings, Staff and Settings. SECURITY: a /login page; server-side sessions in an httpOnly secure cookie signed with SESSION_SECRET; the first admin comes from ADMIN_EMAIL and ADMIN_PASSWORD environment variables and the password is hashed with bcrypt; every /admin page and admin API checks the session on the server and redirects to /login if missing; limit login attempts; show a friendly error for wrong details; a Sign out button. Never put secrets in front-end code or in files. APPEARANCE: dark navy with teal accents, clear and mobile-friendly. Leave data lists empty for now with friendly empty states. Give me a downloadable zip, a .gitignore (node_modules, .env), the exact Railway Variables I must add (names only, no values), and a click-through test checklist with expected results.
Module 4: Building the Admin Dashboard
By the end of this lesson, you will be able to create a secure ClientDesk Admin Dashboard with a protected login, management pages, navigation, summary statistics and settings — and prove that visitors cannot get in.
Customer records with Railway PostgreSQL (M5)
Update my ClientDesk Next.js app to use Railway PostgreSQL via the DATABASE_URL environment variable (server-side only, using Prisma). Create a Customer table: id, fullName (required), email (validated), phone, notes, createdAt, updatedAt. In the Admin Dashboard Customers section add: list with search by name/email and newest-first sorting; Add customer form; Edit; Delete with confirmation allowed only for the owner role. All database access on the server after checking the admin session. Run migrations automatically on deploy. Update the Overview 'Customers' card with the real count. Give me only the changed/new files plus instructions, and a persistence test checklist (refresh + redeploy).
Build failed after adding the database (M5)
My Railway deploy failed after adding PostgreSQL. Here are the build/deploy log lines around the error (secrets removed): [paste]. My variables are DATABASE_URL (reference to Postgres), ADMIN_EMAIL, ADMIN_PASSWORD, SESSION_SECRET. Explain the error in plain English and give me the smallest fix.
Add customer records (M5)
Update my ClientDesk Next.js app to use Railway PostgreSQL via the DATABASE_URL environment variable (server-side only, using Prisma). Create a Customer table: id, fullName (required), email (validated), phone, notes, createdAt, updatedAt. In the Admin Dashboard Customers section add: list with search by name/email and newest-first sorting; Add customer form; Edit; Delete with a confirmation step allowed only for the owner role. All database access must happen on the server after checking the admin session. Run database migrations automatically on deploy. Update the Overview card 'Customers' with the real count. Give me only the changed/new files plus instructions, and a persistence test checklist (refresh + redeploy).
Module 5: Adding Railway PostgreSQL
By the end of this lesson, you will be able to add a Railway PostgreSQL database, connect it securely to ClientDesk, and create, read, update and delete customer records that survive a browser refresh and a redeploy.
Public site + contact form to dashboard (M6)
Add a public website to my ClientDesk Next.js app: Home, About, Services and Contact pages with shared navigation, a footer and a mobile menu, using this content: [paste content]. Contact form: name (required), email (required, validated), phone (optional), message (required, 10–2000 chars). Validate on the server and save an Enquiry in Railway PostgreSQL (id, name, email, phone, message, status New/In Progress/Closed default New, createdAt). Add a honeypot field and rate limiting. Friendly thank-you message. In the Admin Dashboard Enquiries: newest first, filter by status, open one, change status, and show 'New enquiries' on Overview. Only signed-in staff can see enquiries. Changed files only, plus a visitor-to-admin test checklist.
Build the pages and form (M6)
Add a public website to my ClientDesk Next.js app: Home, About, Services and Contact pages with shared navigation, a footer, and a mobile menu, using this content: [paste your content]. Contact form fields: name (required), email (required, validated), phone (optional), message (required, 10–2000 characters). On submit, validate on the server and save an Enquiry in Railway PostgreSQL (id, name, email, phone, message, status New/In Progress/Closed default New, createdAt). Add a hidden honeypot field and simple rate limiting against spam. Show a friendly thank-you message without exposing errors. In the Admin Dashboard Enquiries section: list newest first, filter by status, open an enquiry, change its status, and show the 'New enquiries' count on Overview. Only signed-in staff can see enquiries. Give me changed files only, plus a visitor-to-admin test checklist.
Module 6: Creating the Public Website
By the end of this lesson, you will be able to create ClientDesk's Home, About, Services and Contact pages and connect the contact form to the database so a visitor's enquiry appears in the Admin Dashboard, where staff can update its status.
Safe assistant system prompt (M7)
Write a system prompt for a friendly voice assistant for [business]. Facts it may use: [facts]. Rules: say it is an AI assistant; answer only from these facts; for anything else invite the caller to use [contact page]; never ask for or repeat personal details, ID or payment information; maximum 3 sentences; polite and calm. Also write a first message under 20 words.
Embed the ElevenLabs widget (M7)
Add the ElevenLabs voice widget to all public pages of my Next.js app (not the admin area). Agent ID (public): [id] from NEXT_PUBLIC_ELEVENLABS_AGENT_ID. Use <elevenlabs-convai agent-id="..."> and the script https://unpkg.com/@elevenlabs/convai-widget-embed (async, client-side). Add a visible 'Prefer to type? Contact us' link and a privacy note. Hide the widget if the variable is empty. Allow microphone in Permissions-Policy on public pages. Changed files only.
Draft the assistant instructions (M7)
Write a system prompt for a friendly voice assistant for ClientDesk, a fictional cleaning company. Facts it may use: [paste services, prices, hours, area, contact page URL]. Rules: introduce itself as an AI assistant; answer only from these facts; if unsure or asked about bookings, complaints or anything personal, invite the caller to use the Contact page; never ask for or repeat personal details, ID or payment information; keep answers under 3 sentences; be polite and calm. Also write a first message of under 20 words.
Embed the widget (M7)
Add the ElevenLabs voice widget to all public pages of my ClientDesk Next.js app (not the Admin Dashboard). Agent ID: [paste agent ID — this is public]. Use <elevenlabs-convai agent-id="..."> and load https://unpkg.com/@elevenlabs/convai-widget-embed with async, client-side only. Store the agent ID in a NEXT_PUBLIC_ELEVENLABS_AGENT_ID environment variable. Add a visible 'Prefer to type? Contact us' link next to it and a one-line privacy note that voice is processed by ElevenLabs. If the variable is empty, hide the widget gracefully. Make sure our Permissions-Policy header allows microphone on public pages. Changed files only.
Module 7: Adding the AI Voice Widget
By the end of this lesson, you will be able to create a conversational voice assistant that answers questions about the business, embed it in ClientDesk, test microphone permissions and replies, and provide a text alternative.
Explain a log error (M8)
My Railway [build/deploy] failed. Here are the lines around the first error (I removed secrets): [paste]. Explain what went wrong in one plain-English sentence, tell me whether it's a build or runtime problem, and give me the smallest fix and how to verify it.
Health check + README (M8)
Add GET /api/health returning {status, time, database:'ok'|'error'} via a trivial query, exposing no secrets. Write a non-programmer README: purpose, Railway services, env variable names and purpose, deploy from GitHub, roll back, and a 60-second post-deploy checklist. Changed files only.Add a health check and README (M8)
Add a GET /api/health endpoint to my ClientDesk Next.js app that returns JSON {status:'ok', time, database:'ok'|'error'} by running a trivial database query, without exposing any secrets or error details. Also write a README.md for a non-programmer: what ClientDesk does, the Railway services, the list of environment variables (names only and what each is for), how to deploy from GitHub, how to roll back, and a 60-second post-deploy checklist. Changed files only.Module 8: GitHub and Deployment
By the end of this lesson, you will be able to manage ClientDesk's GitHub repository and Railway deployments confidently: read build and deploy logs, fix a failed deploy, roll back, check the public URL and verify a new deployment — then launch ClientDesk.
Diagnose DNS (M9)
I added a custom domain [name] to Railway. Railway asked for a CNAME to [target] and a TXT at [host]. My DNS provider is [provider]. Here's what an online DNS lookup shows for both records: [paste]. Is anything wrong? Tell me exactly which field to change.
Start BookingDesk (M9)
Build BookingDesk for [fictional business] using Next.js, TypeScript and Railway PostgreSQL (Prisma), deployed from GitHub on Railway. Include everything from ClientDesk: [list what you need — public pages, protected Admin Dashboard, customers, enquiries, statistics, roles]. SECURITY: [your security rules]. Give me a zip, .gitignore, the Railway Variables I must add (names only) and a test checklist.
Module 9: Connecting a Custom Domain
By the end of this lesson, you will be able to start BookingDesk from your ClientDesk skills, connect a custom domain to it on Railway, add the correct DNS records, and verify HTTPS.
Explain my email setup (M10)
Here is my plan: business mailbox [provider/none] on [domain]; app sending via Resend from [address]; app receiving at [address]. Check for conflicts — especially MX records — and tell me in plain English what each DNS record I add will change.
Send confirmations (M10)
In my BookingDesk Next.js app, send emails with the Resend Node SDK from the server only, using RESEND_API_KEY and EMAIL_FROM env variables. Send: [list the emails — e.g. booking confirmation to the customer, new-booking notification to staff]. Each email must include [details]. Set reply-to to [your receiving address]. Log failures without exposing secrets and never block the booking if email fails. Changed files only + a test checklist.
Build the inbox (M10)
Add an inbound email inbox to BookingDesk. Create POST /api/inbound that verifies the Resend webhook signature using RESEND_WEBHOOK_SECRET (reject if invalid), handles only email.received, then fetches the full email with the Resend receiving API by email_id and saves it in PostgreSQL as an InboundMessage (from, to, subject, text, html stored safely, receivedAt) linked to a thread by [how you want to match — e.g. sender email or booking reference]. In the Admin Dashboard add Inbox: thread list, unread badges, view a thread, and reply (sent via Resend, saved in the thread). Sanitise any HTML before display. Only signed-in staff can access. Changed files only + test checklist.
Module 10: Business Email: Sending and Receiving
By the end of this lesson, you will be able to explain the difference between a business mailbox, application-sent email and inbound email; send booking confirmations from your domain; and receive emails into a BookingDesk inbox in the Admin Dashboard.
WhatsApp production readiness (M11)
My business [type, country] wants to move from the Twilio WhatsApp Sandbox to production for [use case]. List, in order, the human steps (sender registration, Meta business verification, templates, opt-in, pricing to check) and what my app must change. Mark anything that costs money.
Send + receive (M11)
Add WhatsApp to BookingDesk with the Twilio Node SDK (server-side only) using TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN and TWILIO_WHATSAPP_FROM. On the booking form add [phone field format] and an unticked opt-in checkbox '[your wording]'. Store opt-in with a timestamp. When [event], send this message only to opted-in customers: [message — for the sandbox, match a pre-approved template]. Add POST /api/whatsapp/incoming that validates the X-Twilio-Signature header (reject invalid), saves the message linked to the customer by phone number, and replies with empty TwiML. Show WhatsApp threads in the Admin Dashboard and allow staff to reply within the 24-hour window, with a clear warning when the window has closed. Handle 'STOP' by recording opt-out. Changed files + test checklist.
Module 11: WhatsApp and Notifications
By the end of this lesson, you will be able to send a WhatsApp booking message from BookingDesk using the Twilio WhatsApp Sandbox, receive replies into the app, and explain opt-in, templates, the 24-hour window, verification and costs for production.
Plan an embedded production setup (M12)
My BookingDesk uses meet.jit.si links in a new tab. The business now wants calls embedded in the page with moderator control and waiting room. Explain the JaaS setup steps (account, app ID, API key pair stored where, JWT generation on the server), what to check on pricing, and the minimum code changes. Don't include any real keys.
Meeting links per booking (M12)
Add video meetings to BookingDesk. When a booking is [confirmed/created], generate a room name using crypto random bytes (at least 16 random characters, prefixed 'bd-') and store meetingUrl = https://meet.jit.si/<room> on the booking. Show a 'Join video call' button (opens in a new tab, rel=noopener) on [where staff see it] for signed-in staff and in [where the customer sees it]. Never show meeting links on public pages or to other customers. Add a short pre-call checklist (camera, microphone, quiet space, how to re-allow permissions). Include the link in the confirmation email. Changed files + test checklist.
Module 12: Video Calls
By the end of this lesson, you will be able to give each booking its own private video meeting link, add a 'Join video call' button for customers and staff, test joining from two browsers with camera and microphone permissions, and explain access control and privacy.
Invoice PDF fields (M13)
Design the fields for a simple invoice PDF for [business type] in [country]: required business details, invoice number format, dates, line items, tax handling to confirm with an accountant, totals, payment instructions placeholder. Use fictional values in the example.
Print styles (M13)
Add a print stylesheet to BookingDesk's Admin Dashboard [pages to print]: hide navigation, buttons and widgets; white background, black text; show the business name, report title and printed date at the top; avoid splitting table rows across pages. Changed files only.
Server-side PDFs (M13)
Add server-side PDF generation to BookingDesk using [pdf-lib or PDFKit]. Documents: [booking confirmation / customer summary / attendance list for a date / invoice]. Each includes [business details, reference, fields]. Routes must check permission first: [who may download each]. Return Content-Type application/pdf with a sensible filename. Add Download buttons in [places]. Use only data from the database; escape text. Changed files + a test checklist including an access test with another booking's ID.
Module 13: Printing and PDF Downloads
By the end of this lesson, you will be able to create printable pages and downloadable PDF documents — booking confirmations, customer summaries, attendance lists and invoices — using fictional data, with access limited to the right people.
Workflow → app plan (M14)
Here is a business workflow described by the owner: [paste]. Turn it into a table with columns Step | Record | Status change | Who may do it | Automation/notification | Report it feeds. Then list the database tables and fields you'd create. Ask me up to five questions about anything unclear. No code yet.
Availability + bookings (M14)
Extend BookingDesk with appointment availability. Rules: [working days, hours, slot length, breaks, services and durations, staff members]. Public booking page shows only free slots for the next [N] days; prevent double-booking with a database unique constraint/transaction. Booking statuses: [list] with allowed transitions [list] and who may change them [roles]. On [status changes] send [notifications]. Changed files + test checklist including a double-booking test.
Reports + audit (M14)
Add to BookingDesk's Admin Dashboard: Reports [list reports and filters, e.g. bookings per staff member per month, no-show rate] with print styles and CSV export for the owner; and an Audit history recording every create/update/delete of [records] with who, when, field changes (old → new). Audit entries cannot be edited or deleted from the app. Changed files + test checklist.
Module 14: Business Management Features
By the end of this lesson, you will be able to map a business's workflow into records, roles and reports, and extend BookingDesk with appointment availability, booking status management, reports, notifications and an audit history.
Explain a failed test (M15)
Test [ID] failed. Steps: [steps]. Expected: [expected]. Actual: [actual]. Relevant log lines (secrets removed): [paste]. Explain the likely cause in plain English and give the smallest safe fix plus how to re-test.
Test plan (M15)
Here is BookingDesk's feature list: [paste]. Write a test plan table: ID | Area | Steps a non-programmer can follow | Expected result | Type (feature/security/journey/operations). Include security tests for signed-out access, role escalation, changing record IDs in URLs, script injection in forms, webhook signature rejection, and secrets exposure in page source. No code.
Handover pack (M15)
Write a one-page handover for the owner of [business] covering: what BookingDesk does; where it runs (Railway services); accounts and who must own them (domain, Railway, Resend, Twilio, ElevenLabs, GitHub); monthly cost estimate [paste your numbers and dates checked]; backup and restore steps; how to rotate secrets; who to contact. Plain English, no secrets.
Module 15: Testing, Security and Maintenance
By the end of this lesson, you will be able to test BookingDesk feature by feature as a real user and as an attacker, fix what fails, set up backups and secret rotation, estimate operating costs — and launch BookingDesk.
Admin Dashboard
One protected management area where approved staff sign in to manage the business's records.
API key
A secret that lets your app use a service (email, WhatsApp, voice). Stored only in Railway Variables.
Audit history
An append-only record of who changed what and when.
Build log
Railway's record of installing and compiling your code. Errors here stop a new version being built.
Business & organisational application library
Reference case studies and optional extensions. They don't replace ClientDesk, BookingDesk or EventDesk.
Parent enquiries, admissions and event sign-ups arrive by phone, email and paper forms and get lost.
Scheduling lessons over WhatsApp, chasing payments and losing track of student progress.
Receptionists juggle phone bookings, no-shows and paper forms.
Double bookings, unclear stylist availability and running out of products.
Reservations by phone during service, no record of regulars, event bookings in a notebook.
Stock counted by hand, special orders forgotten, no view of best sellers.
Quotes in spreadsheets, job progress unclear, invoices late.
Viewing requests scattered across portals, calls and emails.
Shuttle bookings by phone, drivers unsure of the day's pickups.
Volunteers, donors and programme participants tracked in separate spreadsheets.
Course enrolment, attendance and certificates handled manually.
Registrations, capacity and attendee communication across many events.
Consultants lose track of client requests, documents and billable work.
Glossary
- Admin Dashboard
- One protected management area where approved staff sign in to manage the business's records.
- API key
- A secret that lets your app use a service (email, WhatsApp, voice). Stored only in Railway Variables.
- Audit history
- An append-only record of who changed what and when.
- Build log
- Railway's record of installing and compiling your code. Errors here stop a new version being built.
- CNAME record
- A DNS record that points one name (bookings.yourdomain.com) at another (your Railway service).
- CRUD
- Create, Read, Update, Delete — the four things you do with records.
- DATABASE_URL
- The secret connection address for your database. On Railway, set it as a reference: ${{Postgres.DATABASE_URL}}.
- Deploy log
- Messages from your running app on Railway. Errors here mean it built but failed while running.
- DKIM / SPF
- DNS records that prove your app is allowed to send email for your domain, helping avoid spam folders.
- DNS
- The internet's address book that connects domain names to services.
- Domain
- The address people type, like clientdesk.co.za. Rented yearly from a registrar.
- Environment variable
- A named setting (often secret) given to your app by the host, not stored in code.
- Hashing
- Turning a password into a one-way scrambled value so the real password is never stored.
- Health check
- A small page like /api/health that reports whether the app and database are working.
- Honeypot field
- A hidden form field that bots fill in, used to reject spam.
- HTTPS
- Encrypted web connection shown by the padlock. Railway issues the certificate after your domain is verified.
- Inbound email
- Email received by a provider for your domain and sent to your app via a webhook.
- JaaS
- Jitsi as a Service by 8x8 — used when you want video meetings embedded inside your own page.
- MX record
- A DNS record that says where email for a (sub)domain is delivered.
- Opt-in
- A customer's clear permission to receive messages, recorded with a time.
- Persistence
- Data that survives refreshes, restarts and redeploys because it's stored in a database.
- Railway
- The hosting platform used in this course for apps and PostgreSQL databases.
- Reference variable
- A Railway variable that points to another service's value, e.g. ${{Postgres.DATABASE_URL}}.
- Repository
- A project folder on GitHub with its full change history.
- Rollback
- Returning the live site to a previous working deployment.
- Rotation
- Replacing a secret with a new one so the old value stops working.
- Sandbox
- A safe testing version of a service (e.g. Twilio WhatsApp Sandbox) with limits.
- Session
- How an app remembers you're signed in, usually with a secure cookie.
- TXT record
- A DNS record holding text — used for domain verification (_railway-verify) and email policies.
- Webhook
- A web address in your app that another service calls when something happens (email received, WhatsApp reply).
- 24-hour window
- WhatsApp's rule: after a customer messages you, you can reply freely for 24 hours; outside it, use approved templates.