feat: mid-session status updates — ticket notes, client updates, email drafts
Engineers can now generate AI-powered status updates during active FlowPilot
sessions and after resolve/escalate. Three audiences (Ticket Notes, Client
Update, Email Draft) with Quick/Detailed length options. Copy to clipboard
with one click. Client names auto-inserted from intake/PSA context.
Backend: new endpoint POST /ai-sessions/{id}/status-update with audience-aware
system prompts. Frontend: StatusUpdateModal with 2-step selection flow,
Share Update button in action bar, Share Resolution/Escalation on completed
sessions. Also updates Solutions Library spec with Community tier design.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -128,6 +128,28 @@ export interface SessionCloseResponse {
|
||||
member_mapping_warning: string | null
|
||||
}
|
||||
|
||||
export type StatusUpdateAudience = 'ticket_notes' | 'client_update' | 'email_draft'
|
||||
export type StatusUpdateLength = 'quick' | 'detailed'
|
||||
export type StatusUpdateContext = 'status' | 'resolution' | 'escalation'
|
||||
|
||||
export interface StatusUpdateRequest {
|
||||
audience: StatusUpdateAudience
|
||||
length: StatusUpdateLength
|
||||
context: StatusUpdateContext
|
||||
}
|
||||
|
||||
export interface StatusUpdateResponse {
|
||||
content: string
|
||||
audience: StatusUpdateAudience
|
||||
length: StatusUpdateLength
|
||||
context: StatusUpdateContext
|
||||
session_status: string
|
||||
steps_completed: number
|
||||
time_spent_display: string | null
|
||||
client_name: string | null
|
||||
generated_at: string
|
||||
}
|
||||
|
||||
export interface RateSessionRequest {
|
||||
rating: number
|
||||
feedback?: string | null
|
||||
|
||||
Reference in New Issue
Block a user