Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Retrieve Output Variable from Script in Architech

    Posted 05-09-2022 15:22
    Hi all,
    hoping someone can assist with the below.
    1. Agent receives inbound call and agent script is presented
    2. Within agent script i have a button to perform Blind Transfer to a Genesys DID which starts a flow in Architect.
    3. i require, by setting script variable to Output = true, to retrieve the value of the Output variables from Agent script in the Architech Flow.
    Variables:
    Skill - Output = true
    Queue - Output = true

    please advise if this is possible via get participant data within Architech?
    #ArchitectureandDesign
    #Routing(ACD/IVR)

    ------------------------------
    Reginald
    ------------------------------


  • 2.  RE: Retrieve Output Variable from Script in Architech

    Top 25 Contributor
    Posted 05-09-2022 16:38
    Setting a Variable in Agent Script to Output = True doesn't make that Variable available in the inbound flow through Participant Data, I know weird right. But I believe the use case for that is for External systems to access that information.

    We use this API https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations--conversationId--participants--participantId--attributes
    as a DataAction in the Agent Script to add/update participant data, that can then be retrieved in the Inbound flow with the normal Get Participant Data Action.

    ------------------------------
    Anton Vroon
    ------------------------------



  • 3.  RE: Retrieve Output Variable from Script in Architech

    Posted 05-09-2022 17:02
    Thanks for your prompt response, could i use the built in Script variables to populate the data action?

    {{Scripter.Interaction Id}}-unique ID assigned to the interaction. This variable is the same as the conversationID in the Genesys Cloud API.

    {{Scripter.Agent Participant ID}}-agent's ID.


    ------------------------------
    Reginald
    ------------------------------



  • 4.  RE: Retrieve Output Variable from Script in Architech

    Top 25 Contributor
    Posted 05-09-2022 17:19
    Yup 100%

    Though we use Scripter.Customer Participant ID instead of the Agent Participant ID. 

    Here is an example from a Script we use


    ------------------------------
    Anton Vroon
    ------------------------------



  • 5.  RE: Retrieve Output Variable from Script in Architech

    Posted 05-09-2022 17:29
    Thanks, just trying to figure out how to populate the below attributes in the data action
    skill, queue and priority(integer)

    {
    "attributes": {}
    }

    ------------------------------
    Reginald
    ------------------------------



  • 6.  RE: Retrieve Output Variable from Script in Architech
    Best Answer

    Top 25 Contributor
    Posted 05-09-2022 17:42
    I believe all the attributes must be strings
    So for Queue and Skill, in the the inbound flow, I would do Find Queue Action and Find Skill Action to convert from a string to the actual queue and acd skill objects. And for priority just convert to an integer in the inbound flow

    So attributes would be set as:
    Or in the DataAction this is the one we currently use for updating some values


    ------------------------------
    Anton Vroon
    ------------------------------



  • 7.  RE: Retrieve Output Variable from Script in Architech

    Posted 05-10-2022 03:56
    Hi Anton, thanks for your assistance, this did it and managed to get it to work.
    thanks a mill

    ------------------------------
    Reginald
    ------------------------------



  • 8.  RE: Retrieve Output Variable from Script in Architech

    Posted 05-09-2022 23:25
    Hi Reg

    Depending on what you do in that flow that the call gets blind transferred to, you might be able to use the transfer to secure flow option directly and pass in the invocationData item to it.  There's obviously all the conditions and limitations that come with using a secure flow.

    ------------------------------
    Vaun McCarthy
    ------------------------------



Need Help finding something?

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