How pipipopy0/xaxaton works
Planlit is a conversational calendar planner: a user messages the MAX bot, which interprets a request, creates or changes an event, stores it, and later sends a reminder. The bot also supports calendar connections, settings and subscriptions; a separate Flask webhook handles YooKassa payment notifications. The README documents Duckling, AI and PostgreSQL integrations, while sampled source confirms key bot, event, calendar and payment calls. Some feature links rely on README or SOURCE INDEX references because their implementations were not fully excerpted.
Main entry points: router.py Message routing · main.py Bot startup · callback.py Menus and callbacks · event_service.py Event lifecycle
Components 30
Bot experience
- Bot startup
main.py - Message routing
handlers/router.py - Menus and callbacks
handlers/callback.py - Bot commands
handlers/commands.py - Interactive keyboards
handlers/keyboards.py - Localized responses
handlers/answer_texts/TEXT.py - Calendar form state
forms/calendar_fsm.py
Event planning
- Intent and event AI
services/ai_service.py - Date-time parsing
services/get_correct_time.py - Event lifecycle
services/event_service.py - Event reminders
services/remind_user.py - AI prompt templates
prompts
Calendar sync
- Calendar dispatch
services/calendars/calendar_service.py - Apple CalDAV
services/calendars/caldav_service.py - iCalendar builder
services/calendars/ical_builder.py - Google Calendar API
services/google_calendar_service.py
Subscriptions
- Payment lifecycle
services/payment_service.py - Payment webhook
services/flask_service.py - Renewal worker
services/recurrent_payment_worker.py
Storage and operations
- Database access
services/database/database.py - Database schema setup
services/database/work_with_dp.py - Plan access rules
services/access.py - Service monitor
monitor/monitor.py - Public website
SITE/index.html
Other components
- User
- MAX Bot API
- Google Calendar
- Apple Calendar
- PostgreSQL
- YooKassa
Connections 40
- User → MAX Bot API: sends message
README.md - MAX Bot API → Bot startup: delivers updates
README.md - Bot startup → Message routing: registers router
main.py - Bot startup → Menus and callbacks: registers router
main.py - Bot startup → Bot commands: registers router
main.py - Bot startup → Database schema setup: initializes schema
main.py - Bot startup → Renewal worker: schedules
main.py - Bot startup → Event reminders: starts task
main.py - Message routing → Intent and event AI: requests interpretation
handlers/router.py - Message routing → Event lifecycle: dispatches event action
handlers/router.py - Message routing → Plan access rules: checks access
handlers/router.py - Message routing → Calendar form state: uses state
handlers/router.py - Message routing → Calendar dispatch: connects calendars
handlers/router.py - Message routing → Localized responses: gets response text
handlers/router.py - Message routing → Interactive keyboards: builds menus
handlers/router.py - Menus and callbacks → Calendar form state: uses state
handlers/callback.py - Menus and callbacks → Payment lifecycle: starts payment
handlers/callback.py - Menus and callbacks → Plan access rules: checks access
handlers/callback.py - Menus and callbacks → Google Calendar API: uses calendar OAuth
handlers/callback.py - Menus and callbacks → Interactive keyboards: builds menus
handlers/callback.py - Bot commands → Localized responses: gets response text
handlers/commands.py - Intent and event AI → AI prompt templates: uses prompts
- Event lifecycle → Date-time parsing: parses event time
services/event_service.py - Event lifecycle → Database access: reads and writes events
services/event_service.py - Event lifecycle → Calendar dispatch: syncs event changes
services/event_service.py - Event lifecycle → Google Calendar API: syncs event changes
services/event_service.py - Event reminders → Database access: reads reminder data
services/remind_user.py - Calendar dispatch → Apple CalDAV: dispatches CalDAV
services/calendars/calendar_service.py - Calendar dispatch → Google Calendar API: dispatches Google
services/event_service.py - Apple CalDAV → iCalendar builder: builds calendar data
services/calendars/caldav_service.py - Apple CalDAV → Apple Calendar: syncs events
README.md - Google Calendar API → Google Calendar: calls calendar API
services/google_calendar_service.py - Database schema setup → Database access: creates database
services/database/work_with_dp.py - Database access → PostgreSQL: queries
services/database/database.py - Payment lifecycle → Database access: records payment state
services/payment_service.py - Payment lifecycle → YooKassa: creates payment
services/payment_service.py - YooKassa → Payment webhook: sends payment event
README.md - Payment webhook → Payment lifecycle: handles webhook
services/flask_service.py - Renewal worker → Payment lifecycle: renews subscriptions
services/recurrent_payment_worker.py - Service monitor → User: reports status