Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Data Action Loops

    NEW MEMBER
    Posted 12 days ago
    Edited by Cordell Donovan 12 days ago

    I am currently in the process of testing a Call Flow that calls a Data Action. Currently the flow will Collect Input and use that as the Input for the Data Action. I have set the Success Outputs for the responses I wish to provide back to the user. However, each of these variables have multiple responses. When I create an audio response I can either get the system to list out each response for each variable together in a string or I can select a specific response using [n] but I have been unable to determine how to loop through through the variable and have the system read back the matching responses for both variables based on the current loop index.


    #API/Integrations

    ------------------------------
    Cordell Donovan
    IT Director
    ------------------------------



  • 2.  RE: Data Action Loops
    Best Answer

    Posted 12 days ago

    In the call flow, put the various inputs into a collection and put a loop in with a count value of Count(collection).  As it loops through each item of the collection, you use a GetAt(collection, loopcount) with the Audio tool to play each item as TTS.  Let me know if you want more detail.



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Data Action Loops

    NEW MEMBER
    Posted 11 days ago
    Edited by Cordell Donovan 11 days ago

    Robert,

    Thank you very much for your response. the GetAt(collection, loopcount) was the piece I was missing. This worked for me.

    Thanks,


    ------------------------------
    Cordell Donovan
    IT Director
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources