Dave_Chivers | 2022-04-25 16:39:59 UTC | #1
Is there available data action or variable that gives the actual time a caller has spent on an In Q flow, I would like to use this to only offer services if the caller has been waiting for over X amount of time (the time threshold will be controlled via a data table)
Anton_Vroon | 2022-04-26 00:58:23 UTC | #2
Can you use Flow.StartDateTimeUtc to get when the call entered the In Q Flow and GetCurrentDateTimeUtc() to get the current time And from there get the difference to get the current time.
Otherwise you can go down the API/DataAction route to get the time in Q for that interaction. API would just be the Conversation Aggregate API under analytics something like
Dave_Chivers | 2022-04-26 09:43:00 UTC | #3
Fantastic, thank you - I will have a tinker around with these options
Dave_Chivers | 2022-05-03 09:29:51 UTC | #4
Following your advise I have had success using the below expression which returns the duration of the call in minutes
ToInt(DateTimeDiff(GetCurrentDateTimeUtc(),Flow.StartDateTimeUtc)) / 1000/60
system | 2022-06-03 09:30:22 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14446