[PR #226] [MERGED] Create user personas from onboarding data #605

Closed
opened 2026-03-13 20:59:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AJaySi/ALwrity/pull/226
Author: @AJaySi
Created: 8/31/2025
Status: Merged
Merged: 9/4/2025
Merged by: @AJaySi

Base: mainHead: cursor/create-user-personas-from-onboarding-data-af35


📝 Commits (2)

  • 7dbebd4 Implement persona generation system with platform-specific adaptations
  • 37aadd7 Delete backend/services/pycache/init.cpython-313.pyc

📊 Changes

18 files changed (+4417 additions, -2 deletions)

View changed files

📝 backend/api/onboarding.py (+78 -1)
backend/api/persona.py (+385 -0)
backend/api/persona_routes.py (+167 -0)
📝 backend/app.py (+4 -0)
backend/deploy_persona_system.py (+197 -0)
backend/models/persona_models.py (+234 -0)
📝 backend/scripts/create_all_tables.py (+6 -0)
backend/scripts/create_persona_tables.py (+53 -0)
backend/services/__pycache__/api_key_manager.cpython-313.pyc (+0 -0)
📝 backend/services/database.py (+3 -1)
backend/services/persona_analysis_service.py (+668 -0)
backend/services/persona_replication_engine.py (+506 -0)
backend/test_persona_system.py (+202 -0)
docs/PERSONA_IMPLEMENTATION_SUMMARY.md (+266 -0)
docs/PERSONA_SYSTEM_DOCUMENTATION.md (+328 -0)
docs/PERSONA_SYSTEM_EXAMPLE.md (+462 -0)
frontend/src/api/persona.ts (+244 -0)
frontend/src/components/OnboardingWizard/PersonaGenerationStep.tsx (+614 -0)

📄 Description

Implement a Writing Persona System with Gemini-powered analysis and platform-specific adaptations.

This PR introduces a comprehensive system to generate high-fidelity, data-driven writing personas from user onboarding data, ensuring consistent brand voice across content and platforms. The system moves from subjective persona descriptions to objective, measurable instructions for AI content generation, providing "hardened" prompts for consistent output and enabling platform-specific optimization.


Open in Cursor Open in Web

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AJaySi/ALwrity/pull/226 **Author:** [@AJaySi](https://github.com/AJaySi) **Created:** 8/31/2025 **Status:** ✅ Merged **Merged:** 9/4/2025 **Merged by:** [@AJaySi](https://github.com/AJaySi) **Base:** `main` ← **Head:** `cursor/create-user-personas-from-onboarding-data-af35` --- ### 📝 Commits (2) - [`7dbebd4`](https://github.com/AJaySi/ALwrity/commit/7dbebd45eb6bbae57afcfd0fa195dfdcbef7aefc) Implement persona generation system with platform-specific adaptations - [`37aadd7`](https://github.com/AJaySi/ALwrity/commit/37aadd7e19deaa03ea4b85455ff7666c74ee7f1c) Delete backend/services/__pycache__/__init__.cpython-313.pyc ### 📊 Changes **18 files changed** (+4417 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/api/onboarding.py` (+78 -1) ➕ `backend/api/persona.py` (+385 -0) ➕ `backend/api/persona_routes.py` (+167 -0) 📝 `backend/app.py` (+4 -0) ➕ `backend/deploy_persona_system.py` (+197 -0) ➕ `backend/models/persona_models.py` (+234 -0) 📝 `backend/scripts/create_all_tables.py` (+6 -0) ➕ `backend/scripts/create_persona_tables.py` (+53 -0) ➕ `backend/services/__pycache__/api_key_manager.cpython-313.pyc` (+0 -0) 📝 `backend/services/database.py` (+3 -1) ➕ `backend/services/persona_analysis_service.py` (+668 -0) ➕ `backend/services/persona_replication_engine.py` (+506 -0) ➕ `backend/test_persona_system.py` (+202 -0) ➕ `docs/PERSONA_IMPLEMENTATION_SUMMARY.md` (+266 -0) ➕ `docs/PERSONA_SYSTEM_DOCUMENTATION.md` (+328 -0) ➕ `docs/PERSONA_SYSTEM_EXAMPLE.md` (+462 -0) ➕ `frontend/src/api/persona.ts` (+244 -0) ➕ `frontend/src/components/OnboardingWizard/PersonaGenerationStep.tsx` (+614 -0) </details> ### 📄 Description Implement a Writing Persona System with Gemini-powered analysis and platform-specific adaptations. This PR introduces a comprehensive system to generate high-fidelity, data-driven writing personas from user onboarding data, ensuring consistent brand voice across content and platforms. The system moves from subjective persona descriptions to objective, measurable instructions for AI content generation, providing "hardened" prompts for consistent output and enabling platform-specific optimization. --- <a href="https://cursor.com/background-agent?bcId=bc-4ef827fb-4010-434a-b975-c79cfc0f2820"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-4ef827fb-4010-434a-b975-c79cfc0f2820"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 20:59:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#605
No description provided.