Architect Loop block failing to parse JSON array from Data Action

Is the Loop block supposed to handle nested JSON arrays directly, or do I need to flatten them first? I’m trying to iterate over a list of agent IDs returned from a custom Data Action so I can check their adherence status one by one.

The Data Action hits our internal API and returns a simple JSON object with an array inside. Here’s what the response looks like:

{
 "agents": ["123456", "789012", "345678"]
}

I’ve set the Loop block to use the expression data:response.agents as the input. When I test this in the Architect simulator, the loop just skips entirely. No iterations happen. I checked the debug logs and the variable definitely contains the array, but the loop counter stays at zero.

I’ve tried wrapping it in a jsonpath expression like data:response..agents[*] but that just throws a parsing error. The documentation is pretty vague on how the Loop block expects the data format. Does it need a specific wrapper object, or am I missing a step in the Data Action configuration?

I need to get this working before our next shift change. Any ideas?