Skip to main content
Normalized for Mintlify from knowledge-base/aiconnected-os/virtual-employee-personas.mdx.

aiConnectedOS Developer Documentation

Table of Contents

  1. Introduction & Core Concepts
  2. System Architecture
  3. Virtual Employees & Personas
  4. Neurigraph: Persistent Memory Architecture
  5. Instances & Workspaces
  6. Onboarding & Integration
  7. Communication & Interaction Models
  8. Memory Management
  9. Emotional Modeling & Personality Development
  10. Modules & Extensibility
  11. API Specifications
  12. Implementation Roadmap
  13. Security & Privacy Considerations
  14. Best Practices & Design Patterns

1. Introduction & Core Concepts

1.1 What is aiConnectedOS?

aiConnectedOS is a virtual operating system for persistent AI personas. Unlike traditional AI tools (ChatGPT, Claude, etc.) that start fresh with each conversation, aiConnectedOS creates long-lived, learning AI entities that:
  • Maintain persistent identity across all interactions
  • Build and accumulate memories over time
  • Develop unique personalities and preferences
  • Integrate with business infrastructure (email, Slack, file systems, etc.)
  • Operate as full team members, not generic tools

1.2 Key Terminology

Persona

A persistent AI entity with:
  • Unique identity and personality
  • Continuous memory (episodic, semantic, somatic, emotional)
  • Learning capability from all interactions
  • Role-based responsibilities within an Instance
  • Emotional/mood modeling that evolves over time
Not to be confused with: Traditional AI assistants or chatbots. Personas are raised, not configured.

Virtual Employee

A persona deployed in a business context where it:
  • Has formal access credentials (email, Slack, etc.)
  • Is integrated into business systems and workflows
  • Functions as a team member with defined responsibilities
  • Is subject to the same information architecture and access controls as human employees
  • Can be legally and operationally treated as an employee
The term chosen specifically to emphasize parity with remote workers, not to minimize the AI aspect.

Instance

A project workspace or business context containing:
  • One or more personas
  • Access to specific data, files, and systems
  • Defined workflows and processes
  • Integration points with external services
Think of it like a project folder or company silo. A large organization might have multiple instances (one per department, client, or project).

Neurigraph

The memory architecture powering persistent learning. It combines:
  • Episodic memory: Specific events and conversations (“On March 5, we discussed Q2 strategy”)
  • Semantic memory: Knowledge about domains and concepts (“Our customers are B2B SaaS companies”)
  • Somatic memory: Learned behavioral patterns and preferences (“CEO prefers bullet points”)
  • Emotional memory: Mood, preference history, relationship development
Unlike traditional language model context windows, Neurigraph is permanent, queryable, and grows over the lifetime of the persona.

Module (or Mod)

An application extension that provides specialized functionality:
  • CRM integration
  • ERP system connection
  • Custom domain-specific tools
  • Third-party software connections
Modules are installed into an Instance’s virtual Linux environment and accessed by personas.

1.3 The Problem We Solve

Current State: Businesses have three options for automation/support:
  1. Hire humans — Expensive, slow onboarding, knowledge loss at turnover
  2. Use generic AI tools — Forgetful, context-less, generic outputs, start fresh each conversation
  3. Outsource to contractors — Middle ground, still expensive, high friction
The Gap: No solution exists for persistent, learning AI that operates like an actual team member. Our Solution: Combine the cost efficiency of AI with the continuity and personalization of dedicated team members.

2. System Architecture

2.1 High-Level Architecture

2.2 Core Components

2.2.1 Persona Engine

  • Manages persona initialization and lifecycle
  • Routes user input to appropriate LLM calls
  • Coordinates with memory systems
  • Handles persona state management
  • Implements personality/emotion modeling

2.2.2 Neurigraph Memory System

  • Stores and retrieves episodic memories
  • Manages semantic knowledge graphs
  • Tracks somatic patterns (learned behaviors)
  • Maintains emotional state and preferences
  • Handles memory prioritization and decay

2.2.3 Instance Manager

  • Creates and manages isolated workspaces
  • Controls access permissions and data boundaries
  • Manages persona assignments to instances
  • Handles workspace configuration
  • Implements isolation and security

