Page 1 of 1
Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 2:57 pm
by dspaan
Is there a way use the dispo URL feature to create a new lead in another list with the add_lead function where the lead is callable only 7 days later?
I know there is a callback=Y feature but you have to either specify callback_datetime is NOW or a specific date. But i'm looing for something like '7days' just like in the automated reports section.
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 3:08 pm
by williamconley
Simplest method would be to use a filter to block leads "dialed with 7 days with that specific disposition". No dispo url required ... but with dispo url you could create a callback with a php script for seven days into the future assigned to the originating agent or "anyone".
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 3:14 pm
by dspaan
Of course! I forgot about the filer feature. Thanks!
I guess it would have to be something with entry_date > 7 days. Could you help me with the exact statement?
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 3:19 pm
by williamconley
last call, not entry.
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 3:28 pm
by dspaan
But wouldn't that mean every call is 7 days apart? I only need it for the NEW leads in the list. I would use the dispo_move script and then delay fresh leads. After that they can be dialed regularly.
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 4:05 pm
by dspaan
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 4:08 pm
by williamconley
They are not new any more after they've been dialed. The original request made no mention of "NEW". But if you want to include the dial count in the sql filter, that would likely be useful for "2nd call 7 day wait" if that's the goal.
Re: Use Non-agent api to dial lead 7 days later
Posted:
Fri May 22, 2020 4:10 pm
by dspaan
I used the dispo move script where the original status was 'sale' so i used this and it works for my goal:
( ( (status='sale') and (last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -7 DAY),' ',CURTIME()) ) ) or (status != 'sale') )