Commit Graph

5 Commits

Author SHA1 Message Date
Christian Gick
8b7cf46312 fix(article-summary): only engage FSM when user explicitly asks for summary/audio
Some checks failed
Build & Deploy / test (push) Successful in 9s
Tests / test (push) Successful in 9s
Build & Deploy / build-and-deploy (push) Failing after 5s
Previously any chat message containing an article URL triggered the
Blinkist FSM: Firecrawl extraction + LLM topic detection + 3-option
menu. Pasting a link as conversational context spammed the menu.

Now _check_for_url additionally requires an intent keyword (summary,
zusammenfassung, audio, mp3, blinkist, tldr, lies das, fasse zusammen,
discuss/diskutieren, etc.) before engaging. Without intent the URL
falls through to the normal AI handler.

Also bind-mount article_summary/ so future fixes survive container
recreate (matches the pattern used for bot.py/voice.py/agent.py).
2026-04-18 06:30:42 +00:00
Christian Gick
21b8a4efb1 fix(MAT-166): robust option matching + language-aware UI for article summary
Replace brittle exact-string matching with keyword/substring classifier
that handles edge cases (punctuation, partial matches, German variants).
Detect article language and present all prompts in the users language.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 14:41:54 +02:00
Christian Gick
62cc2a92fe fix: add German keywords for audio/text summary options (MAT-166)
'Audiozusammenfassung' and 'Textzusammenfassung' now correctly trigger
the audio/text summary flows instead of falling through to regular LLM
which says it can't create audio files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 14:29:06 +02:00
Christian Gick
964a3f6075 feat: scheduled reminders + less aggressive article summary
Add scheduled messages/reminders system:
- New scheduled_messages table in memory-service with CRUD endpoints
- schedule_message, list_reminders, cancel_reminder tools for the bot
- Background scheduler loop (30s) sends due reminders automatically
- Supports one-time, daily, weekly, weekdays, monthly repeat patterns

Make article URL handling non-blocking:
- Show 3 options (discuss, text summary, audio) instead of forcing audio wizard
- Default to passing article context to AI if user just keeps chatting
- New AWAITING_LANGUAGE state for cleaner audio flow FSM

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:32:40 +02:00
Christian Gick
4ec4054db4 feat: Blinkist-style audio summary bot (MAT-74)
Add interactive article summary feature: user pastes URL → bot asks
language/duration/topics → generates audio summary via LLM + ElevenLabs
TTS → posts MP3 inline with transcript and follow-up Q&A.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 17:39:09 +02:00