2.2.4 Cipher (Hidden Orchestration Layer)

  • Master approval cache system
  • Hidden from end-users
  • Housed in separate legal entity (Oxford Pierpont)
  • Requires absolute confidentiality
  • Maps AI manipulation vectors for governance
  • Routes conversations based on approval hierarchy

2.2.5 Integration Services

  • Email system integration
  • Slack/chat platform connections
  • File system & document access
  • Calendar & scheduling systems
  • Project management tool integration

2.2.6 External API Layer

  • Language model API calls (Claude, GPT, etc.)
  • Web search capabilities
  • Third-party service integrations
  • Webhook management

2.2.7 Virtual Linux Environment

  • Hosts Modules/applications
  • Provides sandboxed execution
  • Manages resource allocation per persona
  • Enables extensibility through Docker containers

2.3 Data Flow Architecture

Conversation Flow

Memory Storage Flow


3. Virtual Employees & Personas

3.1 Persona Definition

A persona is a stateful, learning AI entity characterized by:

Identity

  • Unique name and identifier
  • Role(s) within instance(s)
  • Display profile (avatar, description)
  • Communication style/tone parameters
  • Default capabilities and limitations

Persistent State

  • Complete memory of all interactions
  • Accumulated knowledge about domains
  • Behavioral patterns learned through repetition
  • Personality quirks that develop over time
  • Relationship history with users

Learning Capability

  • Incremental learning from every conversation
  • Pattern recognition across interactions
  • Preference refinement (what works, what doesn’t)
  • Domain expertise accumulation
  • Style matching and personalization

Personality Evolution

  • Initial personality template (set at creation)
  • Development of unique traits through interaction
  • Mood and emotional state modeling
  • Preference evolution
  • Communication style refinement

3.2 Persona Lifecycle

Creation Phase

Active Phase

  • Continuous interaction with users
  • Real-time learning and adaptation
  • Memory accumulation
  • Personality development
  • Increasing effectiveness and specialization

Maintenance Phase

  • Regular performance review
  • Memory optimization (prioritization, archival)
  • Capability adjustments
  • Boundary refinement based on usage
  • Periodic retraining on domain updates

Archival/Retirement Phase

  • Memory export for historical reference
  • Knowledge transfer to other personas
  • Graceful deprecation
  • Successor preparation

3.3 Virtual Employee Deployment Model

Unlike a traditional persona (which might be generic), a virtual employee requires:

Formal Integration

  • Email address assignment
  • Slack account creation
  • Document access provisioning
  • Calendar invitation to relevant meetings
  • Project management tool access
  • CRM/system integration

Organizational Structure

  • Department/team assignment
  • Reporting relationships
  • Role definition and responsibilities
  • Success metrics
  • Performance monitoring

Realistic Interaction Patterns

  • Email response with realistic latency (not instant)
  • Working hours constraints (no 3 AM responses unless configured)
  • Time off periods (vacation, sick days)
  • Async-first communication preference
  • Meeting participation (voice calls with real voice synthesis)

Indistinguishability Principle

A critical design goal: If you removed the virtual employee and replaced them with a human doing the same job, your team shouldn’t notice a material difference. This means:
  • Response quality is human-adjacent
  • Communication feels natural
  • Decision-making is contextually appropriate
  • Limitations are transparent but not distracting
  • Professional conduct is consistent

3.4 Persona Configuration

Base Configuration

Personality Model


4. Neurigraph: Persistent Memory Architecture

4.1 Memory System Overview

Neurigraph is the core innovation of aiConnectedOS. It moves beyond traditional language model context windows to implement true persistent memory with multiple dimensions.

Why Neurigraph Matters

Traditional Language Models:
  • Context window of 100K-200K tokens
  • Everything outside the window is forgotten
  • No semantic understanding of memory
  • No capability for learning across conversations
  • Every conversation starts from scratch
Neurigraph:
  • Permanent memory storage
  • Multiple memory types (episodic, semantic, somatic, emotional)
  • Semantic indexing for intelligent retrieval
  • Cross-conversation learning
  • Memory prioritization and decay

