Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Outbound - AM leave voicemail after n-th attempt

    Posted 3 days ago

    Dear community,

    I am trying to create an outbound flow, that will leave a voicemail on the n-th attempt to contact the nr and going to voicemail again.

    We had this developed 6 years ago but it doesn't return the correct nr of calls we made to the same number from the campaign it always returns 1 as value even though we called the number 15 times from the campaign.

    The data action we have is this:

    POST /api/v2/analytics/conversations/details/query

    Request body Template:

    {
     "interval": "${input.Interval}",
     "order": "desc",
     "orderBy": "conversationStart",
     "segmentFilters": [
      {
       "type": "and",
       "predicates": [
        {
         "type": "dimension",
         "dimension": "outboundContactListId",
         "operator": "matches",
         "value": "${input.ContactListID}"
        },
        {
         "type": "dimension",
         "dimension": "outboundContactId",
         "operator": "matches",
         "value": "${input.ContactID}"
        },
        {
         "type": "dimension",
         "dimension": "dnis",
         "operator": "matches",
         "value": "tel:${input.PhoneNumber}"
        }
       ]
      }
     ]
    }

    Response:

    {
      "translationMap": {
        "_count": "$.conversations.length()"
      },
      "translationMapDefaults": {
        "count": "0"
      },
      "successTemplate": "{\"count\":${count}}"
    }
    We need to understand why it only returns 1 as value and preferably we would like to know how many times it hit voicemail out of the total attempts made that period.
    The interval period is from midnight till the time the call is made.

    If anyone can shed a light on this that would be great!

    Have all a great weekend

    #DataActions

    ------------------------------
    Ruud Reinold
    BNP Paribas Personal Finance UK
    ------------------------------


  • 2.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 3 days ago
    Edited by Phaneendra Avatapalli 3 days ago

    Hi Rudy,

    From what I see & understood the reason you are consistently getting 1 is likely because you are using the Conversation Details endpoint (/api/v2/analytics/conversations/details/query) and then counting $.conversations.length().

    That gives you the number of matching conversation records, not necessarily the number of outbound attempts. In outbound campaigns, multiple attempts for the same contact can exist within a single conversation record, which would explain why you are seeing 1 even if the number has been called many times.

    This thread explains that distinction well:
    https://community.genesys.com/discussion/outbound-count-versus-outbound-attempt-count

    It may be worth looking at the Aggregates analytics approach instead (/api/v2/analytics/conversations/aggregates/query), as that is better suited if your goal is to count actual attempts rather than conversation records.

    For the voicemail requirement specifically, you would also need a way to identify which of those attempts actually reached voicemail, so you can distinguish between total attempts and voicemail hits. A wrap-up code or similar outcome marker may help here, so you can trigger the "leave a message" logic only on the required voicemail hit.

    Hope this helps & someone might add more to this.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 3.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted yesterday

    Thanks for your reply, I will look into that.



    ------------------------------
    Ruud Reinold
    BNP Paribas Personal Finance UK
    ------------------------------



  • 4.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted yesterday

    Hi Rudy, Have you been able resolve this with the above information? 



    ------------------------------
    Wesley Rowley
    Customer Success Manager
    ------------------------------



  • 5.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 6 hours ago

    Unfortunately not yet been successfull



    ------------------------------
    Ruud Reinold
    BNP Paribas Personal Finance UK
    ------------------------------



  • 6.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 18 hours ago

    Hi, Rudy. Is there a reason call rules will not work for you? Two call rules should do it. A first rule checks an attempt column and executes a data action to call a flow to leave your vm when the nth attempt is reached. And a second that increments the attempt column when answering machine is detected.



    ------------------------------
    Anthony Heacock
    Systems Analyst
    ------------------------------



  • 7.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 6 hours ago
    Edited by Rudy Reinold 6 hours ago

    This is how Genesys PSO did set it up for us 5 years ago and when we recently wanted to use the voicemail message again, I noticed it didn't work as we expected. I am in the process of reviewing the whole setup now the precise dial option finally has become available as previously dialler abandoned way to many calls when used in blended mode.



    ------------------------------
    Ruud Reinold
    BNP Paribas Personal Finance UK
    ------------------------------



  • 8.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 4 hours ago

    Looking at this approach, I don't seem to be able to see the system attempts columns in the contact list from the call rules, so I assume what you imply is to create a new column to track the call attempts made and based on the call wrap code to add a value, what would make the whole thing a lot more complex if there are scheduled calls involved, unless you had something else in mind?



    ------------------------------
    Ruud Reinold
    BNP Paribas Personal Finance UK
    ------------------------------



  • 9.  RE: Outbound - AM leave voicemail after n-th attempt

    Posted 2 hours ago

    Hi, Rudy. It's not a system column. It's a custom column in our contact lists. It shouldn't add complexity to your scheduled calls. It doesn't ours.

    *-*-*- Presbyterian_Healthcare_Services_DISCLAIMER -*-*-* This message originates from Presbyterian Healthcare Services or one of its affiliated organizations. It contains information, which may be confidential or privileged, and is intended only for the individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute or use the contents of this message. All personal messages express views solely of the sender, which are not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not be distributed without this disclaimer. If you received this message in error, please notify us immediately at info@phs.org If you would like more information about Presbyterian Healthcare Services please visit our web site http://www.phs.org