diff --git a/src/api/config.js b/src/api/config.js index b8bc58f..3cf5bee 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -98,7 +98,13 @@ export const DV_LEAD = 'zk-dv-lead' */ const STATE_ACTIVITIES = { 'zk-state-new': [{ uid: 'zk-act-qualify', label: 'Qualify Lead', by: 'Intake AI' }], - 'zk-state-qualified': [{ uid: 'zk-act-contact', label: 'Log Contact', by: 'Engage AI' }], + // Retry Call is scheduled automatically four hours after an unanswered + // call, clamped into 09:00-21:00 IST and bounded at three attempts. It + // records the attempt; whether it also DIALS is gated on the lead's + // `auto_retry` field, which ships unset. Offered here so a person can + // also place the retry by hand. + 'zk-state-qualified': [{ uid: 'zk-act-contact', label: 'Log Contact', by: 'Engage AI' }, + { uid: 'zk-act-retry-call', label: 'Retry Call', by: 'Scheduled — or you' }], // Contacted has exactly one way forward and it belongs to Engage. An AI // cannot receive a file, so it writes the ask; the agent uploads one state // later. Giving the AI the activity that RECEIVES documents is how you get an @@ -111,7 +117,11 @@ const STATE_ACTIVITIES = { { uid: 'zk-act-capture-motor', label: 'Capture Motor Risk', by: 'Engage AI' }, { uid: 'zk-act-capture-sme', label: 'Capture SME Risk', by: 'Engage AI' }, { uid: 'zk-act-advise', label: 'AI Cover Recommendation', by: 'Advisor AI' }, - { uid: 'zk-act-quote', label: 'Generate Quote', by: 'Rating engine' }], + { uid: 'zk-act-quote', label: 'Generate Quote', by: 'Rating engine' }, + // Fires on its own at 24h, 72h and 120h from the ask. On the + // third unanswered one the lead leaves this queue — Parked if + // the renewal is still weeks off, Lost if the cover is going. + { uid: 'zk-act-doc-reminder', label: 'Send Document Reminder', by: 'Scheduled — or you' }], // Likewise absorbs acceptance, identity and the underwriting screen — none of // which was ever a stage a lead rested in. Generate Quote appears again as a // RE-quote for a customer who wants different cover; the lead does not move,