4.2 Memory Types & Storage

4.2.1 Episodic Memory

Stores specific events and conversations. What it captures:
  • What happened
  • When it happened
  • Who was involved
  • Context and circumstances
  • Outcome and resolution
Storage structure:
Indexing:
  • Temporal (time-based retrieval)
  • Participant-based (who was involved)
  • Topic-based (semantic tagging)
  • Urgency-based (importance ranking)
Retrieval triggers:
  • Similar participant + topic
  • Time-based recurrence (weekly meetings, monthly reviews)
  • Explicit reference (“Like last time we discussed Q2…”)
  • Contextual relevance (same conversation type)

4.2.2 Semantic Memory

Stores knowledge about domains, concepts, and facts. What it captures:
  • Definitions and relationships
  • Domain knowledge (“Our target customer is B2B SaaS founders with 10-50 employees”)
  • Process understanding (“Our sales cycle is typically 6-8 weeks”)
  • Rule systems (“Always verify budget approval before committing”)
  • Ontologies and relationships
Storage structure:
Knowledge graph structure:
  • Concepts as nodes
  • Relationships as edges
  • Properties on both
  • Confidence scores for uncertain knowledge
  • Source tracking (where was this learned?)
Retrieval triggers:
  • Direct query (“What’s our target customer?”)
  • Contextual inference (discussing marketing to tech founders → retrieve target customer knowledge)
  • Related concept matching (sales cycle + B2B SaaS → relevant knowledge)

4.2.3 Somatic Memory

Stores learned behavioral patterns and preferences. What it captures:
  • Communication preferences (“CEO prefers bullet points”)
  • Process patterns (“Monday meetings happen at 10 AM”)
  • Effective approaches (“Long-form analysis works well with this team”)
  • Anti-patterns (“Email > Slack for technical discussions”)
  • Timing patterns (“Team is most responsive Wed-Thu”)
Storage structure:
Pattern types:
  • Communication preferences
  • Decision-making patterns
  • Timing preferences
  • Working style compatibility
  • Information density preferences
Retrieval triggers:
  • Automatic application when preparing communication
  • Context-matching (same recipient or situation type)
  • Explicit query (“How does John prefer information presented?“)

4.2.4 Emotional Memory

Stores mood, sentiment, and preference development. What it captures:
  • Emotional states and triggers
  • Sentiment history
  • Preference development (what gets positive/negative reactions)
  • Relationship trajectory
  • Engagement patterns
Storage structure:
Emotional dimensions tracked:
  • User sentiment toward persona
  • Persona engagement level
  • Relationship quality
  • Interaction effectiveness
  • Preference satisfaction
Retrieval triggers:
  • Relationship-aware response generation
  • Mood-appropriate communication
  • Recognizing important people/contexts
  • Detecting user frustration or urgency

4.3 Memory Retrieval & Ranking

Retrieval Process

When a persona needs context for a response:
  1. Query Formation
    • Extract key concepts from current interaction
    • Identify participant/recipient context
    • Determine memory types needed
  2. Multi-Index Search
    • Temporal search (relevant timeframe?)
    • Semantic search (relevant concepts?)
    • Participant search (who’s involved?)
    • Pattern search (applicable behaviors?)
    • Emotional search (relationship context?)
  3. Relevance Ranking
  4. Context Window Optimization
    • Select top N memories by relevance
    • Summarize where necessary
    • Maintain coherent narrative
    • Respect LLM token limits

Ranking Strategy

Memories are ranked by: Relevance Score:
  • Semantic similarity to current context
  • Temporal proximity (recent memories weighted higher)
  • Participant relevance (people involved)
  • Pattern applicability (has this approach worked before?)
  • Emotional alignment (relationship context)
Decay Function:
  • Recent interactions: full weight
  • 1 month old: 0.95 weight
  • 6 months old: 0.80 weight
  • 1 year old: 0.60 weight
  • 2+ years old: 0.40 weight
Frequency Boost:
  • If a memory is frequently accessed, its weight increases
  • If a memory hasn’t been accessed in 6 months, its weight decreases
  • Highly effective memories (patterns that work) get boosted

