Hi Sheryl
I have a very similar scenario.
When the call reaches the agent, it queries a data action and in turn queries a data table.
-
Data table:

-
data action:
GET /api/v2/flows/datatables/ID OF THE DATA TABLE/rows/${input.queueName}?showbrief=false
-
response:
{
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
-
contract:
input
{
"type": "object",
"properties": {
"queueName": {
"type": "string"
}
}
}
-
output
{
"type": "object",
"properties": {
"Dica": {
"type": "string"
}
}
}
-
test
-
In the script, on the "start page" we have the following:
-
In the "'script" it looks like this:
-
-
If the content of the 'dica' field is >1, the hint is displayed; otherwise, the container is hidden.
-
I hope this help you.
------------------------------
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.
------------------------------