If the value is being written as Participant Data (for example virtual_agent_summary), you typically do not need a Data Action to retrieve it.
In an Agent Script you can expose Participant Data by defining it as an Input Variable in the script properties. If the attribute exists on the conversation when the agent answers, it will be available to the script automatically.
For example:
Go to Script Properties
Add an Input Variable named virtual_agent_summary
Bind that variable to a text component in the script
As long as the trigger/workflow sets the Participant Data before the agent answers the interaction, the value should appear in the script.
If for some reason the attribute is not available at that time, another option would be calling a Data Action from the script to retrieve the conversation details (GET /api/v2/conversations/calls/{conversationId}) and read the attribute from participants[].attributes.virtual_agent_summary, but usually the Input Variable approach is the simplest.
------------------------------
Kaio Oliveira
GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM
PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
------------------------------