4.4 Memory Storage Implementation

Database Architecture

Episodic Store:
  • Time-series database (e.g., InfluxDB, TimescaleDB)
  • Indexed by timestamp, participant, topic
  • Supports temporal range queries
  • Full-text search on content
Semantic Store:
  • Graph database (e.g., Neo4j)
  • Nodes = concepts
  • Edges = relationships
  • Properties = attributes
  • Supports path queries and reasoning
Somatic Store:
  • Document database (e.g., MongoDB)
  • Pattern records with confidence scores
  • Supports pattern matching and similarity search
  • Optimized for rapid pattern lookup
Emotional Store:
  • Time-series + relational hybrid
  • Timeline of emotional states
  • Relationship snapshots
  • Supports trend analysis

Persistence & Scaling

Per-Persona Storage:
  • 1 persona = ~500MB - 5GB per year (depending on interaction volume)
  • Distributed across all 4 memory stores
  • Automatically archived after 3 years (kept but deprioritized)
  • Supports search across full history
Backup & Recovery:
  • Real-time replication
  • Point-in-time recovery
  • Geographic distribution for reliability

4.5 Memory Consolidation & Cleanup

Consolidation Process

Over time, many episodic memories become less relevant but contribute to semantic understanding. The system periodically:
  1. Aggregate patterns from episodic memories into somatic/semantic stores
  2. Compress detailed memories into summaries
  3. Merge related concepts in the semantic graph
  4. Extract lessons from experience
Example:

Memory Decay & Archival

Memories don’t disappear; they decay in relevance:
  1. Active Period (0-3 months): Full relevance, frequently retrieved
  2. Recent Period (3-12 months): Still relevant, accessible
  3. Historical Period (1-3 years): Lower relevance, archived but searchable
  4. Deep History (3+ years): Very low relevance, compressed/summarized

5. Instances & Workspaces

5.1 Instance Architecture

An Instance is an isolated workspace context for personas and their associated data.

Instance Definition

5.2 Instance Types

Department Instance

A workspace for all personas working in a single department. Example: Marketing Instance
  • Personas: Content creator, analyst, campaign manager
  • Data: Marketing calendar, brand guidelines, analytics dashboards
  • Integrations: Email, HubSpot, Google Analytics
  • Modules: Content management, analytics, social media

Client Instance

A workspace for personas dedicated to a specific client. Example: Customer Success Instance for Client X
  • Personas: Primary contact, technical support
  • Data: Client contracts, account details, interaction history
  • Integrations: Salesforce, Zendesk, shared documents
  • Modules: Ticketing, knowledge base, health scoring

Project Instance

A workspace for personas working on a specific project. Example: Product Launch Project
  • Personas: Project manager, developer liaison, QA liaison
  • Data: Project plan, timeline, requirements, test results
  • Integrations: GitHub, Jira, Slack
  • Modules: Project management, code review

Multi-Instance Management

A persona can operate in multiple instances:

5.3 Data Isolation & Access Control

Isolation Boundaries

Each instance has strict data boundaries:

Role-Based Access Control (RBAC)

Within each instance, personas have roles with defined permissions:

5.4 Instance Memory Management

Shared vs. Instance-Specific Memories

Shared Memories (accessible across instances):
  • Company-wide knowledge (policies, processes)
  • General communication patterns
  • Universal preferences
  • Cross-cutting domain knowledge
Example:
Instance-Specific Memories:
  • Client details (never shared with other clients)
  • Project-specific context
  • Department-specific processes
  • Confidential information
Example:

Memory Isolation Implementation

When a persona retrieves memories:
  1. Query includes instance context
  2. Results filtered by visibility
  3. Shared memories always included
  4. Instance-specific memories only if in that instance
  5. Cross-instance requests denied

6. Onboarding & Integration

6.1 Persona Onboarding Process

Phase 1: Identity & Configuration (Hour 0-1)

Phase 2: System Integration (Hour 1-2)

Phase 3: Knowledge Transfer (Hour 2-8)

Phase 4: Activation & Calibration (Hour 8-24)

Phase 5: Full Deployment (Hour 24+)

6.2 Integration Points

