Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -368,20 +368,74 @@ def generate_tasks(theme, customer_profile):
|
|
| 368 |
return [f"Task {i+1} for {theme} (BLABLADOR_API_KEY not set)" for i in range(10)]
|
| 369 |
|
| 370 |
prompt = f"""
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
"""
|
| 386 |
|
| 387 |
models_to_try = ["alias-large", "alias-huge", "alias-fast"]
|
|
|
|
| 368 |
return [f"Task {i+1} for {theme} (BLABLADOR_API_KEY not set)" for i in range(10)]
|
| 369 |
|
| 370 |
prompt = f"""
|
| 371 |
+
You are generating UX research tasks, not product walkthrough steps.
|
| 372 |
+
|
| 373 |
+
Your goal is to simulate a REAL human user journey that exposes:
|
| 374 |
+
|
| 375 |
+
- comprehension
|
| 376 |
+
- trust
|
| 377 |
+
- cognitive load
|
| 378 |
+
- information discovery
|
| 379 |
+
- decision friction
|
| 380 |
+
- accessibility challenges
|
| 381 |
+
- emotional response
|
| 382 |
+
- conversion barriers
|
| 383 |
+
|
| 384 |
+
Theme: {theme}
|
| 385 |
+
User profile: {customer_profile}
|
| 386 |
+
|
| 387 |
+
Generate EXACTLY 10 tasks in realistic sequential order.
|
| 388 |
+
|
| 389 |
+
The tasks must follow this funnel:
|
| 390 |
+
|
| 391 |
+
1. First impression & value comprehension
|
| 392 |
+
2. Trust and credibility evaluation
|
| 393 |
+
3. Exploration of available options
|
| 394 |
+
4. Information gathering using navigation or search (do NOT assume features exist)
|
| 395 |
+
5. Comparison and decision-making under uncertainty
|
| 396 |
+
6. Attempted conversion (signup / purchase / enrollment)
|
| 397 |
+
7. Encountering friction (pricing, forms, errors, missing info, etc.)
|
| 398 |
+
8. Early product experience (onboarding / first interaction)
|
| 399 |
+
9. Personalization or feedback attempt
|
| 400 |
+
10. Reflection on emotional experience and perceived value
|
| 401 |
+
|
| 402 |
+
IMPORTANT BEHAVIORAL RULES:
|
| 403 |
+
|
| 404 |
+
- Do NOT assume success.
|
| 405 |
+
- Do NOT assume features exist.
|
| 406 |
+
- Do NOT instruct emotions (observe them instead).
|
| 407 |
+
- Include at least one task that may realistically cause abandonment.
|
| 408 |
+
- Include at least one task explicitly framed from an elderly or accessibility-challenged perspective.
|
| 409 |
+
- Include memory burden (e.g. remembering info from previous steps).
|
| 410 |
+
- Include at least one trust evaluation moment.
|
| 411 |
+
- Include one task where the user must compare options with incomplete information.
|
| 412 |
+
|
| 413 |
+
Each task must:
|
| 414 |
+
|
| 415 |
+
- Be phrased as a real-world user instruction
|
| 416 |
+
- Avoid implementation details ("click button X")
|
| 417 |
+
- Encourage exploration, hesitation, and reflection
|
| 418 |
+
- Surface cognitive or emotional friction
|
| 419 |
+
|
| 420 |
+
Tasks MUST cover:
|
| 421 |
+
|
| 422 |
+
✓ Communication clarity
|
| 423 |
+
✓ Purchase or commitment decision
|
| 424 |
+
✓ Information discovery / search behavior
|
| 425 |
+
✓ Emotional reaction to content and visual design
|
| 426 |
+
|
| 427 |
+
CRITICAL OUTPUT FORMAT:
|
| 428 |
+
|
| 429 |
+
Return ONLY valid JSON.
|
| 430 |
+
|
| 431 |
+
Example:
|
| 432 |
+
|
| 433 |
+
{{"tasks": ["task 1", "task 2", "..."]}}
|
| 434 |
+
|
| 435 |
+
No explanations.
|
| 436 |
+
No markdown.
|
| 437 |
+
No commentary.
|
| 438 |
+
Only JSON.
|
| 439 |
"""
|
| 440 |
|
| 441 |
models_to_try = ["alias-large", "alias-huge", "alias-fast"]
|