← Business And Income Project · source: files/lovable-report-generator-prompt.md
Prompt for Lovable — AI Audit Report Generator for Dun Chau
Copy everything between the lines and paste it as ONE message into a new Lovable project.
Build me a web app called "Dun Chau Audit Reports" — a report generator for an AI business consultant. I enter a business's audit data, and the app produces a polished, print-ready audit report I can download as a PDF and email to the client. There are three report types: (1) AI Visibility Audit, (2) Efficiency Audit, (3) AI Risk Shield Snapshot. Build the AI Visibility Audit first, completely; the other two can start as the same layout with their own sections listed below.
Design rules (apply to every report)
- Page size: US Letter, portrait. Font: Calibri throughout, including tables. No large cover graphics — the report is numbers, tiles, and tables.
- Every report's first page carries a title bar at the top, readable from across a desk: "AI Business Audit Report — Dun Chau, AI Business Consultant" with "dunchau.com" under it.
- Each report has: a unique Report ID I type in (format DC-YYYY-MMDD-XX), the business name, city, the date, and "Prepared for: [owner name]".
- Score bands everywhere a score appears: 0–24 Invisible, 25–49 Weak, 50–74 Competitive, 75–100 Leading.
- A "How to read this report" legend: Good / Needs work / Missing, and priorities P1 = this week, P2 = next 30 days, P3 = next 90 days.
- Table columns sized by content: action/description columns wide, short columns (priority, score, status) narrow. No run-on single-column pages and no large blank gaps — use clean page breaks.
- An honesty rule built into the app: any data field I leave blank or mark unknown must print as "Not verified" or "Not measured" — the app must never invent, estimate, or fill in a number I did not enter. Every report ends with a disclaimer page stating the audit identifies findings and suggestions only, with no guarantees or promises of results.
Report type 1 — AI Visibility Audit (build this fully)
Data I enter: business name, city, industry, owner name, report ID, date; a list of buyer questions (up to 20) with, per question, which businesses the AI named and whether this business was named; per-engine results for ChatGPT, Google AI, Perplexity, Gemini, Claude; a foundation checklist of about 45 checks in 6 groups (Google profile, Reviews, Listings & consistency, Technical/website, Content, Authority) each scored pass / needs work / missing; competitor names with their Google rating, review count, and how many questions named them.
Sections the report must generate, in this order: 1. Cover page: business name, "How AI assistants see [Business Name]", overall score out of 100 with its band word, and 4 KPI tiles: questions where the business was named (e.g. 2 of 11), branded-search result (#1 by name), review count, and the leading competitor's named count. 2. Contents + How to read legend. 3. Executive summary: overall score, foundation score, top 3 problems and top 3 quick wins side by side. 4. Why AI answers matter (one short page, plain language). 5. AI visibility results: headline results; results by engine (table); results by question type; "How are you mentioned" — a 5-row position table (Named first / Named 2nd or 3rd / Named 4th or lower / Named with a warning / Not named at all) with bars; "Where you lose the most" — a table of the 5 worst questions: question, engine, who AI recommended, "You named? No". 6. What AI says about you: a fact-accuracy table (Fact | Correct value | What AI said | Engine | Status) for things like phone number, address, business name variants, founding year, Google category. 7. Competitor benchmark: "Who AI names most" bar chart of mention share, and a head-to-head table (this business vs top 3 competitors: Google rating, review count, new reviews last 90 days — print "Not measured" if I don't enter it, questions named, website checks). 8. Sources AI leaned on (list of websites/directories the answers cited). 9. Foundation audit: the 6 groups with scores out of their group totals and a total out of 100. 10. Score summary: how the overall score is calculated (visibility 40% + foundation 60%) shown openly. 11. Action plan: P1 / P2 / P3 tables with columns Action | Why it matters | Effort | Impact | Who does it. 12. Tracking: a re-test date (12 weeks out) and what gets re-measured. 13. Appendices: the full question-by-question grid (every question, every engine, who was named), method note, glossary, limitations, disclaimer.
Also generate a 3-page SUMMARY version from the same data: page 1 = cover with score, band, and the 4 KPI tiles; page 2 = per-engine results in brief, who gets named instead with counts, foundation scores table, top problems; page 3 = three fastest fixes, "what we can help fix", honesty notes, and a line that the full report has the complete evidence.
Report type 2 — Efficiency Audit (same shell, these sections)
Scorecard of 10 categories (Calls & After-Hours, Intake, Scheduling, Invoicing, Mail & Checks, Follow-Up & Reviews, Email/Calendar & AI Assistant, Team Know-How, Double-Typing, Tools Cleanup), each marked Leaking / Partial / Solid with the estimated monthly cost of the leak as a range with its assumptions shown; findings per category with the fix, the named existing tool and its price, and a fixed build price; a keep/cut/add table for current subscriptions with monthly savings; a "Do not fix yet" section; and a phased plan.
Report type 3 — AI Risk Shield Snapshot (same shell, these sections)
Scorecard of 10 risk categories, each marked Covered / Partially covered / Exposed; an owner-vs-staff perception gap callout (owner answers vs anonymous staff survey results); top 3 exposures in detail with fixes and prices; a "Why act now" page with documented real-world cases; a method section stating the assessment is structured following the NIST AI Risk Management Framework (AI RMF 1.0) and the OWASP Top 10 for LLM Applications (2025); and a printed honesty block: "Not legal advice. Not a compliance certification. Not a HIPAA security risk assessment. No breach guarantees."
App behavior
- A form-based editor per report type with save/load of drafts (local storage is fine), a live preview that looks exactly like the printed pages, and a "Download PDF" button that prints the report pages only.
- A sample-data button that loads a fictional plumbing company so I can see a finished report immediately.
- No user accounts, no payments, no external AI calls — this app only formats data I type in. It must never generate findings on its own.
Simon's notes for Dun (not part of the prompt)
- Paste it into a NEW Lovable project, not Math Pilot — builds add on top of each other, and this must not land in Kate's game project.
- Lovable charges per message, so send it as one message, then fix issues in small batches.
- What Lovable builds is the report formatter. The audit data still comes from our process (the hand-run audits / the audit engine modules) — the app never invents findings; that honesty rule is written into the prompt.
- The same prompt works, mostly unchanged, in other AI builders (Replit, Bolt, v0) if you ever want a second version.