iachat/enterprise/app/services/captain/tools
Rodribm10 d2c2c6b7fe fix(captain): pre-reservation semantics + no duplicate pix links
Three UX bugs from staging testing:

1. Duplicate Pix link in WhatsApp — the tool's formatted_message
   embedded the full link + instructions, so the LLM copied it into
   its own response on top of the dedicated link message sent by
   dispatch_direct_link_message. The tool now returns a short
   summary with no URL; dispatch is the single source of the link.

2. "Reserva confirmada!" sent before payment — the scenario prompt
   used the word "confirmação" loosely, which the LLM read as the
   reservation being closed. Now the prompt forces "pré-reserva /
   aguardando pagamento" until the Pix is actually paid, and the
   dispatched link message explains that the reservation is only
   secured after payment clears.

3. Memory extraction wrote "Reservou Hidromassagem para pernoite
   em 22/04/2026" when the customer only received a Pix link and
   replied "obrigado". Tightened the extraction prompt so
   padrao_comportamental of a reservation requires a literal
   payment confirmation — Pix generated alone no longer qualifies.
2026-04-22 04:19:39 -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 fix(captain): pre-reservation semantics + no duplicate pix links 2026-04-22 04:19:39 -03:00
generate_reservation_link_tool.rb feat: link enviado como mensagem direta + email extraction + contact metadata auto-persist 2026-04-14 13:44:13 -03:00
generate_roleta_link_tool.rb feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -03:00
get_reserva_preco_tool.rb feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -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