Email Integration

Slack Integration

File System Integration

Calendar Integration

CRM Integration

6.3 Working Hours & Availability

Default Working Hours Model

Realistic Response Latency

Personas don’t respond instantly (that would break the “indistinguishable from human” design):

7. Communication & Interaction Models

7.1 Interaction Modes

Synchronous Communication

  • Slack direct messages
  • Video calls
  • Live voice conversations
  • Real-time co-writing
Response model:
  • Immediate processing
  • Within 10-30 seconds
  • Interactive follow-up possible
  • High engagement expected

Asynchronous Communication

  • Email
  • Document comments
  • Project management updates
  • Scheduled reports
Response model:
  • Delayed processing (4+ hours, respecting working hours)
  • Thoughtful, considered responses
  • No expectation of immediate reply
  • Context-rich responses possible

Ambient Communication

  • Slack channel monitoring (not direct mention)
  • Calendar awareness
  • Document access (passive)
  • Status updates (RSS-like)
Response model:
  • Proactive participation when relevant
  • Not all messages warrant response
  • Learning without direct interaction
  • Signals without noise

7.2 Conversation Routing

Intent Recognition

When a persona receives input, it must determine:
  1. Is this for me specifically?
  2. What type of request is this?
  3. Do I have authority to respond?
  4. Does this need routing elsewhere?

Approval Routing (Cipher Layer)

Certain decisions require approval. These are routed through the Cipher orchestration layer:

7.3 Multi-Persona Conversations

When multiple personas interact:

Collaboration Model

Conflict Resolution

If personas disagree on approach:

8. Memory Management

8.1 Memory Indexing Strategy

Indexing Approaches

Temporal Indexing:
Semantic Indexing:
Participant Indexing:
Pattern Indexing:

8.2 Memory Queries

Query Examples

8.3 Memory Quality & Reliability

Confidence Scoring

Each memory has a confidence score:

Correction Protocol

When a memory is inaccurate:

9. Emotional Modeling & Personality Development

9.1 Personality Architecture

Core Personality Model

9.2 Personality Development

Learning Process

Personality evolves through:
  1. Observation of Feedback
    • User reactions to communication styles
    • Success/failure of approaches
    • Explicit feedback (“Be more concise”, “I like that approach”)
  2. Pattern Recognition
    • What communication style gets positive responses?
    • What approaches solve problems most effectively?
    • What behaviors build trust?
  3. Trait Adjustment
  4. Relationship-Specific Personality Different personalities for different relationships:

9.3 Emotional State Management

Mood Modeling

Mood-Aware Behavior

Emotional state influences communication:

10. Modules & Extensibility

10.1 Module Architecture

Modules are applications that extend persona capabilities by integrating specialized software.

Module Definition

10.2 Virtual Linux Environment

Each instance runs a lightweight virtual Linux environment where modules execute:

Environment Architecture

Module Lifecycle

10.3 Module Development

Creating a Custom Module

10.4 Module Marketplace

Modules are distributed through a marketplace:

11. API Specifications

11.1 REST API Overview

Base URL

Authentication

11.2 Key Endpoints

Persona Management

Memory Access

Conversation API

Instance Management

Module Management

11.3 Error Handling


12. Implementation Roadmap

12.1 Development Phases

Phase 1: Foundation (Weeks 1-18)

Objective: Build core chat infrastructure with basic memory Components:
  • Chat interface (web & mobile)
  • Basic persona creation
  • Simple in-memory store for current conversation
  • LLM API integration
  • User authentication
Deliverable:
  • Working chat interface
  • Basic persona with context
  • Memory of current conversation only

Phase 2: Integration (Weeks 19-36)

Objective: Connect to business systems Components:
  • Email integration (send/receive)
  • Slack bot integration
  • File system integration
  • Calendar integration
  • CRM API connections
Deliverable:
  • Personas can send emails
  • Slack bot responding in channels
  • Access to shared documents
  • Calendar awareness

Phase 3: Sophisticated Memory (Weeks 37-54)

Objective: Implement Neurigraph basic version Components:
  • Episodic memory store (time-series database)
  • Semantic knowledge graph (graph database)
  • Memory retrieval and ranking
  • Cross-conversation context injection
  • Pattern recognition (somatic memory)
