# Joshleen AI Workflow Update

This build upgrades the lower-right Joshleen AI floating bot from a simple guidance chatbox into a local workflow assistant for HomeSyncHub.

## Implemented workflow

1. User clicks the Joshleen AI icon in the lower-right corner.
2. A chatbox overlay opens without disrupting the main interface.
3. User types a natural-language request, for example:
   - `Create a task to call John tomorrow at 10 AM`
   - `Remind me to submit the report by Friday 5 PM`
   - `Schedule team meeting on Friday at 2 PM`
4. Joshleen AI detects the likely intent:
   - Task / Todo
   - Chore
   - Event
   - Meal
   - General guidance question
5. Joshleen AI extracts usable details:
   - title
   - date
   - time
   - reminder timing
   - category
   - repeat hints
   - meal slot when relevant
6. If required information is missing, Joshleen AI asks for clarification.
7. If enough information exists, Joshleen AI creates a draft and asks the user to confirm.
8. User can choose:
   - Save
   - Edit in Add New
   - Cancel
9. Saving creates the item inside the active Family Hub.
10. Joshleen AI can then update the reminder through a follow-up such as:
    - `30 minutes before`
    - `1 hour before`
    - `no`

## Multi-step support

Before saving a draft, the user can add an attendee with a follow-up like:

```txt
Add John as an attendee
```

Joshleen AI adds that detail to the active draft before saving.

## Server actions added

- `ai_create_item`
- `ai_update_reminder`

These return JSON responses for the chatbox overlay.

## Safety rule

Joshleen AI does not save changes automatically. It drafts first and requires user confirmation before writing the item into HomeSyncHub.

## Local build note

This is a local rule-based assistant workflow. It does not require an external AI API. A real AI provider can be connected later while keeping the same safe confirm-before-save behavior.
