The Smart Reviews system allows for creating reminder tasks in the Peach CRM based on certain key events or triggers. For example, a trigger could be when a borrower starts military service.
At creation time, all case types are supplied with a default smart review configuration that is disabled by default. Smart review tasks can be enabled by setting the smartReviews.enable flag.
For most case types, configuration revolves around 'key dates' and you specify when you want a reminder task to be created relative to these key dates:
GET /case-type/{caseTypeId}
// returns something like...
{
"caseType": "militaryDuty",
// <other fields ...>
"smartReviews": {
"enable": true,
"config": {
"keyDates": {
"dutyStartDate": 0,
"dutyEndDate": 0,
}
}
}
}Key dates offsets can be expressed as an integer or array of integers. Whenever (keyDateFieldValue + offset) == today, then a review task will be created. That is:
- For an offset of 0, create a task on the key date
- For an offset of -1, create a task the day before the key date
- For an offset of 1, create a task the day after the key date
and so on. This math is based on calendar days and not business days.
The following is a list of base case types that use key dates and their supported key date fields:
bankruptcycourtCaseClosedDatecreditorClaimDeadlineDateanticipatedCaseCompletionDate
creditBureauDisputeresponseDueDate
debtValidationrequestDate
deceaseddeceasedNoticeReceivedDate
disputeOfDebtnoticeReceivedDate
identityTheftreportReceivedDate
legalActionlegalActionIntiatedDatelegalJudgementEffectiveDate
militaryDutydutyStartDatedutyEndDate