Legacy Dev Forum Posts

 View Only

Sign Up

Current interaction number in the flow

  • 1.  Current interaction number in the flow

    Posted 06-05-2025 18:41

    t-iizuka | 2020-08-28 05:02:27 UTC | #1

    I have create a cuntomt DataAction that get the current number of interaction in flow,then I tested the action. (active inbound call is establishing at agent) However results always return 0.

    { "results": { "group": { "flowId": "5de371f0-1e2b-4b19-bcf5-c36529b2161f", "mediaType": "callback" }, "data": [ { "metric": "oFlow", "stats": { "count": 0 } } ] }, { "group": { "flowId": "5de371f0-1e2b-4b19-bcf5-c36529b2161f", "mediaType": "voice" }, "data": [ { "metric": "oFlow", "stats": { "count": 0 } } ] }, { "group": { "flowId": "5de371f0-1e2b-4b19-bcf5-c36529b2161f", "mediaType": "chat" }, "data": [ { "metric": "oFlow", "stats": { "count": 0 } } ] }, { "group": { "flowId": "5de371f0-1e2b-4b19-bcf5-c36529b2161f", "mediaType": "email" }, "data": [ { "metric": "oFlow", "stats": { "count": 0 } } ] }, { "group": { "flowId": "5de371f0-1e2b-4b19-bcf5-c36529b2161f", "mediaType": "message" }, "data": [ { "metric": "oFlow", "stats": { "count": 0 } } ] } ][Get-Num-of-Interacting-in-Flow-20200828115740.custom.json|attachment (1.5 KB) }

    Could you tell us what cause incorrect work ? Regards,


    Jason_Mathison | 2020-08-28 14:49:43 UTC | #2

    Hi t-iizuka,

    I am a data action developer, not an analytics person, so my knowledge here is limited. The best place to ask about your query the "analytics and reporting" room.

    A couple of questions though. I haven't seen anyone try to get flow values before. I believe those show how many interactions are going through an IVR. Is it possible that you want the queue stats instead?

    Second, when you your query starts returning counts other than zero, do you always want to get the count of the first media type in the list, or are you interested in a specific media type?

    --Jason


    t-iizuka | 2020-08-31 06:50:06 UTC | #3

    Hi, Json

    Thank you for your reply.

    Is it possible that you want the queue stats instead?

    Our customer expect that total call count with the several queues(e,g case of switching a queues at ivr menu input in the flow.) However I not sure how to get total number of the several queue counts with one data action(like a array).therefore I have trying call count at data action at oflow. I do not consideration that hierarchy in callflow deep by the number of queues.

    do you always want to get the count of the first media type in the list, or are you interested in a specific media type?

    I would like to get only the voice media.

    Regards, Taku Iizuka


    Jason_Mathison | 2020-08-31 21:16:41 UTC | #4

    Hi Taku Iizuka,

    However I not sure how to get total number of the several queue counts with one data action(like a array)

    I don't know if this is possible either. I would experiment with the analytics query builder and ask about it in the analytics developer forum.

    I would like to get only the voice media.

    I believe that you can pull out just the voice results like this:

    $.results[?(@.group.mediaType == 'voice')].data[0].stats.count

    It also might be possible to modify your query to only return voice interactions.

    --Jason


    t-iizuka | 2020-09-04 02:53:29 UTC | #5

    Hello, Jason

    I'm sorry for delay response.I updated the Json.result remain as 0(zero).. Get-Num-of-Interacting-in-Flow-20200904112230.custom.json|attachment (1.6 KB)

    Thank you for your kind support. regards, taku iizuka


    system | 2020-10-05 02:53:31 UTC | #6

    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: 8685