📄️ Channels
To specify the channels through which notification configurations should be sent (such as email, SMS, or both), you can define the trigger_methods attribute in the AppointmentView class. This configuration determines the communication channels used for sending appointment notifications based on the configured service providers for email and SMS.
📄️ Email Template
To define the HTML template file responsible for the layout and design of email notifications without specifying content, set the triggeremailtemplate attribute in the AppointmentView class. This template file will govern the visual structure and styling of the email notifications sent to recipients for appointment-related information.
📄️ On Status Update
To specify the workflow statuses that will trigger SMS or email notifications when they are changed, you can define the trigger_statuses attribute in the AppointmentView class. This list will determine the relevant statuses for which notifications should be sent to recipients via SMS or email.
📄️ Recipients
To establish the recipient details for notifications, including email addresses, phone numbers, names, etc., based on specific logic or conditions, you can override the getrecipientdetails function within the AppointmentView class. This function allows customization for determining who receives notifications and how they are contacted.
📄️ Content
To structure the content for different types of triggers (such as on create, update, status changes, and reminders), you can implement a function named populate_triggers within the AppointmentView class. This function returns a dictionary containing the content for email and SMS notifications based on various trigger events.