mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	This PR introduces a review step for generated FAQs, allowing a human to validate and approve them before use in customer interactions. While hallucinations are minimal, this step ensures accurate and reliable FAQs for Captain to use during LLM calls when responding to customers. - Added a status field for the FAQ - Allow the filter on the UI. <img width="1072" alt="Screenshot 2025-01-15 at 6 39 26 PM" src="https://github.com/user-attachments/assets/81dfc038-31e9-40e6-8a09-586ebc4e8384" />
		
			
				
	
	
		
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global axios */
 | 
						|
import ApiClient from '../ApiClient';
 | 
						|
 | 
						|
class CaptainResponses extends ApiClient {
 | 
						|
  constructor() {
 | 
						|
    super('captain/assistant_responses', { accountScoped: true });
 | 
						|
  }
 | 
						|
 | 
						|
  get({ page = 1, searchKey, assistantId, documentId, status } = {}) {
 | 
						|
    return axios.get(this.url, {
 | 
						|
      params: {
 | 
						|
        page,
 | 
						|
        searchKey,
 | 
						|
        assistant_id: assistantId,
 | 
						|
        document_id: documentId,
 | 
						|
        status,
 | 
						|
      },
 | 
						|
    });
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default new CaptainResponses();
 |