Skip to content

AI assistant that produces brand-consistent social posts and organized Notion artifacts, with decisive consultation and human approvals.

Notifications You must be signed in to change notification settings

Aparnap2/personal_assist_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Nexus Personal AI - POC Implementation

A complete POC implementation of the Nexus Personal AI Assistant following the PRD specifications. This is a done-with-you AI assistant that produces brand-consistent social posts and organized Notion artifacts, with decisive consultation and human approvals.

πŸš€ Features Implemented

βœ… Core Features (V1 POC)

  • Voice-calibrated content drafting - AI generates posts matching user's voice
  • Human-in-the-loop approvals - All content requires manual approval
  • Multi-platform support - Twitter/X and LinkedIn ready
  • Consultation chat - AI assistant with actionable suggestions
  • Analytics dashboard - Performance tracking and insights
  • Notion integration - Automated note and task creation (UI ready)
  • Modular architecture - Scalable and maintainable codebase

πŸ”§ Technical Stack

Frontend (React Native + Expo)

  • React Native with Expo Router v3
  • NativeWind for styling (Tailwind CSS)
  • TypeScript for type safety
  • Context API for state management
  • Firebase Authentication

Backend (Python FastAPI)

  • FastAPI with async support
  • SQLAlchemy ORM with SQLite (production-ready for PostgreSQL)
  • OpenAI/Anthropic integration for AI services
  • Firebase Admin SDK for authentication
  • Modular service architecture

πŸ“ Project Structure

personal-assist/
β”œβ”€β”€ app/                      # React Native app (Expo Router)
β”‚   β”œβ”€β”€ (tabs)/              # Tab navigation screens
β”‚   β”œβ”€β”€ auth.tsx             # Authentication screen
β”‚   └── _layout.tsx          # Root layout with providers
β”œβ”€β”€ components/              # Reusable UI components
β”‚   β”œβ”€β”€ ui/                  # Basic UI primitives
β”‚   └── DraftCard.tsx        # Draft management component
β”œβ”€β”€ contexts/                # React Context providers
β”‚   β”œβ”€β”€ AuthContext.tsx      # Authentication state
β”‚   └── AppContext.tsx       # App-wide state
β”œβ”€β”€ services/                # API clients and Firebase config
β”œβ”€β”€ types/                   # TypeScript type definitions
β”œβ”€β”€ utils/                   # Helper functions
β”œβ”€β”€ server/                  # Python FastAPI backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/v1/         # API route handlers
β”‚   β”‚   β”œβ”€β”€ core/           # Configuration and dependencies
β”‚   β”‚   β”œβ”€β”€ models/         # Database models
β”‚   β”‚   β”œβ”€β”€ schemas/        # Pydantic schemas
β”‚   β”‚   └── services/       # Business logic services
β”‚   └── requirements.txt     # Python dependencies
└── IMPLEMENTATION_PLAN.md   # Development roadmap

πŸ› οΈ Setup Instructions

Prerequisites

  • Node.js 18+ and npm/yarn
  • Python 3.9+
  • Expo CLI: npm install -g @expo/cli

Frontend Setup

  1. Install dependencies:

    npm install
  2. Setup environment variables:

    cp .env.example .env
    # Edit .env with your Firebase and API configurations
  3. Start the development server:

    npm start
  4. Run on device:

    # iOS
    npm run ios
    
    # Android  
    npm run android
    
    # Web
    npm run web

Backend Setup

  1. Navigate to server directory:

    cd server
  2. Create virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Setup environment variables:

    cp .env.example .env
    # Edit .env with your API keys and configurations
  5. Start the server:

    python run_server.py

The API will be available at http://localhost:8000

🎯 Key Features Demo

1. Dashboard

  • Quick actions for content generation
  • Analytics overview with key metrics
  • Pending drafts management
  • Real-time updates

2. Content Generation

  • AI-powered draft creation
  • Voice profile matching
  • Multiple variants per draft
  • Best-time scheduling suggestions

3. Human-in-the-Loop Approval

  • Visual draft review interface
  • Approve/reject with reasons
  • Scheduling options
  • Moderation status tracking

4. AI Consultation Chat

  • Context-aware conversations
  • Actionable suggestions with "Apply" buttons
  • Integration with content generation
  • Chat history persistence

5. Analytics & Insights

  • Performance tracking
  • Theme analysis
  • Engagement trends
  • AI-powered recommendations

πŸ” Authentication

The POC includes:

  • Firebase Authentication setup (Google, email/password)
  • JWT token management
  • Protected routes and screens
  • User profile management

πŸ€– AI Integration

Content Generation

  • OpenAI GPT-3.5/GPT-4 integration
  • Voice profile analysis from writing samples
  • Context-aware content creation
  • Moderation and safety checks

Chat Assistant

  • Conversational AI with memory
  • Action-oriented responses
  • Integration with content workflows
  • User preference learning

🎨 Design System

Built with a comprehensive design system:

  • Consistent color palette
  • Reusable UI components
  • Responsive layouts
  • Dark/light mode support
  • Accessibility considerations

πŸ“Š Data Models

User Profile

  • Goals and themes
  • Voice profile with tone analysis
  • Integration settings
  • Preferences and notifications

Content Management

  • Draft creation and versioning
  • Approval workflows
  • Publishing schedules
  • Performance tracking

Analytics

  • Engagement metrics
  • Time savings calculations
  • Content performance analysis
  • AI recommendations

πŸš€ Deployment Ready

The POC is structured for easy deployment:

Frontend

  • Expo EAS Build ready
  • Environment-based configuration
  • Production optimizations

Backend

  • Docker containerization ready
  • Database migration support
  • Environment-based settings
  • Scalable architecture

πŸ”„ Next Steps (V1.1+)

Based on the implementation plan:

  • Calendar integration for proactive prompts
  • Advanced content calendar
  • Multi-account management
  • Enhanced analytics
  • Real OAuth integrations
  • Production database setup

πŸ“ž Support

This POC demonstrates the full technical feasibility of the Nexus Personal AI concept as outlined in the PRD. The modular architecture ensures easy feature additions and maintenance.


Built with ❀️ following the PRD specifications for maximum commercial viability and user value.

About

AI assistant that produces brand-consistent social posts and organized Notion artifacts, with decisive consultation and human approvals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published