Class AixFlowService
java.lang.Object
org.bgerp.plugin.ai.aixflow.model.AixFlowService
Service for interacting with n8n webhook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponse from n8n after sending filestatic classTask data from n8n status check -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheck diarization task status in n8ncheckTaskStatus(String hash) Check task status in n8nSend file to n8n for processingsendTextForDiarization(String text, String hash) Send text for diarization (speaker identification)
-
Constructor Details
-
AixFlowService
-
-
Method Details
-
sendFile
Send file to n8n for processing- Parameters:
file- the file to send- Returns:
- response with hash and status
- Throws:
Exception- if sending fails
-
sendTextForDiarization
public AixFlowService.AixFlowResponse sendTextForDiarization(String text, String hash) throws Exception Send text for diarization (speaker identification)- Parameters:
text- the transcribed text to processhash- the hash of the original transcription- Returns:
- response with hash and status
- Throws:
Exception- if sending fails
-
checkDiarizationTaskStatus
Check diarization task status in n8n- Parameters:
hash- the diarization task hash- Returns:
- task data with diarization status
- Throws:
Exception- if checking fails
-
checkTaskStatus
Check task status in n8n- Parameters:
hash- the task hash- Returns:
- task data with status
- Throws:
Exception- if checking fails
-