Spaces:
Running
Running
Commit History
-
feat: Backend Media Reply logic & UI Sidebar fixes
axeronis33256ac
-
feat: resource-specific booking and notifications + unified ai_identity
axeronisbc65edb -
perf: reduce debounce from 4s to 2s for faster response
axeronisc5b0923 -
fix: post-generation check - abort if new messages arrived during AI generation
axeronis464c219 -
feat: batch multiple user messages for single AI response after debounce
axeronisdba971d
-
feat: Complete Media Cache Reply integration - Reply to sent media instead of skipping
axeronis27bea75 -
feat: Content Delivery System for coaches - MediaLibrary with flexible triggers (by_day, by_stage, by_event, ai_decides)
axeroniscd34c6f
-
feat: enable smart LLM name extraction
axeronis4e07887 -
feat: add reply_to_message support so AI understands when user replies to specific message
axeroniscca9494 -
feat: send product images as album (media group) instead of individual photos
axeronis10e7b9a -
fix: correct import path for Message model (app.models.lead)
axeronis8d0d85b -
fix: send ALL product images and save to DB for chat display
axeronis6d3b96e -
feat: add reschedule notification when appointments are moved to new time
axeronisf9d6bc4 -
fix: prevent duplicate booking when AI confirms existing appointment
axeronis39ac4b7
-
fix: booking uses AI-extracted name and niche, removed hardcoded keywords
axeronisa843d00 -
feat: TTS sanitizer - extract URLs/cards/emails and send as text after voice
axeronisc222f07 -
fix: ai_enabled toggle persistence and webhook check
axeronis04373b4 -
fix: booking duplicates, name extraction, notification spam
axeronis449cfa0
-
fix: user voice request bypasses frequency limit
axeronisd5ac7bd -
feat: add user_requested_voice flag to trigger voice when user asks for it
axeronis3ff107f -
fix: remove redundant import causing UnboundLocalError
axeronisaf3b3ec -
fix: use get_ai_core().llm for voice analysis in webhook
axeronis191d518 -
fix: correct LLM import in webhook - use llm directly
axeronis27fa486 -
fix: undefined variable ai_message_count -> ai_msg_count
axeronis7e95eff -
feat: replace keyword triggers with smart LLM semantic analysis for voice
axeronisfc80520 -
fix: reduce voice frequency - only critical moments, max 1 per 5 messages
axeronisf673563 -
feat: track LATEST voice preference - allow re-enabling voice after disabling
axeronis6df5db6 -
feat: use smart LLM detection result in webhook, keywords as fallback
axeronis81b3ca5 -
fix: add voice preference check in webhook.py to override ALL voice triggers
axeronisdf6fb4c
-
feat: add smart voice detection for all situations (doubts, apologies, closing, etc)
axeronisabc13a7 -
feat: auto-send voice for first greeting message + add voice decision logging
axeronis22169b1 -
feat: smart booking and notifications - Add _find_available_slots() for suggesting alternatives when slot is taken - Smart notifications with AI context (intent, pain points, heat score) - Real-time summary updates via WebSocket after lead analysis
axeronis9fb267a
-
feat: improve AI human-like behavior
axeronisa6c8caf -
Fix: Use correct variable name conversation_history in escalation check
axeronis2a7e440 -
Feature: Smart Human Escalation System
axeronisNew escalation_service.py with 5 intelligent triggers: 1. Negative sentiment detection (Russian + English) 2. Low AI confidence / [NEED_HUMAN] tag 3. Repeated questions detection 4. High-value deal alerts (notify without takeover) 5. AI-requested escalation Backend changes: - Integrated escalation check after AI response in webhook.py - Added Lead model fields: needs_attention, escalation_reason, escalation_at - Multi-channel notifications (WebSocket + Telegram) Frontend changes: - Red blinking badge on leads requiring attention in LeadsList When escalation triggers: - Sets human_takeover = true - Sends Telegram notification to manager - Shows badge in platform UIc87b355 -
Fix: Real-time updates for AI voice player and name extraction
axeronisFrontend: - ChatWindow.tsx: UPDATE existing messages instead of skipping duplicates - AI voice player now appears in real-time (not after refresh) Backend: - Added notify_lead_updated after name extraction - AI Summary name refreshes in real-time when user introduces themselves6a6deb3 -
Fix: Name extraction handles TG nicknames + AI voice WebSocket update
axeronis1. Name extraction now replaces ALL CAPS names (AXERON → Alex) 2. Replaces names with numbers/special chars (user_123 → Alex) 3. AI voice: WebSocket notification after Supabase upload Combined fixes for: - Name in AI Summary shows real name from dialog - AI voice message shows player in platform (not just text)a65240a -
Feature: AI voice messages now playable in platform
axeronisPreviously AI voice only sent to Telegram, not saved to DB. Fix: 1. Upload AI voice audio to Supabase (chat-attachments bucket) 2. Update ai_message with media_url, media_type, media_name 3. Voice now appears with player in platform chat UI Both Telegram and platform now have playable AI voice4aca3b9 -
Fix: Remove [SEND_VOICE] tag before saving to DB
axeronisTag was visible in platform UI because it was only removed for Telegram send, but message saved to DB before tag removal. Now stripped before saving so it never appears in chat UIc6f1711 -
Debug: Add detailed logging for media upload failures
axeronis34739db -
Feature: AI-based name extraction from messages
axeronis- Created app/utils/name_extraction.py utility - Regex patterns for Russian/English intro messages - Supports 'меня зовут X', 'my name is X', 'I'm X', etc. - LLM fallback (disabled by default for performance) - Validates extracted names (length, invalid words) - Integrated into Telegram webhook - Updates lead name only if better than current (avoids replacing valid names) - Prevents using Telegram nicknames as real names0bdce5c
-
feat: download and display incoming media from Telegram
axeronis- Add download_telegram_file() helper to fetch files via Bot API - Add get_mime_type() for proper content-type mapping - Download photos/voice/documents from Telegram webhooks - Upload to Supabase chat-attachments bucket - Save media_url, media_type, media_name in Message records - UI will display images/audio/files instead of just transcribed text41be229 -
feat(voice): add custom voice cloning support with 3 universal voices
axeronis5339570 -
feat(voice): add Chatterbox TTS with emotional voices and AI proactive voice decisions
axeronisd6efaed -
fix(voice): remove invalid 'onyx' voice param for Edge TTS
axeronis398cbd6 -
feat(voice): AI responds with voice when user sends voice message
axeronis1fee233 -
feat(multimodal): add Vision analysis for images and document content
axeronisa76cbc6 -
fix(telegram): add voice/photo/document support to main webhook handler
axeronis5a54992
-
fix: SyntaxError - fixed continue not in loop, proper if/else structure
axeronisfda4900 -
feat: auto-send product images when mentioned - no URLs in chat
axeronis101c2eb