Package com.chatmotorapi.api.notify
Interface NotificationChannel
- All Known Implementing Classes:
EmailNotificationChannel
,SlackNotificationChannel
,TwilioNotificationChannel
public interface NotificationChannel
Interface for handling post-treatment actions related to responses in the
ChatMotor framework.
This interface defines methods for notifying users when a document is available and for sending the actual document through different communication channels such as Slack, Email, SMS with Twilio, and other platforms.
The goal is to provide a flexible framework that allows for new implementations of various communication channels, such as Notion, Airtable, and your own IT platform.
- Since:
- 1.2
-
Method Summary
Modifier and Type Method Description MotorNotifyResponse
dispatchDocument(String filePath, ExecutionMode mode)
Sends the generated response document to the user.MotorNotifyResponse
notifyDocumentAvailable(String filePath, ExecutionMode mode)
Notifies the user that a response document is available.
-
Method Details
-
notifyDocumentAvailable
Notifies the user that a response document is available.- Parameters:
filePath
- the file path of the response document that is availablemode
- the execution mode, either synchronous (SYNC) or asynchronous (ASYNC)- Returns:
- a MotorNotifyResponse object containing the result of the notification process
-
dispatchDocument
Sends the generated response document to the user.- Parameters:
filePath
- the file path of the response document to be sentmode
- the execution mode, either synchronous (SYNC) or asynchronous (ASYNC)- Returns:
- a MotorNotifyResponse object containing the result of the document dispatch process
-