Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Counting the number of callers

    Posted 02-27-2023 09:47
    No replies, thread closed.

    Can someone think of a way you could display, in an Agent Script, the number of calls received from an ANI that day?

    What would it take to be able to grab the ANI, then search for other calls that day under the ANI, then count and display how many times that happened?


    #ArchitectureandDesign

    ------------------------------
    Nathan Smith
    ConvergeOne
    ------------------------------


  • 2.  RE: Counting the number of callers

    Posted 02-27-2023 12:42
    No replies, thread closed.

    Hi Nathan,

    You can use following API /api/v2/analytics/conversations/details/query. In the payload (sample date in the query is for today, Feb 27th):

    {
     "interval": "2023-02-27T05:00:00.000Z/2023-02-28T05:00:00.000Z",
     "order": "asc",
     "orderBy": "conversationStart",
     "paging": {
      "pageSize": 25,
      "pageNumber": 1
     },
     "segmentFilters": [
      {
       "type": "or",
       "predicates": [
        {
         "type": "dimension",
         "dimension": "ani",
         "operator": "matches",
         "value": "+1PHONE_NUMBER"
        }
       ]
      }
     ]
    }

    From the response, extract the attribute "totalHits"



    ------------------------------
    TatjanaKnezevic

    www.startelecom.cloud

    https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
    ------------------------------