Import ClientFlow production v4928.1.5.132.4

This commit is contained in:
plx
2026-07-29 13:11:01 +00:00
parent 6445044ac6
commit 261d342057
405 changed files with 48373 additions and 1401 deletions

View File

@@ -0,0 +1,28 @@
# Release v4928.1.5.6 — Safe Email Reply Agent Phase 1
## Added
- Optional OpenAI Responses API + file_search email reply agent.
- New `app/email_reply_agent_service.py`.
- `message_drafts.metadata.email_agent` with intent, priority, confidence, review flag and knowledge summary.
- Internal API endpoint `POST /api/internal/tasks/{task_id}/reply-draft`.
- Admin UI badge/agent status display.
## Safety
- Draft-only; no automatic sending.
- Fallback to existing ClientFlow reply assistant if agent is disabled or unavailable.
- Hard no-reply/internal templates are not overridden by the agent.
- Server-side reply safety validation remains active.
## Configuration
Set:
```env
CLIENTFLOW_EMAIL_REPLY_AGENT_ENABLED=true
OPENAI_API_KEY=sk-proj-...
OPENAI_VECTOR_STORE_ID=vs_...
```
Keep `false` to preserve the previous behavior.