Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Similar to "Flush Audio" in a Bot Flow.

    Posted 19 hours ago
    Hello Community,
    I have a similar request as in this topic : 
     
     
    I'm also implementing a voice bot flow, and in an asynchronous process. I'm launching a Workflow with a data action putting the results in participant data.   
    Within a loop in the botflow I play an audio and I'm checking the Participant data values. But all the promptd are queued and the flow is going forward looping and checking the participant data instantly in each loop. 
     
    In an inbound voice flow, there's a "Flush Audio" tool to play the audio immediately and avoid queuing.
    Is there something similar that can be applied to a voice bot flow?
     
    I appreciate your response.
    Best regards.


    #ArchitectFlow
    #ConversationalAI(Bots,VirtualAgent,etc.)


    #Architect

    ------------------------------
    Marc GEWINNER
    Developer
    ------------------------------


  • 2.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 19 hours ago

    Hi Marc,

    I came across a similar discussion which may be helpful:

    https://community.genesys.com/discussion/use-a-tool-similar-to-flush-audio-in-a-bot-flow

    My understanding is that there is no direct Flush Audio equivalent supported within Bot Flows. The scenario described in that thread sounds very similar, involving asynchronous processing and waiting for data updates within a loop.

    One of the suggestions was to use the Set Screen Pop action as a workaround to achieve similar behaviour. It may be worth testing to see if it helps in your use case as well.

    Hope this helps.



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



  • 3.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 19 hours ago

    Hi Marc,

    Apologies, I just checked and realised that refers to the same thread you already posted.

    My understanding is that there isn't currently a direct Flush Audio equivalent supported within Bot Flows. Hopefully someone who has implemented a similar asynchronous polling pattern differently can share their approach or any alternative workarounds they've found.



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



  • 4.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 19 hours ago

    Thanks a lot Phaneendra;

    Tested the Set Screen Pop : doesn't work.

    I need to fing something else like a dummy ask for ?

    Regards

    Marc



    ------------------------------
    Marc GEWINNER
    other
    ------------------------------



  • 5.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 12 hours ago

    Thanks for testing Marc.

    I was wondering whether a short Wait action inside the loop might help. If the participant data is being updated asynchronously by the Workflow, introducing a small delay between checks may give the update time to complete and prevent the loop from racing ahead.

    Not sure if you've already tried that approach, but it might be worth testing.



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



  • 6.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 3 hours ago

    Thanks Phaneendra

    The Wait action is not available in an Architect Bot Flow.

    I need an action available for bot flows and  genereting a kind of flush audio. 

    May be a Set Language will. I will try in the looping task of my flow and in another task calling it from my loop (Set Language apply only when changing task in a flow).

    I let you know the results.

    Regards

    Marc



    ------------------------------
    Marc GEWINNER
    other
    ------------------------------



  • 7.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 3 hours ago

    Thank you Marc let us know the results it will be helpful.



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



  • 8.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 5 hours ago

    If you are passing data from an inbound call flow into a bot flow, the recommended approach is to use bot input variables rather than relying on participant data.

    Participant data updates can have a delay, and the bot flow may attempt to read the values before they are available, even if they were set correctly in the inbound flow before transferring to the bot.

    If you still want to use a retry/loop approach, you can use a Communicate block with blank audio (for example, 5 seconds) between attempts. Keep the retries limited (maximum 3 loops) to avoid creating an unintended infinite execution path.



    ------------------------------
    Harisankar Thangavelu
    Senior Application Engineer
    ------------------------------



  • 9.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 3 hours ago

    Thanks for your answer Harisankar

    I'm not passing data from a Inbound call flow to a Bot flow but from a Workflow to a Bot flow. The only way I know in Architect to get data from a Workflow is to use participant data.

    And in my case the data action request takes between 3 and 10 seconds to answer, in more than 99% of the cases Participant Data are set quicker than this.

    Regards

    Marc

    Marc



    ------------------------------
    Marc GEWINNER
    other
    ------------------------------



  • 10.  RE: Similar to "Flush Audio" in a Bot Flow.

    Posted 59 minutes ago

    Hello

    Test done the Set Language doesn't "flush" the audio.

    The only action I can use is an Ask ... waiting a user input flushes the audio (yes tricky ! ). In my case I tested a Ask Yes/No with the ^rompt I want to play as question.

    But I have the No Input Timeout being set for the whole bot flow, in my case 8 seconds that is too long and my loop takes more time than what I want.

    Regards

    Marc



    ------------------------------
    Marc GEWINNER
    other
    ------------------------------