iachat/enterprise/app/services/captain/tools
Rodrigo Borba 44908f32d1 feat: sistema de notificações de reserva com templates configuráveis
- Adiciona check_in_at/duration_hours ao schema do tool CreateReservationIntent
  para que a IA capture o horário EXATO de chegada informado pelo cliente
- Cria captain_notification_templates: label, content, timing_minutes,
  timing_direction (before/after), active, position
- Implementa SendNotificationService com interpolação de variáveis
  (guest_name, check_in_time, check_out_time, suite_name, unit_name)
- Implementa NotificationScannerJob (Sidekiq-cron a cada 5min) com
  janela de tolerância de ±5min e idempotência via metadata JSONB
- API REST: /captain/units/:unit_id/notification_templates (CRUD)
- Store Vuex captainNotificationTemplates + API client
- UI: página de gestão de templates com editor inline e botão '+'
- Configura rota captain_settings_notifications
- i18n PT/EN para todas as strings novas
- Rubocop e ESLint: zero offenses
2026-03-01 21:53:11 -03:00
..
copilot fix: Validate status and priority params in search conversations tool (#13295) 2026-01-19 14:08:32 +05:30
base_service.rb feat: Add support for additional tools in Copilot (#11531) 2025-05-21 15:49:35 -07:00
base_tool.rb feat: search documentation tool for reply suggestions (#13340) 2026-01-30 16:18:33 +05:30
check_pix_payment_tool.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
create_reservation_intent_tool.rb feat: sistema de notificações de reserva com templates configuráveis 2026-03-01 21:53:11 -03:00
firecrawl_service.rb feat: Add support for bulk action for Captain FAQs (#10905) 2025-02-27 17:05:33 -08:00
generate_pix_tool.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
instrumentation.rb feat: search documentation tool for reply suggestions (#13340) 2026-01-30 16:18:33 +05:30
search_documentation_service.rb fix: search faqs in account language (#13428) 2026-02-09 17:25:11 +05:30
search_reply_documentation_service.rb fix: search faqs in account language (#13428) 2026-02-09 17:25:11 +05:30
send_suite_images_tool.rb feat(captain): add AI reports page with insights generation 2026-02-27 07:05:58 -03:00
simple_page_crawl_service.rb feat(ee): Add a service to fetch website content and prepare a persona of Captain Assistant (#12732) 2025-10-25 15:50:50 -07:00