The user wants a design for an "LLM-powered UX QA assistant."
The core function is to highlight:
- Confusing copy (clarity/usability).
- Inconsistent tone (brand consistency).
- Potential dark patterns (ethics/compliance).
Target Audience: Product designers, UX writers, QA testers, Product Managers.
Key Features Needed:
- Input mechanism: How does the user provide the content? (Figma plugin, Chrome extension, text paste).
- Analysis Engine: The LLM logic (prompts, context handling).
- Output/Interface: How are the results presented? (Visual overlays, severity ratings, actionable suggestions).
- Workflow integration: How does this fit into the design/dev cycle?
Step-by-Step Design Approach:
-
Architecture & Ecosystem: Where does this live? A Figma plugin or Chrome extension makes the most sense for visual context, but let's assume a standalone web app or IDE extension for the core design, then adapt. A Figma plugin is probably the highest value for "Pre-launch."
-
The "Brain" (LLM Strategy):
- Confusing Copy: Needs readability metrics (Flesch-Kincaid) + semantic clarity checks.
- Inconsistent Tone: Needs a "Tone Profile" (e.g., Brand Voice guidelines) to compare against.
- Dark Patterns: This is tricky. It requires analyzing intent and mechanics. "Confirmshaming" (big "Yes" button, tiny "No" link), "Roach Motel" (easy in, hard out), "Sneak into Basket." The LLM needs to look at hierarchy, button text, and visual weighting (if possible via accessibility tree).
-
User Interface (UI) Design:
- Needs a dashboard.
- Needs a "report card" view.
- Needs an "interactive" view (click a button, see issues).
-
Detailed Feature Breakdown:
- Confusing Copy:
- Jargon detection.
- Passive voice.
- Cognitive load (sentence length).
- Tone:
- User uploads their "Style Guide."
- The LLM checks against this guide.
- Dark Patterns:
- Contextual analysis: "Is this an opt-out button hidden?"
- Urgency detection: "Only 2 left!" (is it real or fake?).
-
Technical Implementation (The "How"):
- Input: DOM structure + Text.
- Context: LLM needs to know what a button does, not just what it says. Accessibility labels are key here.
- Prompts: I should draft sample prompts to show how the LLM is instructed.
-
Differentiation: Why use this over ChatGPT? Context awareness. It analyzes the whole user flow, not just a paragraph. It understands UI components (Buttons vs. Headers).
-
Structure of the Response:
- Product Vision: Name & Concept.
- User Flow: Step-by-step usage.
- The LLM Engine (The Core): Prompts and Logic.
- UI/UX Design: Wireframe descriptions.
- Dark Pattern Detection Logic: Specific examples.
- Technical Stack: Tools to build it.
Refining the "Dark Pattern" detection:
LLMs can't "see" visual weight (font size, color contrast) easily unless fed HTML/CSS or descriptions. I need to emphasize that the tool analyzes the semantic relationship and hierarchy provided by the DOM/Accessibility Tree. For example, detecting "Confirmshaming" involves looking for a primary CTA with positive text and a secondary link with negative/apologetic text ("No thanks, I hate saving money").
Refining "Tone":
The system needs a "Style Guide Embedding." RAG (Retrieval-Augmented Generation) is perfect here. Index the company's brand book, retrieve relevant sections when analyzing copy.
Let's call it "Ethos." Sounds ethical and focused on tone.
Self-Correction during drafting:
Initial thought: Just paste text.
Correction: That's too simple. UX is about context. I need to propose a Figma plugin or Chrome Extension to capture the layout and element types.
Initial thought: LLM just says "This is bad."
Correction: Needs to offer "Why" and "Fix." The "Fix" is the value add.
Let's structure the output into logical sections: System Architecture, The User Interface, The AI Logic (Prompts), and Handling the specific requirements (Confusing, Tone, Dark Patterns).
Drafting the Dark Pattern Logic:
- Misdirection: Checking if the "cancel" button looks like a "confirm" button (requires analyzing classes/attributes).
- Confirmshaming: Analyzing the text of the "No" option.
- Hidden Costs: Checking if price appears before checkout.
Okay, ready to generate the design. I will structure it as a comprehensive product specification.
Designing an LLM-powered UX QA assistant requires moving beyond simple grammar checking. The system must understand context, intent, and visual hierarchy to catch issues that frustrate users.
Here is a comprehensive design for "Ethos," an AI-powered UX QA assistant.
1. Product Concept: Ethos
Ethos integrates directly into the design-to-code pipeline (e.g., a Figma plugin or CI/CD bot for staging sites). It acts as a tireless "User Advocate," scanning interfaces for friction, brand inconsistency, and manipulative design.
Core Capabilities:
- Clarity Analysis: Detects jargon, ambiguity, and cognitive load.
- Tone Policing: Ensures the copy matches the defined "Brand Voice" across all screens.
- Ethics Sentinel: Flags potential dark patterns (manipulative copy, hidden costs, fake urgency).
2. User Interface (UI) & Experience
The tool functions as a sidebar panel within design or browser tools.
A. The "Traffic Light" Dashboard
- Red (Critical): Dark patterns detected or critical legal/compliance errors.
- Yellow (Warning): Tone inconsistencies or confusing microcopy.
- Green (Optimization): Suggestions for inclusivity or conversion rate improvement.
B. The Annotation Overlay
Ethos pins comments directly onto the UI canvas.
- Visual cue: A pulsing halo around a specific button or text block.
- Interaction: Clicking the halo opens a chat window with the AI to discuss "Why is this a problem?"
3. Technical Architecture & The "LLM Stack"
We cannot rely on a single prompt. We need a Multi-Agent System where specialized "agents" review the content simultaneously.
- Input Layer: OCR extracts text from images (Figma/screenshots) + DOM scraping captures hierarchy (button vs. label) + Accessibility tree data.
- Context Injection: The system injects the Brand Style Guide (tone, vocabulary, inclusive language rules) into the prompt context.
The 3 Agents (Prompt Engineering Strategies)
Agent 1: The Simplifier (Clarity)
- Goal: Reduce cognitive load.
- Prompt Strategy:
"You are an expert in cognitive psychology. Analyze the following UI copy. Identify passive voice, nominalizations, and jargon. Calculate the Flesch-Kincaid readability score. If the text is above an 8th-grade reading level, rewrite it to be simpler without losing meaning."
- Detection: "Click here to initiate the termination process" → "Cancel Subscription."
Agent 2: The Guardian (Dark Patterns)
- Goal: Ethical compliance.
- Prompt Strategy:
"Analyze the following UI interaction. Look for asymmetry in choices (e.g., 'Yes' is bright, 'No' is grey/faint). Detect 'Confirmshaming' (copy that guilts the user). Detect 'Fake Urgency' (countdown timers that reset). Identify if the user is being nudged toward an action that benefits the company at the expense of the user's autonomy."
- Detection: "No thanks, I don't want to save money" → Flagged as Confirmshaming.
Agent 3: The Diplomat (Tone & Consistency)
- Goal: Brand alignment.
- Prompt Strategy:
"Compare the following text against the provided Brand Voice Guide. Is the tone consistent? Check for 'Robot-Speak' (system-focused language like 'Error 404' vs 'Page not found'). Check for emotional mismatch (e.g., is the error message too cheerful?)."
- Detection: "You failed to login" → "Sorry, we didn't recognize that password."
4. Feature Deep Dive: The "Dark Pattern" Detector
Detecting dark patterns is the most valuable and difficult feature. Ethos uses Semantic Hierarchy Analysis.
Scenario: The "Roach Motel" (Easy to get in, hard to get out)
- Input: Ethos compares the "Sign Up" flow vs. the "Delete Account" flow.
- LLM Analysis: "The Sign-Up flow has 1 step. The Delete Account flow has 4 steps and requires a phone call."
- Output: ⚠️ High Severity: Structural Friction Detected. The difficulty of leaving the service is significantly higher than joining it.
Scenario: Misdirection
- Input: A modal with a "Confirm" button and a tiny "X" in the corner.
- LLM Analysis: "The primary action button text is 'Get Started', but the visual weight suggests this is an ad, not a system message. The dismissal mechanism (the X) is below standard accessibility tap targets (44px)."
- Output: ⚠️ Potential Misdirection: Dismissal button too small/hidden.
5. Workflow Integration
Design Phase (Figma Plugin)
- Designer selects a frame.
- Ethos runs.
- Result: "This error message sounds aggressive. Current: 'Invalid Email.' Suggestion: 'Please enter a valid email address.'"
- Action: Designer clicks "Accept" to replace text instantly.
QA Phase (CI/CD Pipeline)
- Trigger: Pull Request opened.
- Bot: Scans the DOM of the staging URL.
- Report: Comments on the GitHub PR.
File: Checkout.js
Line 45: Potential Dark Pattern detected. The checkbox for "Opt-in to newsletter" is pre-checked, which violates GDPR if the user is in EU.
6. Sample Output: The "Ethos Report"
Here is how the assistant presents its findings to the UX writer or designer:
| Element | Severity | Issue Type | Original Copy | AI Suggestion / Reasoning |
|---|
| Modal | 🔴 High | Dark Pattern | (Visual) "Yes, upgrade me!" (Primary) vs "No, I hate saving money" (Secondary) | Confirmshaming. The negative option uses emotional manipulation. Use neutral language like "No thanks." |
| Tooltip | 🟡 Med | Clarity | "Configure the parameters for the instantiation of the widget." | Jargon/Complexity. Score: 14 (Graduate level). Suggestion: "Set up your widget." |
| Email | 🟡 Med | Tone | "We noticed you haven't logged in." | Passive Aggressive. Tone sounds like a guilt trip. Suggestion: "We miss you! Here's what's new." |
| Button | 🟢 Low | Consistency | "Proceed to Payment" | Inconsistent Vocabulary. Previous screens used "Checkout." Stick to one term to reduce cognitive load. |
7. Privacy & Security Considerations
- No PII: The tool must scrub Personal Identifiable Information (names, emails) from text before sending it to the LLM API.
- Brand Isolation: For enterprise clients, the "Brand Voice" embeddings should be hosted in a private vector store to ensure the AI doesn't learn one company's style and accidentally apply it to another.