Spaces:
Running

microfunnel-api / backend /app /api /webhook.py

Commit History

  1. feat: Backend Media Reply logic & UI Sidebar fixes

    axeronis
    33256ac

  1. feat: resource-specific booking and notifications + unified ai_identity

    axeronis
    bc65edb
  2. perf: reduce debounce from 4s to 2s for faster response

    axeronis
    c5b0923
  3. fix: post-generation check - abort if new messages arrived during AI generation

    axeronis
    464c219
  4. feat: batch multiple user messages for single AI response after debounce

    axeronis
    dba971d

  1. feat: Complete Media Cache Reply integration - Reply to sent media instead of skipping

    axeronis
    27bea75
  2. feat: Content Delivery System for coaches - MediaLibrary with flexible triggers (by_day, by_stage, by_event, ai_decides)

    axeronis
    cd34c6f

  1. feat: enable smart LLM name extraction

    axeronis
    4e07887
  2. feat: add reply_to_message support so AI understands when user replies to specific message

    axeronis
    cca9494
  3. feat: send product images as album (media group) instead of individual photos

    axeronis
    10e7b9a
  4. fix: correct import path for Message model (app.models.lead)

    axeronis
    8d0d85b
  5. fix: send ALL product images and save to DB for chat display

    axeronis
    6d3b96e
  6. feat: add reschedule notification when appointments are moved to new time

    axeronis
    f9d6bc4
  7. fix: prevent duplicate booking when AI confirms existing appointment

    axeronis
    39ac4b7

  1. fix: booking uses AI-extracted name and niche, removed hardcoded keywords

    axeronis
    a843d00
  2. feat: TTS sanitizer - extract URLs/cards/emails and send as text after voice

    axeronis
    c222f07
  3. fix: ai_enabled toggle persistence and webhook check

    axeronis
    04373b4
  4. fix: booking duplicates, name extraction, notification spam

    axeronis
    449cfa0

  1. fix: user voice request bypasses frequency limit

    axeronis
    d5ac7bd
  2. feat: add user_requested_voice flag to trigger voice when user asks for it

    axeronis
    3ff107f
  3. fix: remove redundant import causing UnboundLocalError

    axeronis
    af3b3ec
  4. fix: use get_ai_core().llm for voice analysis in webhook

    axeronis
    191d518
  5. fix: correct LLM import in webhook - use llm directly

    axeronis
    27fa486
  6. fix: undefined variable ai_message_count -> ai_msg_count

    axeronis
    7e95eff
  7. feat: replace keyword triggers with smart LLM semantic analysis for voice

    axeronis
    fc80520
  8. fix: reduce voice frequency - only critical moments, max 1 per 5 messages

    axeronis
    f673563
  9. feat: track LATEST voice preference - allow re-enabling voice after disabling

    axeronis
    6df5db6
  10. feat: use smart LLM detection result in webhook, keywords as fallback

    axeronis
    81b3ca5
  11. fix: add voice preference check in webhook.py to override ALL voice triggers

    axeronis
    df6fb4c

  1. feat: add smart voice detection for all situations (doubts, apologies, closing, etc)

    axeronis
    abc13a7
  2. feat: auto-send voice for first greeting message + add voice decision logging

    axeronis
    22169b1
  3. 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

    axeronis
    9fb267a

  1. feat: improve AI human-like behavior

    axeronis
    a6c8caf
  2. Fix: Use correct variable name conversation_history in escalation check

    axeronis
    2a7e440
  3. Feature: Smart Human Escalation System⁠

    axeronis
    c87b355
  4. Fix: Real-time updates for AI voice player and name extraction⁠

    axeronis
    6a6deb3
  5. Fix: Name extraction handles TG nicknames + AI voice WebSocket update⁠

    axeronis
    a65240a
  6. Feature: AI voice messages now playable in platform⁠

    axeronis
    4aca3b9
  7. Fix: Remove [SEND_VOICE] tag before saving to DB⁠

    axeronis
    c6f1711
  8. Debug: Add detailed logging for media upload failures

    axeronis
    34739db
  9. Feature: AI-based name extraction from messages⁠

    axeronis
    0bdce5c

  1. feat: download and display incoming media from Telegram⁠

    axeronis
    41be229
  2. feat(voice): add custom voice cloning support with 3 universal voices

    axeronis
    5339570
  3. feat(voice): add Chatterbox TTS with emotional voices and AI proactive voice decisions

    axeronis
    d6efaed
  4. fix(voice): remove invalid 'onyx' voice param for Edge TTS

    axeronis
    398cbd6
  5. feat(voice): AI responds with voice when user sends voice message

    axeronis
    1fee233
  6. feat(multimodal): add Vision analysis for images and document content

    axeronis
    a76cbc6
  7. fix(telegram): add voice/photo/document support to main webhook handler

    axeronis
    5a54992

  1. fix: SyntaxError - fixed continue not in loop, proper if/else structure

    axeronis
    fda4900
  2. feat: auto-send product images when mentioned - no URLs in chat

    axeronis
    101c2eb