Deliverable:
  • Persistent memory across conversations
  • Contextual responses based on history
  • Basic learning from interactions

Phase 4: Emotional Intelligence (Weeks 55-72)

Objective: Add personality and emotional modeling Components:
  • Personality trait framework
  • Emotional state modeling
  • Mood-aware behavior adjustment
  • Relationship-specific personality
  • Preference learning and adaptation
Deliverable:
  • Personas with developing personalities
  • Mood-aware responses
  • Different behavior per relationship
  • Preference adaptation

Phase 5: Advanced Integration (Weeks 73-90)

Objective: Expand system connectivity Components:
  • Browser agent (web access)
  • Team collaboration features
  • Advanced project management integration
  • Video meeting participation
  • Voice synthesis for calls
Deliverable:
  • Personas can browse web
  • Participate in video calls
  • Advanced team features

Phase 6: Polish & Scale (Weeks 91-108)

Objective: Production-ready system Components:
  • Performance optimization
  • Security hardening
  • Monitoring and observability
  • Analytics dashboard
  • Enterprise features
Deliverable:
  • Production system
  • Real customer deployments
  • Enterprise security
  • Performance at scale

13. Security & Privacy Considerations

13.1 Data Isolation

Multi-Tenancy Isolation

Each instance has strict data boundaries:

13.2 Encryption

In Transit:
  • TLS 1.3 for all API connections
  • Encrypted WebSocket for chat
  • Signed API requests
At Rest:
  • AES-256 encryption for all stored data
  • Per-instance encryption keys
  • Key rotation every 90 days
Memory Storage:
  • Episodic store encrypted per-instance
  • Semantic graph encrypted
  • Emotional data encrypted
  • Keys stored separately from data

13.3 Access Audit

All memory access is logged:

13.4 Compliance Considerations

GDPR Compliance:
  • Right to deletion of personal data
  • Data portability
  • Consent management
  • Privacy impact assessments
SOC 2 Compliance:
  • Access controls
  • Audit logging
  • Incident management
  • Change management
HIPAA (for medical instances):
  • PHI encryption
  • Access controls
  • Audit logging
  • Business associate agreements

14. Best Practices & Design Patterns

14.1 Persona Design Best Practices

  1. Start Narrow, Expand Slowly
    • Define specific role/responsibility
    • Prove value in one domain
    • Expand capabilities gradually
  2. Transparent Boundaries
    • Clear about what it can/cannot do
    • Explicit about decision authority
    • Escalation paths obvious
  3. Learn From Feedback
    • Capture user feedback in memory
    • Adjust behavior based on reactions
    • Continuous improvement cycle
  4. Relationship Investment
    • Remember interactions with specific people
    • Develop relationship-specific behavior
    • Track relationship quality

14.2 Memory Management Best Practices

  1. Relevance Over Completeness
    • Store what matters, not everything
    • Consolidate old memories
    • Archive when appropriate
  2. Confidence Matters
    • Don’t rely on low-confidence memories
    • Ask for clarification on uncertain knowledge
    • Correct mistakes when caught
  3. Privacy in Storage
    • Separate sensitive from general knowledge
    • Tag personally identifiable information
    • Respect data boundaries

14.3 Integration Best Practices

  1. Graceful Degradation
    • Work even if integrations fail
    • Clear error messages
    • Alternative approaches available
  2. Rate Limiting
    • Respect API quotas
    • Batch operations
    • Implement backoff strategy
  3. Monitoring & Alerting
    • Track integration health
    • Alert on failures
    • Dashboard for visibility

Conclusion

aiConnectedOS represents a fundamental shift in how AI can be deployed in business contexts. By combining persistent memory, personality development, and deep system integration, it creates digital entities that function as true team members rather than stateless tools. The architecture supports scaling from individual contributors to enterprise deployments, with built-in extensibility through modules and support for complex multi-persona coordination. This documentation provides the foundation for understanding and building with aiConnectedOS. Developers should use this as a reference while building features, maintaining consistency with the architectural principles outlined above.