Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Access Data From SecureFlow in Agent Script

    Posted 01-26-2024 16:04
    No replies, thread closed.

    I have not been able to find this version of the solution on other threads, so I thought I would share if it helps someone out.

    1.      In the agent script, create a variable (vReturnFromScript) for this example. Toggle 'input' to true, with no default value. Make multiple variables if you want to get multiple values back from the secure flow.

    2.      In the agent script, create a custom action.

    a.      The first step in the action should be the standard 'Scripter.Invoke Secure Flow' action. Select the destination secure flow, enable 'return after flow completion' and put some data in the Flow Data field (this can be accessed in the secure flow as Flow.InvocationData).

    b.      The second step in the action should be the standard action 'Scripter.Refresh Input Variables'.

    3.      In the agent script, place a button that you want the agents to click to send the call to the secure flow and associate the Click Action with newly created custom action.

    4.      In the secure flow, place a set participant data block and use the key name of the input variable in the script (vReturnFromScript) and make the value whatever information you want to return to the agent script. Set as many participant data values as you need to match the variables you set in step 1.

    5.   Reference the variables in your agent script just like normal. They will have null/empty values until the call returns to the agent from the secure flow, at which point they will take on the value of the participant data key of the same name. 

    This is similar to the method where you execute a data action in the agent script to get the participant data values from the interaction, but it is cleaner and easier to implement, especially if you have multiple values you want to access or if you are data action conscience.

    Community Post 1

    Community Post 2 

    Developer Post 1

    Developer Post 2


    #PlatformAdministration
    #Routing(ACD/IVR)
    #Unsure/Other

    ------------------------------
    Kevin Goodwin
    Mediu, Inc.
    ------------------------------


  • 2.  RE: Access Data From SecureFlow in Agent Script
    Best Answer

    Posted 01-26-2024 17:41
    No replies, thread closed.

    @Kevin Goodwin,

    Thanks for this! The Data Action path is certainly a PITA. I will have a play with this one.

    I have to be honest, it seems like a rather obscure way to implement this, though! When you specify the Script, you pass values in from the Flow, so it would never have occurred to me that following a Secure Flow, it would refresh from Participant Data!

    Good catch 😁



    ------------------------------
    Paul Simpson
    Views expressed are my own and do not necessarily reflect those of my employer.
    ------------------------------



  • 3.  RE: Access Data From SecureFlow in Agent Script

    Posted 03-21-2024 13:06
    No replies, thread closed.
    Good day dears.
    The solution looks very good, did you try the solution? A client has just asked me for a similar scenario.
     
    Very grateful for his response.
    Greetings.


    ------------------------------
    Julio Segil
    Sixbell Peru S.A.C
    ------------------------------



  • 4.  RE: Access Data From SecureFlow in Agent Script

    Posted 12-03-2024 16:20
    No replies, thread closed.

    This is exactly what I was looking for. Works like a charm.

    Thank you Kevin!



    ------------------------------
    Warren Smith
    Sr. Support Analyst
    ------------------------------