- DarkLight
Server Script
- DarkLight
A Server Script is used to customize the Campaign Manager based on the specific business requirements of customers. Developers use two types of scripts:
Pre-call Scripts
These scripts run before a call is made. They can connect to external applications or databases to decide if a contact should be dialed. This helps ensure that only the right contacts are sent to the dialer.
The Pre-call Script must be created using MEF. It includes the ExecutePreCallScript method, which calls a function to execute the pre-call logic. These scripts instruct the contact feed engine to deliver the contacts to the dialer based on the script's criteria.
Note:
The sample board must have the same script name that the developer uses.
Post-call Scripts
Post-call scripts run after a call is finished. They can perform various tasks like checking the Call Result, adjusting Rescheduling plans, or updating other systems such as a CRM with the call outcome. Post-call scripts can run either before rescheduling a contact, after rescheduling, or both.
Post-call scripts allow to customize the product as follows:
Before Reschedule: This is executed before rescheduling the contact. It can change various parameters that influence the reschedule logic through custom logic.
After Reschedule: This is executed after rescheduling the contact. It can use the reschedule information to further enrich or change the strategy and update external platforms.
Both: The script is executed both before rescheduling and after rescheduling.