QiLife User Flows
1. Quick Capture and AI Triage
sequenceDiagram
actor Cody
participant UI as QiLife Web UI
participant API as FastAPI Backend
participant AI as AI Service
participant DB as SQLite Database
Cody->>UI: Enter raw text in Quick Capture
UI->>API: POST /api/qibits/capture
API->>DB: Save QiBit with status 'new'
API->>AI: interpret_qibit(raw_capture)
AI-->>API: Suggested structure
API->>DB: Save suggestions in ai_outputs
API-->>UI: Return QiBit plus staged suggestions
UI-->>Cody: Show QiBit in Inbox with review controls
Cody->>UI: Accept or edit suggestions
UI->>API: POST /api/qibits/{id}/triage
API->>DB: Update QiBit and create approved downstream records
API->>DB: Write provenance links
UI-->>Cody: Remove from Inbox and expose in Timeline/Thread/Action views
2. Daily Planning
- Cody opens Today.
- QiLife shows:
- due or scheduled actions
- open loops (
waiting_onactions and unresolved obligations) - recent QiBits
- an AI focus summary placeholder or live summary
- Cody schedules or reschedules actions by writing
scheduled_for. - If an item is blocked, Cody sets the action or thread status to
waiting_on.
3. Active Work with Context Dock
- Cody opens a thread, action, QiBit, or person detail view.
- The Context Dock shows:
- linked knowledge items
- linked documents
- related QiBits
- people/entities
- obligations and transactions
- prior resolutions and recent activity
- Cody completes the work in the center pane while the Context Dock keeps the relevant knowledge beside it.
4. End-of-Day Review
- Cody opens the end-of-day review in Today.
- The backend aggregates the day's projected timeline items.
summarize_day()generates or refreshes adaily_summariesrecord for the date.generate_reflection_prompt()suggests a reflection prompt.- Cody may save a reflection as a QiBit of type
reflection.
daily_summaries and reflection QiBits are distinct:
daily_summariesare synthesized day-level summaries- reflection QiBits are authored reflections tied to lived events
5. Ask QiLife
- Cody asks a question in Ask QiLife.
- The backend searches links, thread context, bucket context, SQL matches, and text search.
- The answer returns cited supporting records.
- Cody can save the output as:
- action
- knowledge item
- note-type QiBit
- reflection-type QiBit