Skip to content

IAV-243/add FAQ chatbot endpoint for retrieving agent FAQs

anas elhaddad a demandé de fusionner feature/IAV-243 vers develop

Description

This MR adds a new endpoint to retrieve FAQs for customer care agents, designed specifically for chatbot integration. The endpoint returns only active FAQs with their questions and responses, enabling chatbots to provide automated customer support.

Changes

  • Created FaqChatBotResponse DTO containing question and response fields
  • Implemented FaqRepository with JPQL query filtering by agent ID and active status
  • Added FaqService with read-only transaction support for optimized performance
  • Developed FaqMapper for clean entity-to-DTO conversion
  • Created FaqController exposing GET endpoint at /api/customer-care/faq/agent/{agentId}
  • Updated AgentPaths constants with new FAQ path definitions

Endpoint

Rapports de requête de fusion